Copied to clipboard

Flag this post as spam?

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


  • Tom 119 posts 447 karma points
    Sep 19, 2014 @ 23:08
    Tom
    0

    ImageProcessor not performing crop when width equals height

    Hey

    This seems like a bug - but maybe someone knows what to do...

    I've got a rather big .png file (3.4mb) that I'm displaying in different crops.

    If I try to get a square crop it seems to fail and I'm getting the full image.

    Examples This will give me a cropped image - perfect!

    media/1108/boat.png?mode=crop&width=600&height=500&rnd=130556037350000000
    

    This will give me the full image - no good!

    media/1108/boat.png?mode=crop&width=500&height=500&rnd=130556037350000000
    

    Also when the height > width I get the full image...

    Help?

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Sep 20, 2014 @ 00:17
    Jeavon Leopold
    0

    Hi Tom,

    Sounds very strange, what are the dimensions of your original image?

    Is this online anywhere yet we could see?

    Jeavon

  • Tom 119 posts 447 karma points
    Sep 20, 2014 @ 09:43
    Tom
    100

    Hi Jeavon,

    After restarting my computer today, I can not recreate...so never mind :)

  • Tom 119 posts 447 karma points
    Sep 20, 2014 @ 10:12
    Tom
    0

    Oh, I can recreate it. Seems like it a cache problem - and when I manually change the random the image is cropped correctly.

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Sep 20, 2014 @ 10:48
    Jeavon Leopold
    0

    Hmm, maybe clear the cache, delete everything in /App_Data/cache

  • Tom 119 posts 447 karma points
    Sep 20, 2014 @ 13:41
    Tom
    0

    that didn't work. But I tried uploading the same image, with a different name and now it does what it's supposed to. So somewhere there is some cache that doesn't get cleared, even when you change the querystring.

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Sep 22, 2014 @ 11:51
    Jeavon Leopold
    0

    Hi Tom,

    That is very strange, are you sure you don't have a ISA server or something similar?

    If you have emptied /App_Data/Cache/ then there is no other cache generated by ImagePrcoessor.

    Jeavon

Please Sign in or register to post replies

Write your reply to:

Draft