#213 - Better thumbnail control
| Identifier | #213 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Better thumbnail control |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | core |
| 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. |
| Steps to reproduce | |
| 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 |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
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