Cropping by percentage and later resizing is not working
Hi all,
I need to resize a crop done with percentages (user can zoom and move the image on the umbraco backend). The cropped image should have the height and width defined by the crop (even if the image is zoomed) but it turns out that it is not working fine.
First of all congratulations for your amazing work on the image processor.
I already raised the issue, but I managed to the crop+resizing changing the coordinates to the x,y,width,height format, and changing the mode to stretch instead that the normal mode padding, although using this method, I need to access to the media node to get the width and height of the image.
Cropping by percentage and later resizing is not working
Hi all,
I need to resize a crop done with percentages (user can zoom and move the image on the umbraco backend). The cropped image should have the height and width defined by the crop (even if the image is zoomed) but it turns out that it is not working fine.
This is my url:
localhost:1340//remote.axd/ciras.blob.core.windows.net/media-test/1002/happy-young-businessman_big.jpg?crop=0.24671916010498687,0.029791962724296239,0,0.32968083870333464&cropmode=percentage&quality=90&width=480&heightratio=0.7491289198606271777003484321&slimmage=true
The final image should be 480px width, but it is 718px. (The original image is 1000px width)
Could you tell me what am I doing wrong?
I am using ImageProcessor.Web version="4.2.1.0" and the Azure Cache plugin.
Thanks.
Hi Jose,
Yup that's a bug. I'm breaking a loop when I should be skipping to the next item.
Can you raise an issue here so I can ensure I fix it. https://github.com/JimBobSquarePants/ImageProcessor/issues
Cheers
James
Hi James,
First of all congratulations for your amazing work on the image processor.
I already raised the issue, but I managed to the crop+resizing changing the coordinates to the x,y,width,height format, and changing the mode to stretch instead that the normal mode padding, although using this method, I need to access to the media node to get the width and height of the image.
Thanks
Is this a new issue?
ImageProcessor is not Umbraco nor Umbraco based.
Umbraco just uses it so ImageProcessor has no visibility of Umbraco nodes. I would have hoped that would be clear in the documentation.
That's it fixed now btw.
Hey Jose,
Can you do me a favour please please mark this as answered. I'd like to clean up the forum a little.
Thanks!
This is answered and fixed now.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.