View Issue Details

IDProjectCategoryView StatusLast Update
213Composrcorepublic2010-12-17 03:53
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary213: Better thumbnail control
DescriptionComposr's thumbnail API can do "fit to width" and "fit to box".

"fit to width" can result in thumbnails that are shallow or tall, but all have the same width.

"fit to box" results in all thumbnails being able to fit inside a box. One of the two dimensions will be exactly the same as one of the box dimensions. The other dimension will (except for square images) be shrunk.


1) It would be nice to have a "fit to width" mode that cuts off any excess height from (configurably) the top, the bottom, or equally from the top and bottom.

2) It would be nice to have a "fit to box" mode that adds white-space around the image.

3) It would be nice to have a "fit to box" mode that crops excess width/height (the opposite of 2).

4) It would be nice to have a "fit to height" mode set too.

All this would ideally be configurable by content-type.
Additional InformationocProducts has altered thumbnail code in the Nomosa project, and also some has been posted here:
http://compo.sr/forum/topicview/misc/developing/gallery_customization.htm#post_64424
TagsNo tags attached.
Attach Tags
Time estimation (hours)15
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2010-12-03 11:29

administrator   ~102

This is now implemented in one of our client projects. It will be specified via the THUMBNAIL symbol rather than config options; i.e. via templating.

Remaining tasks before integration:
 - Document the updated THUMBNAIL symbol
 - Add an option to tell images already smaller than the thumbnail to stay as they are

Issue History

Date Modified Username Field Change