image-process icon indicating copy to clipboard operation
image-process copied to clipboard

Add cache-busting of images

Open scolby33 opened this issue 4 years ago • 3 comments

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.

scolby33 avatar Mar 15 '21 04:03 scolby33

This would be nice - I guess @MinchinWeb would agree? :smiley:

S1SYPHOS avatar Oct 03 '22 07:10 S1SYPHOS

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.

minchinweb avatar Oct 03 '22 15:10 minchinweb

I'd have to look into your source first - but sure, I guess I could whip something up!

S1SYPHOS avatar Oct 03 '22 15:10 S1SYPHOS