• Resolved purestblue

    (@purestblue)


    I manage two blogs for some less technically minded friends. I’ve just found that they’ve “eaten” massive amounts of disk space by uploading image files that could be printed at A0 size!

    I need to re-size all their images and educate them for future uploads.

    My intention is to run all images through ImageMagick and get them sensibly sized. Does WP keep original file size recorded anywhere and is my resizing likely to cause any problems, or can I just replace the oversized images with sensible sized ones and everything will be OK?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi. When you say you will be replacing them, will you replace them via FTP or upload them through the media library?

    I do not know a precise, comprehensive answer for your question, but I do know WordPress records sizes in the database and makes additional copies of various sizes for thumbnails and such during upload. So, any later call for an image that had been manually re-sized would be given wrong dimensions…and there is where I do not know all the possible side-effects. At the very least, wrong dimensions would be sent to browsers during display assembly.

    There might be a media manager plugin that will optimize and re-size images already in the library, and that is where I would begin looking. If I had no success there, I would make a backup copy of the uploads folder, then delete from it the thumbnails, then re-size its originals, then delete the originals from the media library, then upload the re-sized images with their same original files names and into their original locations, then use the Add From Server plugin (and “Current Time”, not “File Time”) to re-register those uploads in the database. After that, re-attach the images to their respective pages and posts and all should be well.

    Thread Starter purestblue

    (@purestblue)

    @byanofsky: I was planning on FTP upload, but I’m open to any suggestion that avoids the long process @leejosepho has described.

    @leejosepho: OMG! Re-attach images to their pages and posts?! There are hundreds of images, quite possibly up to about 2000. ?? I don’t like that one bit.

    Looks like a hunt through plugins. I did find one before I asked here and it mentioned changing the memory allocated to PHP, and I can’t do that, this is all hosted and I don’t have access to that kind of thing. I’ll see if I can find an alternative plugin.

    Thread Starter purestblue

    (@purestblue)

    I’ve found Imsanity, it appears to have done the job, I’ll report back how much space I’ve regained when I next run a backup.

    Thanks for the input

    I’ve found Imsanity, it appears to have done the job…

    Good deal! I know the manual method can be quite tedious and time-consuming, and neither would I even consider it with that many images!

    That’s cool. Didn’t know about this plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image resizing after upload – any pitfalls?’ is closed to new replies.