• When I adjust a crop and click “Save Crop”, the processing runs for the FIRST image (in matched ratios) and somehow DELETES the full-resolution original image. I’ve verified via FTP that the original file is, indeed, deleted.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi @nicholasjcoleman,
    i just checked on one of my servers, but can’t reproduce by using these steps:

    • Upload a new image 01.jpg with a size of 5000×4000 Pixels – images is uploaded as “01.jpg”, “01-scaled.jpg” and the image_sizes i defined
    • Crop 2 images by using the “group by ratio” -> no image is deleted, images are cropped
    • Crop 2 images by using the “select by ratio” -> no image is deleted, images are cropped
    • Crop a single image, “thumbnail” size -> no image is deleted, image are cropped

    Second test with a smaller image that do not produce a “scaled” version -> no image is deleted, images are cropped.

    The tests where called directly from media-gallery.

    Can you please test again: for testing please disable all other plugins and use a default theme to verify that the bug is really produced by crop-thumbnail plugin.

    If the error still exists: please post a complete step by step guide, how to reproduce.

    Thank you

    Thread Starter nicholasjcoleman

    (@nicholasjcoleman)

    I figured out the issue – not sure exactly where the breakdown occurs, BUT… when uploading an image that includes spaces, or multiple dashes (Image Name.jpg or Image–Name.jpg) the image somehow is renamed (Image-Name.jpg). This renamed original image will now get DELETED when performing any crop. No idea why. Solution: Do not upload images with spaces or multiple hyphens in the file name.

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    hi @nicholasjcoleman,
    thanks for investigation and reporting – i will have a look into this.

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Sorry for the long delay – i just now had a look into that, but can’t confirm that behaviour.

    I uploaded an image called “test–NAME with spaces.png” which is automaticly changed to “test-NAME-with-spaces.png” by wordpress (i also tested with all lowercase). Had no issue cropping.

    – did your server run on linux or windows? (they handle lower and uppercase in a different way)
    – are your media uploads handled in a year/month based folder structure?
    – did you use any other media plugins i.e. for galleries or CDN?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cropping Images Deletes Original’ is closed to new replies.