Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ericjforman

    (@ericjforman)

    The bug seems to have something to do with the file name. It does not work fully if uploading a new file with the same name. If you change the file name before upload AND choose “use new file name”, it does work. If you try a workaround to change the name back and re-upload, even with “use new file name”, again it doesn’t work, the full size image will work but the other sizes will revert to the old version.

    Thread Starter ericjforman

    (@ericjforman)

    Follow-up: even using a plugin like “Regenerate Thumbnails” to force update of other sizes does not work. (https://www.ads-software.com/plugins/regenerate-thumbnails/). Again, it does work with different file names. If nobody else is having this problem, maybe it is something to do with my theme using Custom Post Types?

    Correct, and this is by design. Check out my previous explanation why here:

    https://www.ads-software.com/support/topic/not-updating-img-src-for-resized-images

    Would it be possible to include a check for the size and if the image has the same size/dimensions then the thumbnails are re-generated?

    This would help if you are uploading the exact same image, but optimized for size (compressed etc). The other images should then also be regenerated to have the most optimized version.

    Thanks!

    For anyone interested, I fixed “upload.php” to properly replace all images, not just the full size.

    It uses the same resolution as the previous image (Regular Expression magic).

    Here’s the “paste” for upload.php
    https://pastebin.com/jf8k8EKu

    Thread Starter ericjforman

    (@ericjforman)

    thank you sigurdurg

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Only replaces full size of image, but not other sizes’ is closed to new replies.