I’m working on an idea and I was wondering if it was even possible…
We are frequentlly tweaking images as the style of our website changes.
Usually we need to slightly alter the color of a layer in the image so
it matches our css. This means editing an image in photoshop, making
change and then exporting to jpeg. This process gets old very fast. What
I’d like to do is to save those images in a raw format and precompile
in the same way I precompile my other assets.
Example:* logo.jpeg.rb* precompiles to logo.jpeg, where the
is a ruby script that modifies a layered image file _logo.tiff (or
_logo.psd) using RMagick. In this example, _logo.tiff is the “raw”
logo.jpeg.rb is the script which processes _logo.tiff and which is
by logo.jpeg after pre compilation. The end result is a dynamic image- a
logo whose colors change to match our css.
Is this even possible?