• Resolved WebmasterT

    (@webmastert)


    When adding an image into the WordPress data that is labeled:

    this-picture-upload-01-700×400

    EWWW Image Optimizer has begun adding a -1 after the file name, creating:

    this-picture-upload-01-700×400-1

    This “-1” is typically added only when the exact same file name already exists in in the database.

    Now EWWW Image Optimizer is adding it to any upload like this:

    this-picture-upload-01-700×400

    If I add a picture with a file name like this (I actually added this into the database for you to see):

    drfdffdfsddfdfdfdf38

    EWWW Image Optimizer doesn’t add “-1”

    But when I change that same file to this file name (I actually added this into the database for you to see):

    qorianka-kilcher-the-new-world-01-1896×812

    EWWW Image Optimizer does this to the file name:

    qorianka-kilcher-the-new-world-01-1896×812-1

    Again, no other previous upload for “qorianka-kilcher-the-new-world-01-1896×812′ exists in our system.

    ………

    I posed this message to my website host and received this response:

    Do you have a module or modules that are automatically copying images and resizing them? It looks like every image that is uploaded is copied multiple times. I uploaded an image called “testbrick.jpg”, and when looking at the uploads folder, there are many copies of each image:

    [17:33][root@obp3-09 2019]$ find . -name testbrick*
    ./12/testbrick-390×220.jpg
    ./12/testbrick-780×470.jpg
    ./12/testbrick.jpg
    ./12/testbrick-150×150.jpg
    ./12/testbrick-768×768.jpg
    ./12/testbrick-65×65.jpg
    ./12/testbrick-320×240.jpg
    ./12/testbrick-164×164.jpg
    ./12/testbrick-220×150.jpg

    Through various tests, I can confirm that the “-1” is only appended when the filename itself contains image dimensions in the same format that the module(s) appends them. For example, testbrick1x1 uploads fine, as does testbrick-, but as soon as “-1×1”, with the “1”s being any number, are included in the filename, the additional “-1” is added. There are no errors appearing in the server logs, and it doesn’t appear related to anything at the server level. As far as I can tell this is likely the default behavior of one of your modules in an effort to prevent a situation in which you upload a file such as, “testbrick-164×164.jpg”, which would conflict with the module automatically creating its own “testbrick-164×164.jpg”. You will need to review your module settings to see if there is a way to prevent this.

    ……..

    I posed this message to my website: Is WordPress doing this or a plugin?

    This was his response:

    WordPress does not resize and cache images by default. This behavior would be added by a plugin. Reviewing your list of plugins I think it is WP-Optimize that is caching the re-sized copies.

    ………

    I contacted WP-Optimize about this error. This was their response:

    WP-Optimize doesn’t interfere with image uploads. If the automatic compression is enabled, uploaded images will be compressed, but that takes place later on.

    (I tested, and I can’t reproduce this).

    there are many copies of each image:

    [17:33][root@obp3-09 2019]$ find . -name testbrick*
    ./12/testbrick-390×220.jpg
    ./12/testbrick-780×470.jpg
    ./12/testbrick.jpg
    ./12/testbrick-150×150.jpg
    ./12/testbrick-768×768.jpg
    ./12/testbrick-65×65.jpg
    ./12/testbrick-320×240.jpg
    ./12/testbrick-164×164.jpg
    ./12/testbrick-220×150.jpg

    WordPress creates those different sizes according to your theme settings. When using WP-Optimize image compression, you might find an extra copy: ./12/testbrick-updraft-pre-smush-original.jpg which is a backup before compressing.

    This “-1” is typically added only when the exact same file name already exists in in the database.

    The suffix is added when the same file name exists on the disk (not the database), usually by WordPress itself.

    As said above, WP-Optimize doesn’t interfere at all with naming of files at the time of uploading.

    So it is likely to be something else.

    ………

    What function in EWWW Image Optimizer is copying it images in different sizes and how do I shut it off so: this-picture-upload-01-700×400 is not turned into: this-picture-upload-01-700×400-1.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    EWWW IO never renames files unless you have image conversion enabled and it needs to do so to avoid a filename conflict.
    To confirm, disable all other plugins, and upload an image with just EWWW IO active, and you should see the filename preserved. Re-activate your plugins one by one to find out what plugin is appending the numbers.

Viewing 1 replies (of 1 total)
  • The topic ‘Automatically Copying Images of Different Sizes Error’ is closed to new replies.