• Resolved norbou

    (@norbou)


    Hey, David,
    I’d like to get some advice before I get to work because it’s always measure twice and cut once. If anyone has already dealt with this please point me elsewhere.

    We decided to shrink the uploaded images on wordpress to 2560×2560 px, which I could do using Imsanity.
    I found that WordPress since version 5.3 already does this itself, but the uploaded originals are still there. So in addition to downsizing the oversized images, we will be removing the oversized already downsized originals. I found a tool for this within the ewww optimize plugin, so it’s not a problem.

    Bottom line:
    However, I was wondering whether I’d rather restore those oversized originals and process them with a thorough MLA setup including metadata mapping and using Image Magick and only then delete the originals. I just couldn’t find a single mention of how this could be done anywhere.

    Bonus:
    I also found that there are many images in the database that just aren’t on FTP at all, perhaps this was just an HTTP error during upload or they were too big to process and not some fatal system failure. Hopefully I can figure out a way to filter out these records and delete them in MLA or using SQL query.

    Thanks for the unsurpassed plugin and support,
    Jiri

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your questions and for the link to your site. I love the architecture work shown in the images! Thanks as well for the positive feedback on the plugin and its support.

    I am not sure I completely understand your comments “restore those oversized originals” and “using Image Magick“.

    In general, MLA treats the “attached” files as a read-only part of the site. It does not have any features that move or modify the files. The only exception is the Thumbnail Generation bulk action in the Media/Assistant admin page.

    You can find all the oversized images by entering “-scaled” (including the quote marks; very important) in the Media/Assistant Search Media box and checking the “file” box beneath the text box. Restoring the actual file(s) is a task MLA can’t help you with.

    If you do restore the files MLA will use the original file, not the “-scaled” file, as the source for any metadata mapping rules.

    You wrote “I also found that there are many images in the database that just aren’t on FTP at all.” The current MLA version does not have any feature that tests for the existence of the “attached” file, but it would be easy to create a small custom plugin that adds this information to the Media/Assistant submenu table as a separate column and/or as a custom data source. If you are interested in this approach I can work on it when I have some time.

    Let me know if I have understood your questions and if you have any problems or further questions regarding my comments.

    Thread Starter norbou

    (@norbou)

    Thanks for your comment,
    I’ll try to deal with both problems using some specialized plugin to clean up the media library. I can’t help but agree that this is a marginal area for MLA, but I wanted to make sure you hadn’t addressed it as well.
    I’ve given up on restoring the original auto-scaled images because there’s probably no easy way to do it. Shrinking the oversized images that were not automatically rescaled by older versions of WP to 5.3 using batch processing using the Imsanity plugin didn’t work properly, so I’m putting it off for now until the plugin is fixed.
    Imsanity is a plugin that takes care of shrinking oversized images and also supports post-processing of oversized images.
    Image Magick is an alternative engine that WP uses to work with images, and which achieves better results in terms of quality.

    Kind regards,
    Jiri

    • This reply was modified 2 years, 3 months ago by norbou.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Correcting automatically scaled images’ is closed to new replies.