Thursday, June 20, 2013

Resizing Images [a coding post]

In most cases, CSS is the best tool for handling varying product image sizes. But occasionally a project demands that you crop and/or resize images based on their orientation.

I wanted to share my solution for conditional resizing in Shopify using javascript.