I am using the gallery feature http://www.couchcms.com/docs/concepts/photo-gallery.html of CouchCMS. Image thumbnail is always created as a cropped version of the main image. I need to have the thumbnail to be just the resized version of the main image. No need to preserve the aspect ratio.
- Code: Select all
<cms:template title='Categories' clonable='1' dynamic_folders='1' gallery='1'>
<cms:editable
name="gg_image"
label="Product Image"
desc="Upload product main image"
width="600"
height="600"
enforce_max='1'
show_preview='1'
preview_height='300'
required='1'
type="image"
/>
<cms:editable
name="thumb"
assoc_field="gg_image"
label="Thumbnail"
desc="thumbnail"
width='200'
height='200'
enforce_max='0'
type="thumbnail"
/>
</cms:template>