Device Image Processing

Liquid snippet to process images (resize, compress, etc...) by 'Device Type' using Liquid and Treepl's ImageProcessor.

  1. Capture the image processing configuration you want to use per device type.

    <!--Treehouse CODE v1.0.0-->
  2. Then apply {{imageProcess}} to your image path:

    <!--Treehouse CODE v1.0.0-->
    <img src="/test-image-001?width=800&height=600&mode=crop" alt="Test Image">
    <div style="background-image: url('/test-image-001?width=800&height=600&mode=crop')"></div>

Comments or questions? Head over to the Treepl CMS forum to discuss with the community.