Strangely scale and crop works to about 35x35 px. If I get smaller than this for thumbnails, things get erroneous. As you see, the third and fourth image have the effect. Appears to be some kind of rounding issue?
I cannot find a logical coherence between aspect ratio and the error, it happens to wider and less tall ones and also to ones more towards square.
| Comment | File | Size | Author |
|---|---|---|---|
| imgaecach-error.jpg | 4.5 KB | eigentor |
Comments
Comment #1
merilainen commentedI'm using ImageCache for user profile pictures with size of 65px, and the same thing happens. I thing in another installation this hasn't happened sometime before, but I'm not sure if we had square pictures.
Comment #2
merilainen commentedI had scale and crop, which added these black borders. If I use only scale, then there are no borders, but each user has a bit different sized user picture, unless they use a picture with square dimensions. Is there any better solution? Add transparent borders instead of black ones?
Comment #3
drewish commentedI think it's related to #422836: ImageAPI GD2 6.x-1.5 ignores crop background color setting it needs to be fixed in ImageAPI first then add a setting to the ImageCache actions.
Comment #4
gregglesThe referenced issue is fixed. Has this problem been fixed for you, eigentor and mErilainen?
Comment #5
merilainen commentedFor me it's working now. I don't know if I changed settings or if some update fixed it.
Comment #6
gregglesGreat to hear. I assume it was a duplicate of that other issue, then.