Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Wordpress: regenerate image metadata from files

    So I replaced over 200 images by FTP and have realised that now the attachment metadata is wrong (wrong dimensions), so WordPress is (for example) serving a 512px image at a width of 640px (by stretching it, presumably).

    I shudder to ask...is there a way to force WordPress to regenerate the Metadata from the original files?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,497
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Can you show me a link to your WordPress page where this is happening?

    WordPress usually doesn't resize to a "forced" dimension. I'm wondering if this might be something your WP theme is doing ... perhaps javascripting is involved? If I can see what is happening, I might have a good answer.

  • #3
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I've now fixed the issue (couldn't see a way of deleting my post).

    I used this plugin, which has a 'fix incorrect metadata' feature, and it found 32 images.

    http://wordpress.org/plugins/image-cleanup/

    Partly this may have been confusion on my part, having done so many batch operations to 200 images today I'd lost track of what on earth was going on. Certainly, though, I felt that I had an image of 512px width that was displaying at 640px (a previous width for that image).

    Thanks for your reply.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •