Page 1 of 1
Thumbnails with set height
Posted: Tue Jun 14, 2011 9:40 am
by jog
I'd like to set the thumbnail generation in Image Manager to output thumbs with a fixed height of 63px and the proportional width.
Anyone?
Re: Thumbnails with set height
Posted: Tue Jun 14, 2011 10:40 am
by Jos
You can use the SuperSizer plugin to create other formats for images
Re: Thumbnails with set height
Posted: Thu Jun 16, 2011 1:03 pm
by jog
Thanks! I couldn't get it to play right with CGSmarty within my menu template so far, but I'll try that again.
Strange that there seems no easy way to modify the default thumb behaviour...
Re: Thumbnails with set height
Posted: Thu Jun 16, 2011 1:25 pm
by Jos
When I think of it... You can set thumbsizes in the admin panel
Site Admin ยป Global Settings tab General Settings.
In your case you can set Thumbnail Height to 63 and Thumbnail Width to some big number like 500.
Re: Thumbnails with set height
Posted: Fri Jun 17, 2011 8:16 am
by jog
First thing I tried - this generates huge thumbs... somehow the horizontal value has a higher priority.
Re: Thumbnails with set height
Posted: Fri Jun 17, 2011 8:24 am
by Jos
strange... then it seems that the height setting is totally ignored?
Re: Thumbnails with set height
Posted: Fri Jun 17, 2011 10:09 am
by jog
After more testing it seems that only the longer edge is relevant, i.e. landscape pics are thumbnailed based on width and portrait pics by height.
For example: with 300w and 30h set in General Preferences, a thumb from a landscape picture will always be 300px wide with the proportional height, which means it will most probably exceed 30px.
In my case I'd like to set a fixed height for all image thumbs (landscape and portrait). I'll try to fiddle around in the php next...