• In Media settings, I have specified the resolution for large images to be “1920×1080”. All images I’ve uploaded are of equal or higher resolution and have been uploaded after this setting was set. I also have no plugins installed.

    wp_get_attachment_image_src(xxx, ‘large-image’) returns the files with image resolutions of 1200×675 (e.g. testfile-1200×675.jpg).

    Further tracing leads me to an extract from _wp_attachment_metadata:

    a:6:{
    s:5:”width”;
    s:4:”1920″;
    s:6:”height”;
    s:4:”1080″;
    s:14:”hwstring_small”;
    s:23:”height=’72’ width=’128′”;
    s:4:”file”;
    s:22:”2011/10/xxx_xxx.jpg”;
    s:5:”sizes”;
    a:7:{
    s:9:”thumbnail”;
    a:3:{
    s:4:”file”;
    s:22:”xxx_xxx-150×150.jpg”;
    s:5:”width”;
    s:3:”150″;
    s:6:”height”;
    s:3:”150″;
    }
    s:6:”medium”;
    a:3:{
    s:4:”file”;
    s:22:”xxx_xxx-300×168.jpg”;
    s:5:”width”;
    s:3:”300″;
    s:6:”height”;
    s:3:”168″;
    }
    s:15:”small-thumbnail”;
    a:3:{
    s:4:”file”;
    s:21:”xxx_xxx-133×75.jpg”;
    s:5:”width”;
    s:3:”133″;
    s:6:”height”;
    s:2:”75″;
    }
    s:11:”large-image”;
    a:3:{
    s:4:”file”;
    s:23:”xxx_xxx-1200×675.jpg”;
    s:5:”width”;
    s:4:”1200″;
    s:6:”height”;
    s:3:”675″;
    }
    s:18:”featured-thumbnail”;
    a:3:{
    s:4:”file”;
    s:22:”xxx_xxx-195×145.jpg”;
    s:5:”width”;
    s:3:”195″;
    s:6:”height”;
    s:3:”145″;
    }
    s:14:”tape-thumbnail”;
    a:3:{
    s:4:”file”;
    s:22:”xxx_xxx-604×340.jpg”;
    s:5:”width”;
    s:3:”604″;
    s:6:”height”;
    s:3:”340″;
    }
    s:14:”grid-thumbnail”;
    a:3:{
    s:4:”file”;
    s:22:”xxx_xxx-219×160.jpg”;
    s:5:”width”;
    s:3:”219″;
    s:6:”height”;
    s:3:”160″;
    }
    }
    s:10:”image_meta”;
    a:10:{
    s:8:”aperture”;
    s:1:”0″;
    s:6:”credit”;
    s:0:””;
    s:6:”camera”;
    s:0:””;
    s:7:”caption”;
    s:0:””;
    s:17:”created_timestamp”;
    s:1:”0″;
    s:9:”copyright”;
    s:0:””;
    s:12:”focal_length”;
    s:1:”0″;
    s:3:”iso”;
    s:1:”0″;
    s:13:”shutter_speed”;
    s:1:”0″;
    s:5:”title”;
    s:0:””;
    }
    }

    I can temporarily bypass this by modifying my theme to use full-image instead of large-image but there’s still a lot of over-head with extra images. I fear this is more of a bug. Please advise?

  • The topic ‘WordPress storing wrong image sizes for large-images’ is closed to new replies.