Automatically Copying Images of Different Sizes Error
-
When adding an image into the WordPress data that is labeled:
this-picture-upload-01-700×400
WP-Optimize 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 WP-Optimize 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
WP-Optimize 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
WP-Optimize 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.jpgThrough 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.
………
What function in WP-Optimize 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]
- The topic ‘Automatically Copying Images of Different Sizes Error’ is closed to new replies.