-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'images-resize' task moves images #233
Comments
@wiseman |
I'm using 0.4.3-SNAPSHOT. |
Thanks!
Good that you're using the latest published version.
Now, let's make sure it's not a regression...
Could you try to reproduce this with previous releases* and report your
findings fees each of them, please?
You just need to change the perun version used by boot accordingly.
*List of published versions: https://clojars.org/perun
… |
0.4.2-SNAPSHOT:
Versions older than 0.4.2-SNAPSHOT give the same behavior as 0.4.2-SNAPSHOT. |
So, if I understood correctly, the bug seems to be triggered *only* in
0.4.3-SNAPSHOT and "almost" triggered in 0.4.2-SNAPSHOT and *all* previous versions?
Or are there other versions that trigger it? Again: could you please
explicitly name which are the previous versions you have tried and the
results in each case? There are five of them:
- 0.4.3-SNAPSHOT: ?
- 0.4.2-SNAPSHOT: ?
- 0.4.1-SNAPSHOT: ?
- 0.4.0-SNAPSHOT: ?
- 0.3.0: ?
|
I have edited my previous comment. Please check it again. |
Yes. 0.4.3-SNAPSHOT has the behavior I Initially described, putting all resized images in The behavior of versions 0.4.2-SNAPSHOT, 0.4.1-SNAPSHOT, 0.4.0-SNAPSHOT, and 0.3.0 is as I described here, putting resized images in a location that mirrors the location of the original image, except with an extra, erroneous level of |
Thanks for your confirmation! I will take a look at this during the following days and let you know. |
I think this makes `images-resize`'s behavior more consistent with other tasks. Fixes hashobject#233.
The
images-resize
task puts all resized images in theout-dir
("public" by default), which was surprising to me.I use subdirectories to organize content, keeping images and pages together. E.g.
If I don't use the
images-resize
task, this generates the following structure intarget
:The images are copied to the corresponding location in
target
.If I add this task:
I end up with this structure:
It seems like
images-resize
changes the default behavior that files will be copied to a location intarget
that corresponds to their location inresources
. This feels surprising and less useful than putting the resized images in the corresponding output locations for the original images.I understand a potential workaround would be to specify
:out-dir
for the task, but I don't know how to do that without adding a separateimages-resize
task for each subdirectory, which feels somewhat onerous given the default behavior withoutimages-resize
doesn't require any per-subdirectory tasks.The text was updated successfully, but these errors were encountered: