i’m making an attempt at fixing https://github.com/hashobject/perun/issues/233 myself. the issue is that the images-resize
task ignores the source location of image files, and sticks them all under public/
. so you get if you have resources/public/1.png
and resources/public/images/1.png
, you will end up with just target/public/1_{resolutions}.png
. and who knows which image that will actually be.
the problem seems to have been introduced in https://github.com/hashobject/perun/pull/205
and i think it comes down to these lines of code: https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L319-L321
it seems like the default behavior, if out-dir
is not specified, should be to keep the resized images with the original image. if out-dir
is specified, then put the resized images there. (`out-dir` doesn’t seem like a very useful option for this task then)