image-process
image-process copied to clipboard
Add cache-busting of images
I would like to be able to "cache bust" my images, that is add a fragment of a hash to the filename as a final step in the processing, sorta like mv foo.jpg foo.$(shasum foo.jpg | head -c 8).jpg. I've taken a look at the source for this plugin, and don't think it would be too difficult to add. I would be willing to make a PR for this functionality if the maintainers think it belongs here.
This would be nice - I guess @MinchinWeb would agree? :smiley:
Oops...this appears to have been lost for a surprisingly long time. Thank you @S1SYPHOS for bringing this to my attention.
Yes @scolby33 , (if this is still something you're interested in), a PR would be appreciated. Two things that will help me integrate your PR would be 1) a description of your usecase (this helps we understand what you're hoping the new code will do, in a practical sense), and 2) tests (to make sure I don't break the functionality later by accident). Also, feel free to post your code in a WIP state. And if you don't get a response, feel free to ping me too.
@S1SYPHOS If this is something you want to do, you're welcome to have a crack at it too.
I'd have to look into your source first - but sure, I guess I could whip something up!