WordPress.org

Ready to get started?Download WordPress

Forums

WP Retina 2x
[resolved] Don't detect @2x image (8 posts)

  1. alexislevrai
    Member
    Posted 2 years ago #

    Hello,

    I test your plugin, but I don't understand why, he don't work on my website (WP 3.4 / Twenty Ten template).
    Images resize @2x work fine, but in front office impossible to detect if @2x images exist (with server-side and with client-side)

    But when I activate your plugin, my htaccess change from :

    AddType x-mapp-php5 .php .php3 .php4 .htm .html
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /lab/wordpress34/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /lab/wordpress34/index.php [L]
    </IfModule>
    # END WordPress

    to that :

    AddType x-mapp-php5 .php .php3 .php4 .htm .html
    # BEGIN WordPress
    
    # END WordPress

    Strange no ?
    Thanks for your work.

    http://wordpress.org/extend/plugins/wp-retina-2x/

  2. adrianviz
    Member
    Posted 2 years ago #

    Hi,
    Installed the plugin. You say that "Check your Media Library where you can find the new 'Retina' column"

    Plugin is installed file but i do not see such column. Thanks!

  3. adrianviz
    Member
    Posted 2 years ago #

    Hi,

    All is well. Retina column is showing up. Here is my question.

    For example i want a 500 x 250 image in my post. Obviously to show on retina display in high res it would have to be 1000 x 500.

    What do i actually upload? Since when i upload 500 x 250 it tells original file is too small and wants me to upload a 1000 x 500.

    But when you upload 1000 x 500 it would tell you to upload 2000 x 1000 and so on.

    Thank you!

  4. Jordy Meow
    Member
    Plugin Author

    Posted 2 years ago #

    I think we got two questions in the same thread here :) Okay I will reply to Adrian first:

    I know about this issue but I actually don't really know how to resolve it. Maybe you will have some ideas after reading the explanation below.

    Let's say for example that we only have the medium (300x200) and large (800x600) sizes set-up in WordPress.You upload an image which is 400x300 and WordPress will only create the medium image (it cannot create the large one and it will not tell you anything). Then the Retina plugin will only see that medium image.

    It will complain that the image is not big enough, and ask you for a 600x400 image minimum. At this time, you might upload a 800x600 to make sure it's big enough and WordPress will finally create the "large" image as well. Then of course the Retina plugin will ask for a 1600x1200 image...

    I could check all the sizes in WordPress and ask directly for the 1600x1200 image, but depending on which plugin you use or how you use WordPress it might be not the best option. But my plugin getting crazy and asking you for a different resolution each time you upload an image is annoying as well.

    What do you think would be the best solution?

  5. Jordy Meow
    Member
    Plugin Author

    Posted 2 years ago #

    Alexislevrai: This is a weird issue. It shouldn't do that (obviously). On my websites, the .htaccess looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^.*\.(jpe?g|gif|png|bmp) /wp-content/plugins/wp-retina-2x/wr2x_image.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    When I disable/enable the plugin, it removes this line or add it, that's all. It wouldn't change anything else and I'm using the WordPress API to do this so it is quite clean. Mmm, can you contact me directly? (using totorotimes.com). There might be an issue related to another plugin or something, but I'm not sure what.

  6. Jordy Meow
    Member
    Plugin Author

    Posted 2 years ago #

    @adrianviz, there is a new version of the plugin now. The issue is gone :) Please try.

  7. alexislevrai
    Member
    Posted 2 years ago #

    I think wordpress was not correctly installed.
    I re-install WP 3.4.1 and now with you last update it work fine.

    I'll come back here if I encounter other problems.

  8. Jordy Meow
    Member
    Plugin Author

    Posted 2 years ago #

    Okay, super, that's cool :) Mark the topic as resolved if it works (if there is another issue, let's start another thread).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic