• Hi. I have a number of image sizes defined. Here is the full set as displayed in the WP Retina settings page (http://cl.ly/image/2t2O463c2d1T).

    There are 3 different image types (normal, square, wide). The normal ones only have the width defined and the height simply adjusts proportional. The definition for this is add_image_size('small', 400) for example. The height shows as ‘0’ in WP Retina because it’s undefined. WordPress expects it to be defined this way.

    WP Retina will not generate a retina friendly image though for these images with height not set. So, for example, if I have a source image with size 1600×800 and my image size is defined as Small (400×0) and Medium (800×0) it will create the 2x version of small, but not medium, even though I’m uploading an image with 1600px wide source.

    It is almost like it’s checking to see if the smallest of the two dimensions is available.

    Any ideas?

    https://wordpress.org/plugins/wp-retina-2x/

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hello Ashenden,

    Retina has to use the height as well. For that, it doesn’t use whatever is set in those settings (they can change overtime or can vary from one pixels or two depending on a few cases, WP magic!), it uses the actual sizes of the generated images created by WordPress. Can you check the actual sizes of those?

    That might be why the Small is generated and the Medium is not. The height of the original image might not be enough.

Viewing 1 replies (of 1 total)
  • The topic ‘Retina Image Not Generating for Images with Only Width Defined’ is closed to new replies.