Plugin

Developer
Supported

Img-Resize

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Joseph Wensley

     

You must be logged in to post.

Crop align not working

Support Request

Finn
Finn

Hi and thanks for the plugin!

I’m using it to crop images with the crop center offset, using the Align parameter. Everything works great in my local environment, but on the live site while the cropping itself is working, the offsetting isn’t.

I can see that the images are being generated, and that the file names reflect the Align values, however the resulting images are all cropped as if the value was 50. This is cropping vertically by the way, in case it makes any difference.

Joseph W
# 1
Developer
Joseph W

Can you post the plugin tag you have so I can see the parameters.  Could you also post one of the images that is not being resized properly, or at least the dimensions of one of the images.

Finn
# 2
Finn

Hi Joseph - thanks for the reply,

This is the plugin tag:

{exp:img_resize src=”{exhibition_image}” width=“970” height=“485” quality=“90” v_align=“0”}

Here is a page with several images on it - the first image each time is the original image, and the second one is the resized one:

http://www.panterandhall.com/test

And you can see the resized image directory here:

http://www.panterandhall.com/images/resized/images_exhibition/

Thanks!

Joseph W
# 3
Developer
Joseph W

Try downloading this dev version and see if it works for you.

https://github.com/jwensley2/Img-Resize/archive/develop.zip

Finn
# 4
Finn

Thank you for that. I’ve just tried it - the results are at the link above.

Where the original image is sufficiently large, it seems that the offset is now working, but it appears to crop the image without first having shrunk it. You can see this most easily if you scroll down to the massive image.

(Personally I’m not concerned about the results for the image pairs where the original image is smaller than the resized image).

Thanks!