RICG Responsive Images Version 2.3

Happy Monday everyone. Version 2.3 of the RICG Responsive Images Plugin for WordPress just launched with a few notable new features and bunch of smaller improvements.

Gallery support

As of version 2.3, images inside galleries will now include srcset and sizes attributes.

We’ve added this support by moving the filter from post_thumbnail_html to wp_get_attachment_image_attributes, so if you’re a developer and had previously been manually overriding the post_thumbnail_htmil filter, you’ll now want update your code to reflect this change.

Advanced image compression

If you’re a web developer who cares about optimizing the file size of the images you’re serving your users—and I know you are—then you may be underwhelmed by the native image compression settings WordPress uses when creating different size crops of an image you’ve uploaded.

Dave Newton, the RICG’s resident compression wizard, has come up with a better algorithm for Imagemagick, which we’ve included in this version of the plugin as an experimental opt-in feature. To enable better image compression on your site, you’ll need to add support by including something like this in your functions.php file:

function custom_theme_setup() {
add_theme_support( 'advanced-image-compression' );
}
add_action( 'after_setup_theme', 'custom_theme_setup' );

The advanced compression settings are a bit more resource heavy than WordPress’s default settings, but the savings are significant. Give it a spin and let us know what you think.

Additional updates

  • The plugin is now officially included in the list of Beta Testing plugins in WordPress.org.
  • Upgraded to Picturefill 2.3.1
  • Improved performance of `get_srcset_array`
  • Fixed a bug where duplicate images sources could be included in `srcset` attributes
  • Fixed a bug where some image sources were being dropped when changing image sizes in the editor.

If you want to provide feedback or get involved in the project, you can check out the GitHub repo and find us in the #feature-respimage channel of the WordPress Slack team.

2 thoughts on “RICG Responsive Images Version 2.3”

  1. Hi Joe,
    Forgive my ignorance on how to go about this but just quickly wanted to ask where, if there is a place, can I inquire about the RICG plugin. I read about and installed the plugin today. After activating it I noticed no difference in the 13 files that are already being uploaded per image (through the wp media library). There is absolutely no difference in upload behavior or to the file sizes. It’s like the plugin was never activated.. Theme = Kalium.

    Thanks and sorry to bother you for this! Please point me in the right direction for inquiry.
    Steve
    ps This plugin sounds great and would be thrilled to make it work.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.