#3498 - Auto thumb duplication
| Identifier | #3498 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | Auto thumb duplication |
| Status | Closed (rejected) |
| Handling member | Chris Graham |
| Addon | catalogues |
| Description | If you upload an image (via the Uploaded Picture field) auto thumb seems to create 2 copies. One copy has 168_168 as the start of the file name, the other does not. Both thumbs are the exact same dimensions. |
| Steps to reproduce | |
| 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
I looked into it, and you're right, but it's for a reason.
The 168_168_* one represents a thumbnailed image
The other one represented a scaled-down image.
This is a very subtle thing. The thumbnailed image may be bigger, if the source image was smaller than the thumbnail size. This is because thumbnails have to be uniform. The scaled-down image is more appropriate for normal rendering of a field where you just want a maximum size, but never to get blown up to a minimum size.
Composr allows you to reference either in your templates.
You may ask why not just generate the thumbnail one on demand, as it's not used by default. I asked myself the same thing. It's because Composr is pulling in the thumbnailing templating too, which needs the image to be pre-generated.
Why is it pulling in thumbnailing templating if it's not using the pre-generated thumbnail though? Isn't this something that should happen if you are referencing a thumbnail rather than the default scaled-down image? Maybe not, but it seems like a valid question in my mind (which doesn't comprehend how everything works in Composr like yours does).