You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
pngcrush uses a temp file (I believe pngout.png) when running. When "Export All Assets" is used, multiple NSTask's are created, all of which use pngcrush. One pngcrush can write to the temp file and then another pngcrush reads from it.
Steps to reproduce:
Remove advpng and optipng from compress-full-png.sh. This ensures that pngcrush will always override the file rather than bailing.
Export All Assets
The following document:
Produces these results:
The text was updated successfully, but these errors were encountered:
Note: this won't show up usually since advpng or optipng will probably produce a smaller file than pngcrush would produce. The failure case occurs when pngcrush produces the smaller file.
Added "-ow" (overwrite) option. The input file is overwritten and the
output file is just used temporarily and removed after it is copied
over the input file.. If you do not specify an output file, "pngout.png"
is used as the temporary file. Caution: the temporary file must be on
the same filesystem as the input file. Contributed by a group of students
of the University of Paris who were taking the "Understanding of Programs"
course and wished to gain familiarity with an open-source program.
It looks like the fix is adding a tempfile name after the input file name:
"$basedir"/pngcrush -ow -reduce -blacken -bail -rem alla -new "$1" "$1".tmp
pngcrush
uses a temp file (I believepngout.png
) when running. When "Export All Assets" is used, multiple NSTask's are created, all of which usepngcrush
. Onepngcrush
can write to the temp file and then anotherpngcrush
reads from it.Steps to reproduce:
advpng
andoptipng
fromcompress-full-png.sh
. This ensures thatpngcrush
will always override the file rather than bailing.Export All Assets
The following document:
Produces these results:
The text was updated successfully, but these errors were encountered: