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
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.
hi @nicholasjcoleman,
thanks for investigation and reporting – i will have a look into this.
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?