this thread is maybe out of date but a solution of the thumbnailissue would be the following.
thumbnails are cropped in center for default. The newest phpwcms version can render images in templates in various ways - means, there is a set of new Replacementtags like this:
Code: Select all
<!--
Thumbnail image: {THUMB_NAME}
relative: {THUMB_REL}
absolute: {THUMB_ABS}
height/width: {THUMB_HEIGHT}px/{THUMB_WIDTH}px
image ID: {IMAGE_ID}
image Hash: {IMAGE_HASH}
If you are not sure wrap zoomed image:
[ZOOM]
Zoomed (big) image: {IMAGE_NAME}
relative: {IMAGE_REL}
absolute: {IMAGE_ABS}
height/width: {IMAGE_HEIGHT}px/{IMAGE_WIDTH}px
[/ZOOM]
//-->
a possible solution, for an imagegallery template could be (do not set cropping in Contentpart!):
Code: Select all
<!--IMAGES_HEADER_START//-->
[TITLE]<h1>{TITLE}</h1>[/TITLE]
[SUBTITLE]<h2>{SUBTITLE}</h2>[/SUBTITLE]
[TEXT]{TEXT}[/TEXT]
<div class="images" id="images{ID}">
<!--IMAGES_HEADER_END//-->
<!--IMAGES_ENTRY_START//-->
<div class="imageEntry" id="img{IMGID}">
<div style="width:160px;height:160px;overflow:hidden;background:url({THUMB_ABS}) no-repeat top center"></div>
[CAPTION]<p>{CAPTION}</p>[/CAPTION][CAPTION_ELSE]<p>{IMGNAME}</p>[/CAPTION_ELSE]
</div>
<!--IMAGES_ENTRY_END//-->
<!--IMAGES_ENTRY_SPACER_START//-->
<!-- space between images {SPACE}px -->
<!--IMAGES_ENTRY_SPACER_END//-->
<!--IMAGES_ROW_SPACER_START//-->
<!-- space between image rows {SPACE}px -->
<!--IMAGES_ROW_SPACER_END//-->
<!--IMAGES_FOOTER_START//-->
</div>
<!--IMAGES_FOOTER_END//-->
so, the CSS do the job.
Code: Select all
width:160px;height:160px;overflow:hidden;background:url({THUMB_ABS}) no-repeat top center
I did not try this and the [ZOOM] need to set too, but I think this should work.
It's a bit late, but maybe someone got a similar problem