Support » Plugin: WP Retina 2x » Request: Option to tune retina ratio from x2 to x1.5

  • Resolved synthview


    thanks for you plugin working perfectly.
    However, I notice on pages with many imgs the loading time becomes huge, without talking about mobile retina phones.

    I think and option setting the standard retina enlargement would be useful. for instance to set 1.5%, images will be crisper than x1, but lighter then x2.

    Also, would it be possible to have an option to do-not use @x2 images on smaller screens ? The case: I have some photos 900px wide. On an iPad I’d need retina versions of them, but on an iPhone, the 900px fits to screen size and get like a retina one. Actually with your plugin an iPhone loads an image 1800px wide to display it on a 480px wide screen. A big waste of CPU and bandwidth.

    Thnaks a lot

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



    Doable easily, yes, I could definitely add the 1.5x option if it helps. I would keep the @2x extension, and later in time, if you want to have real @2x, you would just have to click on “Delete all @2x” and then “Generate all”. I added this to my to do list.

    There is actually a fresh thread on this forum asking for the same thing about avoiding the mobiles to get the @2x images πŸ™‚ I will add this as a setting in the next release.

    When you have time, please write a little review (^^ Thanks a lot πŸ™‚

    yes, maybe a slider or something letting adjust between 1.4 and 2 would be fine always keeping “@2x” in file name to keep in consistent (for instance I’m relaying on the scripts of your plugin to serve some template’s images in retina res).

    There is a plugin trying to serve smaller imgs for mobile,
    BJ Lazy Load
    you could maybe take a look at it

    Update: it seems your plugin is very memory-demanding. My actual server does not support the workload as Im working on an images blog πŸ™

    I don’t know if it’s something you can optimize, I leave you the feedback just in case.

    this file is listed in the server’s error log
    (12)Cannot allocate memory: […] /wp-content/plugins/wp-retina-2x/wr2x_image.php

    I’m using “server mode”

    Plugin Author Jordy Meow


    You should use another plugin for the “responsivity” performance of the images. The retina plugin will only be about supporting Retina, and depending on the theme, it could actually register and use smaller images by itself if it was well made (and of course would go through the WordPress system and the WP Retina 2x). The plugins that handle the resizing depending on the devices are somewhat a patch, a workaround, and if I had to develop a theme, I wouldn’t need one of those for sure. The less plugins the better πŸ™‚

    Very demanding, do you think ? :p It’s actually extremely light. I understand there is a problem with the Server-Side Method (which is using Retina Images: Normally images are sent to the browsers more or less “directly” but with this method, they go through PHP. You should maybe try to give more memory available to your PHP (by default, the memory limits are usually low on hosting services, but you can change that). Don’t you want to try the HTML Rewrite method?

    I’ve tried the html rewrite but I have the same memory limit issue.
    So, are you telling me to try implement Retina images directly into my theme right? The cool stuff of your plugin however is it generated al the imgs automagically πŸ™‚


    Plugin Author Jordy Meow


    You have thie memory limit issue with HTML Rewrite as well!? Wow. Okay, I think your WordPress is running at its very limit right now, you really must change your settings. Did you read this plugin’s FAQ? There is a solution in it, please try, I am pretty sure it will work.

    You don’t have to implement Retina in your theme: you have to implement the “Optimized Responsiveness” in it.

    Basically, the Responsive Theme have 3 (more or less) different screen sizes. Depending on each of those supported screen sizes, the layout changes, and the image sizes change as well (again: this has nothing to do with Retina). For example, let’s say your posts originally contain a large image that is 1200*800. On an iPhone, the theme layout would change and the image would became 400*300 (or something else). For that, the themes usually just change the size using CSS. If you want to do it right, you should try to have your theme using 400*300 images directly from the start πŸ™‚ You would also have this 400*300 size registered in WordPress as well.

    Retina has nothing to do with that, of course. It will do this job, and just load a bigger image in case it is a retina, to fill-up the screen pixel-density.

    Is it clear? Maybe not… It is actually a bit difficult to explain, and a very recent issue.

    Actually I think those responsive themes are more an annoyance than anything, and if you really want your website to looks great on PC, Tablets, and Phones, you should have 3 completely different themes adapted for each. Much simpler and optimized.

    Ok thanks, I’ll read our faq with more attention this afternoon. My issue is I can’t change apache settings. I’ll maybe change hosting πŸ˜‰
    As the site I’m building is essentially about photos set as 100% width of an elastic container div, how can I change them on the fly with screen size, and without using javascript (as the photos aren’t in background of course so no css switch possible)?

    Plugin Author Jordy Meow


    You don’t need to change those settings, don’t worry, the wp-config.php will be enough πŸ™‚

    Change them on the fly is usually not a good idea, I have a photo blog as well and I don’t bother with that (just thinking about making a version of my theme for the phones). I guess just use a CSS with a new size for mobile phones will be alright for now. It will not be optimized but I am not sure you want to do a huge amount of work to have an awesome photos website for iPhone. People interested in it will prefer to look at it on a normal display anyway…

    Not sure, retina iPads screen are much better than any Pc/Mac desktop screen today. But I understand about the phones.

    Wait! I’ve set to html rewrite and disabled some other settings from the plugin “lazy load” and now it seems to work better.
    In fact, How the Html rewrite works exactly? does any devices load the images twice?

    In fact, with Server mode, my theme’s retina images were loaded automatically. Now the images into my css (background images) aren’t retina any more.
    Have I to create a special HD css for it (but on retina devices the images will be loaded twice) or to manually insert the js making the switch?

    Plugin Author Jordy Meow


    HTML Rewrite simply “rewrites” your HTML, replacing directly the normal images by retina images when required (and possible). It is not loaded twice, and there will be no 404.

    CSS and theme should be handled separately in most cases. If it is only the theme, just use double-size image always and don’t bother, probably your theme images aren’t that heavy anyway. Alternatively, you can use CSS and media queries πŸ™‚

    Ok thanks,
    yep, I’ve added a retina css media query and kept retina images enabled on thumbnails only, as big images are big enough to iPad and resize gracefully on iPhone becoming retina-like automatically.
    Great plugin anyway πŸ™‚ thanks

    Plugin Author Jordy Meow


    I’m glad your website is retina, it’s all that count πŸ™‚

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Request: Option to tune retina ratio from x2 to x1.5’ is closed to new replies.