Thumbnails with set height

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Thumbnails with set height

Post 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?
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Thumbnails with set height

Post by Jos »

You can use the SuperSizer plugin to create other formats for images
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Thumbnails with set height

Post 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...
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Thumbnails with set height

Post 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.
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Thumbnails with set height

Post by jog »

First thing I tried - this generates huge thumbs... somehow the horizontal value has a higher priority.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Thumbnails with set height

Post by Jos »

strange... then it seems that the height setting is totally ignored?
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Thumbnails with set height

Post 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...
Post Reply

Return to “CMSMS Core”