Support » Plugin: WP Retina 2x » Portrait images are huge

  • Resolved haydnwilliams

    (@haydnwilliams)


    WP Retina 2x seems to be working perfectly for my images in landscape orientation, but those in portrait are just showing as absolutely massive – see example at http://www.haydnwilliams.com/blog/pup-bodega-nottingham

    The plugin says I need a minimum image width of 2800 pixels to generate other image sizes. This is fine for landscape images, but if I make the long side of a portrait image (i.e. the height) 2800 pixels then the plugin refuses to generate the other image sizes because it says the short side is too small. If I make the short side of the portrait image (the width) 2800 pixels, then the plugin happily says it’s generated the other image sizes but then displays them huge on the page.

    Have I missed something obvious here? Had a look through the previous threads but couldn’t see anything applicable.

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

    (@tigroumeow)

    Hi,

    seems to be working perfectly for my images in landscape orientation, but those in portrait are just showing as absolutely massive

    Actually the plugin doesn’t handle the fact it is a portrait or a landscape, that’s totally up to your theme, gallery plugin, or else. This is by design and it’s part of CSS. Probably that a max-width needs to be added in the CSS properties of your images. You should check with your theme developer.

    but if I make the long side of a portrait image (i.e. the height) 2800 pixels then the plugin refuses to generate the other image sizes

    That’s actually an issue of the plugin, I should add an option that says that we don’t need certain size of portrait images. They often doesn’t need the extra sizes because they are displayed smaller. But even if they are generated, they are “alternative”. Your CSS should be clever enough to handle this. Even without the plugin, the issue could happen through the way WordPress now handles images (Responsive Images).

    OK, thanks. I’ve tried with three themes now and it’s the same throughout so looks like I’ll be going back to standard resolution images!

    Plugin Author Jordy Meow

    (@tigroumeow)

    To me, it looks like you are frustrated and you think that it’s the plugin’s fault, right? 🙂 I am sorry about that. But in reality, the plugin can’t do the CSS part for you, the theme is supposed to do this. Ideally, the size of the images in a certain part of your blog have a fixed size, then whatever is the size of the image in there (through WP Retina 2x or just by doing it manually), the image would not extend.

    If you have a bit of interest into it you can check how Retina works exactly on the web, not about my plugin but in general, the concept is the same for everything linked to Retina.

    Hi Jordy,

    Half right – I am frustrated, but I don’t blame the plugin! 🙂 I’m frustrated for a few reasons:

    1) How does this not just work straight out of the box in WordPress, particularly when so many themes describe themselves as “retina-ready”?
    2) Why is this thread the only Google result for this problem, ie why is no-one else struggling with the same issue?
    3) I’ve had a look at the CSS and haven’t yet worked out how to do it – and I *hate* not being able to understand things!

    I don’t expect answers to those questions, just wanted to point out why I’m not annoyed with plugin but with other things instead! I’ll keep working on it and hopefully will get somewhere; will update this thread if so, just in case anyone else runs across the same problem with their theme(s) in future.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    1) How does this not just work straight out of the box in WordPress, particularly when so many themes describe themselves as “retina-ready”?

    To be honest, no idea, I feel like many theme developers are still using old machines to develop, spend time on the design but not on the technical part, don’t even look at the way we need to use the WordPress API now. Well, it will get better little by little anyway 🙂

    2) Why is this thread the only Google result for this problem, ie why is no-one else struggling with the same issue?

    It’s the first time I hear about it too. Because retina or not, everything in themes should be dynamic/responsive, so the real size of the image doesn’t matter, the website just size it through CSS dynamically depending on the device/screen. Your theme didn’t implement it well here. What is the theme you are using? Is it a popular one?

    3) I’ve had a look at the CSS and haven’t yet worked out how to do it – and I *hate* not being able to understand things!

    CSS is difficult if you don’t know about it, it’s better to hire somebody for one hour to do this for you and to give a few explanations, I am pretty sure many people around you can do this 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Portrait images are huge’ is closed to new replies.