SHARE
TWEET

Example of using Timthumb with the new srcset attribute

a guest Aug 22nd, 2013 116 Never
  1. <!-- Example of using Timthumb with the new srcset attribute -->
  2.  
  3. <img
  4.   src="path/to/timthumb.php?src=path/to/img.jpg&height=150&width=150"
  5.   srcset="path/to/timthumb.php?src=path/to/img.jpg&height=300&width=300 2x"
  6.   alt="My image"
  7.   height="150"
  8.   width="150">
RAW Paste Data
Top