Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Image optimization in subfolders #156

Open
rrelmy opened this issue Mar 22, 2013 · 1 comment
Open

Image optimization in subfolders #156

rrelmy opened this issue Mar 22, 2013 · 1 comment

Comments

@rrelmy
Copy link
Contributor

rrelmy commented Mar 22, 2013

If there are jpegs in sub directory of the image_dir there are errors with jpegtran.
Because the sub directory does not exists the image can't be saved:

[apply] .\jpegtran.exe: can't open .\publish\img\projekte\paf\screen.jpg for writing

Am I doing something wrong? :)
This happens on windows and unix, I didnt check with mac.

@hpehl
Copy link

hpehl commented Jul 17, 2013

I solved the nested directory problem by copying the directory structure before running the jpegtran tool:

<!-- Make sure nested directories exist -->
<copy todir="./${dir.publish}/${relative.image.dir}">
    <dirset dir="${dir.source}/${relative.image.dir}"/>
</copy>

<apply executable="${jpegtran.executable}" dest="./${dir.publish}/${relative.image.dir}" osfamily="${os.family}">
    ...
</apply>

Don't know if this can also be applied to the other image processing tools.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants