WordPress.org

Forums

WP Retina 2x
Feedback - Ignore SVG file type (6 posts)

  1. hulsman1986
    Member
    Posted 9 months ago #

    Hi Jordy, you're awesome.

    :D

    Some feedback; can SVG file types be ignored by your plugin? Cause SVG's are already responsive and all, so they won't need a retina version.

    Thanks!

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

  2. Jordy Meow
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks! Which method are you using?

  3. hulsman1986
    Member
    Posted 9 months ago #

    Currently using retina.js within your plugin. Mainly because i am behind numerous caching solutions. So the html rewrite option won't work :P

    Example;
    http://prntscr.com/3wn0qm
    http://staging.mobileportal.spele.nl/spelletjes/jelly-collapse/

  4. macbookandrew
    Member
    Posted 4 weeks ago #

    I’m using the Picturefill method, though the retina.min.js file is still being included on the frontend.

    Perhaps you could add a "Disable for SVG" option in the settings that would in turn add data-no-retina to the img tag as described here: https://github.com/imulus/retinajs/issues/30#issuecomment-50786874

    Thanks for a great plugin!!

  5. Jordy Meow
    Member
    Plugin Author

    Posted 4 weeks ago #

    Using PictureFill the Retina.js is not included. It might be included by your theme or something else? Plus your pointing at a thread abotu Retinajs even though this is not the one you should be using?

    Normally SVG shouldn't be covered by the plugin because there is no @2x so it just wouldn't be included in the HTML. That should all work fine already.

  6. macbookandrew
    Member
    Posted 4 weeks ago #

    Sorry, I use your plugin on nearly all sites that I use. On this specific site, I was testing the RICG Responsive Images plugin and it’s producing the behavior above with retina.js.

    Regardless, of the WP plugin, retina.js seems to look for @2x SVG files unless you specify the data-no-retina attribute, so it may still be useful to add as a WP option for that method.

    Thanks again, and sorry about my confusion!

Reply

You must log in to post.

About this Plugin

  • WP Retina 2x
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic