• Resolved lottieveronica

    (@lottieveronica)


    My media library keeps adding duplicate files – they will be scaled versions of the file I am uploading.
    File name: MCM-Walnut-Side-Tables-description-12-scaled.jpg is one of over 12 of the same original MCM-Walnut-Side-Tables-description.jpg.

    I have Smush installed. I don’t know if it is the culprit. What I have found is if I try and edit the photos while they are uploading, it definitely triggers more duplicates.
    I have tried uploading from my products page (WooCommerce) and it seems worse. Sometimes I get duplicates there that don’t show up in the gallery view. I have tried using just the gallery and not touching my computer while the photos upload. This helps a bit, but not always. I delete what I can, but occasionally I will set one of the duplicates as the image I want, and then, of course once I delete it, it’s gone. If it is the main image this causes other headaches (my Facebook shop doesn’t have a main image, nor does my website shop).
    I can’t say how long this has been happening, but for several months. I am tired of it…
    I have seen the suggestion to turn off all plugins and then turn them back on and upload photos each time I turn one on, plus backing up my site first. I hope to find someone who can suggest one of the plugins that may be causing this. I will start with Smush, but then I wonder if I am going to run into issue with too large of a file?… Not a programer, so please excuse my explanation.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hi @lottieveronica,

    Thank you for contacting us.

    Would you be able to provide us with the URL of the different duplicate images you are seeing on your media library? I would advise running a plugin conflict test as you mentioned. I see Jetpack is installed and this also has image optimization setting.

    To run a plugin conflict test, create a recent backup in case you lose any settings during the test and have to restore to a previous working state.
    Then deactivate all plugins and MU-plugins apart from Smush, activate a default theme like TwentyTwentyOne, clear all caches and check again if the issue is still there. If not, it means that something is conflicting, so start activating the remaining plugins and theme, one by one this time, checking every time for the reported issue, until you reproduce the issue, thus finding the conflicted combination. The following flowchart image can assist you during this test: https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    Best,
    Jonathan S

    Thread Starter lottieveronica

    (@lottieveronica)

    There isn’t a link to show you the issue – what happens is my media folder has multiples of the same image, some are “scaled” versions.

    I deactivated all of my plugins, except Smush. Still had duplicate images in my media folder. I tried a default theme, same. I reset but turned off Smush. Still duplicates. I have deleted the duplicates and now my photos are not syncing to the thumbnails. See https://vndecor.ca/shop/mid-century-credenza/?v=3e8d115eb4b3

    I do have Jetpack but just added it. I haven’t activated their image optimization. I didn’t expect the deactivating and reactivating to work because it only happens when I upload. I can’t go through and deactivate one at a time and upload multiple files.. I left Smush ‘off’ and I will try that. If that is the issue then I guess I can switch to JetPack.

    Thread Starter lottieveronica

    (@lottieveronica)

    I uploaded several files with Smush off and still have duplication. I will try some other plugins to see if they cause the same issue.

    Thread Starter lottieveronica

    (@lottieveronica)

    .

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @lottieveronica,

    what happens is my media folder has multiples of the same image, some are “scaled” versions.

    The images with the “-scaled” suffix is created by WordPress and it’s the default behaviour from WP v 5.3. Please check the following thread for more info on the feature:

    Introducing handling of big images in WordPress 5.3

    If you don’t want images to be created as abc-scaled.jpg etc, you can try the following code as mentioned in the above URL:

    add_filter( 'big_image_size_threshold', '__return_false' );
    

    The Smush plugin doesn’t have any role with the scaled images created. The above code can be added as mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://premium.wpmudev.org/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Regards,
    Nithin

    Thread Starter lottieveronica

    (@lottieveronica)

    This at least addresses part of the question. What I have happening, however, is the photo is duplicating numerous times (sometimes 12). One standard size and one scaled size image is manageable. I don’t know how to stop the multiple scaled images…

    Thread Starter lottieveronica

    (@lottieveronica)

    It doesn’t seem to be a Smush plugin issue though. I am unable to pin down the actual plugin, or maybe it is my theme? Deactivating plugins is a pain as I found I had to redo some features after troubleshooting that way.

    Thread Starter lottieveronica

    (@lottieveronica)

    I am trying to puzzle my way through this… so I apologize if this isn’t accurate, but I found this when I changed my media library view to list. One image has this data under my “Smush” column:

    20 images reduced by 20.8 KB (3.2%)
    Image size: 231.2 KB
    
    View Stats
    Image size	Savings
    FULL	PRO
    2048X2048
    (2048x1360)	8.2 KB ( 5.4% )
    1536X1536
    (1536x1020)	3.9 KB ( 4.3% )
    MAILPOET_NEWSLETTER_MAX
    (1320x877)	2.9 KB ( 4.1% )
    LARGE
    (1024x680)	1.6 KB ( 3.4% )
    HOOT-LARGE-THUMB
    (690x550)	745.0 B ( 2.2% )
    MEDIUM_LARGE
    (768x510)	742.0 B ( 2.5% )
    HOOT-PREVIEW-LARGE
    (695x462)	592.0 B ( 2.3% )
    HOOT-WIDE-THUMB
    (920x425)	579.0 B ( 1.5% )
    HOOT-EXTRA-WIDE-THUMB
    (1035x425)	560.0 B ( 1.3% )
    HOOT-PREVIEW-THUMB
    (465x550)	401.0 B ( 1.6% )
    WOOCOMMERCE_SINGLE
    (600x399)	370.0 B ( 1.8% )
    HOOT-PREVIEW
    (465x309)	153.0 B ( 1.1% )
    HOOT-MEDIUM-THUMB
    (460x270)	85.0 B ( 0.6% )

    This seems to show that it was condensed to several different sizes – and why I ended up with so many duplicates.
    Some of my photos are not ‘smushed’ – I can click that as an option. Is this a feature of all resizing plugins? I have deleted a lot of photos so I am not sure if the above list is referring to all of those that were deleted or some other information that I don’t understand.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @lottieveronica

    This is a WordPress feature.

    By default, WordPress creates some version of your image, the small, large, medium-large.

    But the CMS allow us to register new versions that are used in our websites, so the plugins and themes will register those new versions to fit better the images on their pages.

    You can find more on:https://wpmudev.com/blog/wordpress-image-sizes/

    Smush on the Free version will check those sizes and compress the files trying to reduce as much the plugin can without any visible loss on the free version, this why the Smush show those versions of images under the status.

    For the Pro, it includes the Super Smush and Full size.

    You will find all registered versions on the Smush dashboard:

    https://monosnap.com/file/KEfw2caeWoexb9FfCR4MBspFV79mAn

    Note, unchecking it will not disable any size only prevent Smush from compress those.

    You can use a native WordPress function to remove those extra sizes:

    https://developer.www.ads-software.com/reference/functions/remove_image_size/

    But I don’t suggest it as the theme and plugins will use those sizes to load the images on the frontend.

    Let us know if you have any additional question about it.
    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @lottieveronica

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Duplicate images in WP Gallery’ is closed to new replies.