change imagemagick convert commands as recommended by the imagemagick guys...

...(cf http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=10619 )
This commit is contained in:
Nils Kneuper 2008-02-13 22:27:47 +00:00
parent ffc7b4a7b4
commit 2bcb81b165

View file

@ -106,14 +106,9 @@ if TINYGUI
esac ; \
file=`basename "$$p"`; \
file "$$d$$p" | egrep "(RGBA|alpha)" >/dev/null 2>&1 && {\
convert -separate -channel A -filter point -size $$dstsize -resize $$dstsize "$$d$$p" "tmp_A_$$file"; \
convert -separate -channel R -size $$dstsize -resize $$dstsize "$$d$$p" "tmp_R_$$file"; \
convert -separate -channel G -size $$dstsize -resize $$dstsize "$$d$$p" "tmp_G_$$file"; \
convert -separate -channel B -size $$dstsize -resize $$dstsize "$$d$$p" "tmp_B_$$file"; \
convert -channel RGBA -combine "tmp_R_$$file" "tmp_G_$$file" "tmp_B_$$file" "tmp_A_$$file" "$(DESTDIR)$(pkgdatadir)/$$f"; \
rm "tmp_R_$$file" "tmp_G_$$file" "tmp_B_$$file" "tmp_A_$$file"; \
convert "$$d$$p" -filter point -resize $$dstsize "$(DESTDIR)$(pkgdatadir)/$$f";\
} || { \
convert -size $$dstsize -resize $$dstsize "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
convert "$$d$$p" -resize $$dstsize "$(DESTDIR)$(pkgdatadir)/$$f"; \
} \
done
endif