• I used Imsanity to resize some images on my website. It worked well but the new size wasn’t to my liking so I overwritten the resized images with my previously backed up images of the same name but the original size. Now, te media library is stuck with the dimensions of the resized images but with the size of the original images.

    For example: An original image of 2mb was resized to 800×600 100kb. Now when i try to overwritte the 800×600 with the old 3000×2000 the dimensions stay at 800×600 but the size is reverted back to 2mb. What the hell is happening and how to fix that???

    https://www.ads-software.com/plugins/imsanity/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The problem is that WordPress has a table called wp_meta and this is where it stores the info about the images, as well that is where Imsanity reads from. So your original images have been replaced but WordPress still thinks they are the new size.

    To fix it you have to put the images and restore the DB as well, or at least the wp_meta table.

    The original images generally aren’t used most of the time on a page, the Large, Medium and Thumb are the images that are used most of the time. So it doesn’t really hurt anything to have the mismatch besides being kinda an annoyance.

    Thread Starter CreationP

    (@creationp)

    Hello Jason and thank you for your fast answer and support. You are right, of course. I managed to find the wp-meta and I used regerate thumbnails to fix the dimensions. From there I was able to try the new dimensions with excellent results.

    I’m actually VERY amazed by your plugin and the size difference. You should continue delivering patches (if there are any) for your amazing product!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strange problem with dimensions’ is closed to new replies.