implementing responsive images
-
Hi Jordy,
Nice plugin. I few basic questions:
I have responsive website (bootstrap based). I currently use retina.js
After discovering the srcset attribute I would like to start using your plugin in the future with PictureFill.1. My custom media sizes only have a max. width – not a max. height. Files will have variable names (e.g: file1-100×105.jpg, file2-100-109.jpg, file3-100×78.jpg, etcetera). Is that a problem for your plugin?
2. Since the pages are responsive I need different media-sizes per image. My idea was to generate all the different media sizes with your plugin.
Then the plugin would list every generated media size for an image in the srcset and the browser would decide which image to pick.<img srcset="/wp-content/uploads/image-100x100.jpg 100w, /wp-content/uploads/[email protected] 200w, /wp-content/uploads/image-150x150.jpg 150w, /wp-content/uploads/[email protected] 300w" alt=“something“>
Would something like above be possible, or does the plugin only support this:
<img srcset="/wp-content/uploads/image-150x150.jpg 1x, /wp-content/uploads/[email protected] 2x" alt=“something“>
Thanks for helping,
cheers,
Simon
- The topic ‘implementing responsive images’ is closed to new replies.