• Hi,

    When I make changes to an image in the Media Library – it creates a copy of the image with the changes, instead of having the changes made on top of the original image. Example:
    I have an image with filename “abc.png” and I crop it to half it’s size. I save the cropping and hit the “Update” button. Now the image is named “abc-e1234567” and the changes are not applies to “abc.png”.

    I understand the original images stay as a backup and it’s a good practice, but in my case that functionality doesn’t help more than annoy. Is there a work around to this and to force certain original images to be replaced?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Untested, but I think you can use the “image_make_intermediate_size” filter to alter any saved image filename. In doing so, the callback must be careful to not alter the various size suffixes like “-150×150” or else different sizes could try to utilize the same filename. A regexp in preg_replace() can make such distinctions.

    Thread Starter imddev

    (@imddev)

    Hey, thanks for suggesting a solution! I didn’t get to test it, as I realized that the approach I’ve had taken was wrong.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Media library disable “original” image backup and instead just replace/update’ is closed to new replies.