How to process one image into several

I'm looking at serving different sized assets for different screen sizes, all neatly done with the srcset tag in the browser but I would like to store the high-resolution version in source control and have rails automatically process it to the various sizes I need.

I've looked into customising sprokets but it doesn't seem to have an option for one-input-many-output processors.

Any suggestions?

Leave a Comment