You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very simple plugin to get retina images on your WordPress site. Automatically load high resoloution images using the new srcset attribute.
12
+
13
+
== Description ==
14
+
15
+
The new srcset attribute has recently dropped in Chrome and Firefox. It is the simplest way to get retina ready images on your site.
16
+
17
+
This plugin will automatically add the srcset attribute to your images if a suitable retina sized image can be found.
18
+
19
+
It also includes a JS polyfill to ensure that this works on all browsers - not just those that support srcset.
20
+
21
+
Note that this plugin does not handle generation of the alternative images, and this should either be done manually or using another plugin. See installation instructions for more information.
22
+
23
+
== Installation ==
24
+
25
+
There are 2 ways to use the plugin:
26
+
27
+
1. You will either need to manually register image sizes for 2x versions of your images in your theme.
28
+
2. Use an on the fly image generation solution such as [WPThumb](https://github.com/humanmade/WPThumb).
29
+
30
+
Example of how to register high resoloution versions of an image.
31
+
`add_image_size( 'small', '100', '100' );
32
+
add_image_size( 'small-2x', '200', '200' );`
33
+
34
+
== Changelog ==
35
+
36
+
1.0 - Initial release. High res images for WordPress using srcset attribute and srcset-polyfill
0 commit comments