Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


This forum is in read only mode, you can no longer reply
  • Jose Gonzalez 15 posts 98 karma points
    Mar 24, 2015 @ 15:35
    Jose Gonzalez
    0

    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.

     

     

  • James Jackson-South 489 posts 1747 karma points c-trib
    Mar 24, 2015 @ 19:57
    James Jackson-South
    0

    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

  • Jose Gonzalez 15 posts 98 karma points
    Mar 25, 2015 @ 15:01
    Jose Gonzalez
    0

    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

     

  • James Jackson-South 489 posts 1747 karma points c-trib
    Mar 25, 2015 @ 17:59
    James Jackson-South
    0

    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.

  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 23, 2015 @ 17:42
    James Jackson-South
    2

    That's it fixed now btw.

  • James Jackson-South 489 posts 1747 karma points c-trib
    May 18, 2015 @ 12:05
    James Jackson-South
    0

    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!

  • Jose Gonzalez 15 posts 98 karma points
    May 20, 2015 @ 10:34
    Jose Gonzalez
    0

    This is answered and fixed now.

Please Sign in or register to post replies

Write your reply to:

Draft