Fork me on GitHub
#perun
<
2019-05-22
>
wiseman23:05:18

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.

wiseman23:05:02

the problem seems to have been introduced in https://github.com/hashobject/perun/pull/205

wiseman23:05:19

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)