View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
213 | Composr | core | public | 2010-11-11 14:02 | 2010-12-17 03:53 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 213: Better thumbnail control | ||||
Description | Composr'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 Information | ocProducts 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 | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | 15 | ||||
Sponsorship open | |||||
|
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 |