Thursday 15 January 2004 3:30:05 am
Hello All, I have been using the new image system, which is working nicely. Although I have just tried to use the geometry/crop filter and it was not applied. I am using GD, not ImageMagick. Does this operation require IM? Also, I was thinking that a nice extension to the crop command might be to centre the crop on the image. e.g. if the image is 60px high to be cropped to 4opx, the crop would be 10px into the image. As well as this, the scale command could do with an addition, so that you can scale the smallest dimension to a particualr size.
Basically, these two suggestions/requests come out of me trying to create a square icon. There would be two operations to achieve this;
1) scale down so that the smallest dimension is equal to the required side length 2) crop the image (centred) to the side length At the moment, I have to have two image operators, and do a test in the template to see if the height or width is the longest dimension and then use the correct image accordingly. Still, the new image mechanism is a vast improvement over the last one. Particularly th naming and location of the files.
All the best, Ben Pirt
|