1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Cropping image isn't working correctly

Discussion in 'Media Gallery Resolved Bugs' started by CreationNation, Nov 20, 2015.

  1. CreationNation

    CreationNation Active Member

    I am doing some testing with uploading an image via my phone. I hop over to my desktop so I can rotate and crop the image. Rotates fine. When I go to crop, I line up my boundaries, and hit crop, it asks me if I am sure and that it can't be undone. Then it crops.

    Only problem is, it didn't crop the image to the boundaries I set with the crop window. I had this image set to crop around the 3 CDs, and I ended up with this (twice now):

    [​IMG]

    I didn't see anyone else having this issue when searching. Any help appreciated!
     
  2. CreationNation

    CreationNation Active Member

    Also, judging from the size of this image, it did not adhere to my 1600x1600 setting either.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    Can you upload the original image here and let me know when you have - I would like to give it a go.
     
  4. CreationNation

    CreationNation Active Member

  5. CreationNation

    CreationNation Active Member

  6. Chris D

    Chris D XenForo Developer Staff Member

    I believe this is a bug so we will look into it.
     
  7. CreationNation

    CreationNation Active Member

    I'm just glad I'm not crazy! Thank you sir.
     
  8. Chris D

    Chris D XenForo Developer Staff Member

    Ok, so after spending some time looking at this, although I can concur the image you uploaded here is not working as expected, I cannot actually reproduce the exact situation. Meaning that I can upload pictures taken with my iPhone 6 Plus and they work fine. That said, I have noticed another bug which is sort of unrelated, but I don't think it's totally relevant here.

    Can you upload to your FTP or similar the file exactly as it was on your phone - I'm specifically trying to avoid it going through any of our upload systems which may automatically resize or rotate an image; I think I understand what's going on, but I'm trying to pinpoint what caused it.
     
  9. Chris D

    Chris D XenForo Developer Staff Member

    OK. The bug I identified earlier is exactly related to this, and is therefore the cause for this entire problem.

    When rotating (or flipping, or cropping) an image we weren't updating the stored width and height for the image, and it's these dimensions which form the basis of a calculation used by the tagging/croping system so that the boundaries you draw on the scaled image - larger images are resized in the browser using CSS - upscale to the correct boundaries on the original image. Simply, if the width and height is wrong, you will end up cropping the wrong part of the image.

    This has been addressed in XFMG 1.1.3 and we will roll out the changes here shortly to do some more testing.
     
    Steve F and thedude like this.
  10. CreationNation

    CreationNation Active Member

  11. Chris D

    Chris D XenForo Developer Staff Member

    I believe if you uploaded the image again and tried again then it should work now.
     
  12. CreationNation

    CreationNation Active Member

    (still seeing XFMG 1.1.2 in downloads)
     
  13. Chris D

    Chris D XenForo Developer Staff Member

    I meant try it here on this site. We roll changes out here first before release.
     
  14. CreationNation

    CreationNation Active Member

    Worked perfectly :)
     
    Chris D likes this.

Share This Page