Fix for Scale-Crop ruleset on upgade from 5.x-1.3
| Project: | ImageCache |
| Version: | 5.x-2.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hi,
thanks for all the nifty additions in 2.0 - I'm in awe everytime I think how much time & effort this module saves me.
I just upgraded from 1.3 and had the following problem on presets where only a single dimension for the scale or crop operation was specified.
In some presets I was simulating a Scale & Crop operation:
- Scale - supplying only the height;
- Crop - supplying only the width;
This worked well in 1.3 to create an exact size image that was mostly scaled with the edges cropped off as required. But after upgrading to 2.0, the images supplied by these presets were totally messed up - the bottom ~25% of the image was displayed at the top of a tall field of black! Yikes.
Fix:
I replaced all these presets with the new Scale & Crop action, supplying both height and width. I could not find any documentation about this action, but it appears to do exactly what I was trying to achieve above, but probably better (I'm guessing it scales in such a way to minimize cropping, rather than arbitrarily scaling to one dimension and cropping the other??).
I hope this helps someone else.

#1
closing this since it's not really a bug we can address. people can still search for it and find it.
#2
Automatically closed -- issue fixed for two weeks with no activity.