Way better scaling of Starter thumbnails
Providing better command-line args to ImageMagick `convert` to produce nice-looking thumbnail PNGs of Starter images. (N.B. - I'm using "ImageMagick" Version: 8:6.9.7.4+dfsg-16ubuntu6.7)
This commit is contained in:
parent
2117db234e
commit
73dc07b608
2 changed files with 8 additions and 3 deletions
6
Makefile
6
Makefile
|
|
@ -694,16 +694,18 @@ STARTER_BACK_NAME=$(or $(wildcard $(subst starters/.thumbs,starters,$(@:-t.png=-
|
||||||
$(wildcard $(subst starters/.thumbs,starters,$(@:-t.png=-back.png))),\
|
$(wildcard $(subst starters/.thumbs,starters,$(@:-t.png=-back.png))),\
|
||||||
$(wildcard $(subst starters/.thumbs,starters,$(@:-t.png=-back.jpeg))))
|
$(wildcard $(subst starters/.thumbs,starters,$(@:-t.png=-back.jpeg))))
|
||||||
|
|
||||||
|
CONVERT_OPTS:=-alpha Background -alpha Off -gamma 0.454545 +depth -resize !132x80 -background white -interlace none
|
||||||
|
|
||||||
$(THUMB_STARTERS):
|
$(THUMB_STARTERS):
|
||||||
@echo -n "."
|
@echo -n "."
|
||||||
@mkdir -p starters/.thumbs
|
@mkdir -p starters/.thumbs
|
||||||
@if [ "x" != "x"$(STARTER_BACK_NAME) ] ; \
|
@if [ "x" != "x"$(STARTER_BACK_NAME) ] ; \
|
||||||
then \
|
then \
|
||||||
composite $(STARTER_NAME) $(STARTER_BACK_NAME) obj/tmp.png ; \
|
composite $(STARTER_NAME) $(STARTER_BACK_NAME) obj/tmp.png ; \
|
||||||
convert -scale !132x80 -background white -alpha Background -alpha Off obj/tmp.png $@ ; \
|
convert $(CONVERT_OPTS) obj/tmp.png $@ ; \
|
||||||
rm obj/tmp.png ; \
|
rm obj/tmp.png ; \
|
||||||
else \
|
else \
|
||||||
convert -scale !132x80 -background white -alpha Background -alpha Off $(STARTER_NAME) $@ ; \
|
convert $(CONVERT_OPTS) $(STARTER_NAME) $@ ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(INSTALLED_THUMB_STARTERS): $(DATA_PREFIX)/%: %
|
$(INSTALLED_THUMB_STARTERS): $(DATA_PREFIX)/%: %
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ http://www.tuxpaint.org/
|
||||||
|
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
2019.Sep.12 (0.9.24)
|
2019.Sep.14 (0.9.24)
|
||||||
* New tools
|
* New tools
|
||||||
---------
|
---------
|
||||||
* Fill
|
* Fill
|
||||||
|
|
@ -55,6 +55,9 @@ $Id$
|
||||||
|
|
||||||
* Updated most parts of the code that were throwing warnings in GCC.
|
* Updated most parts of the code that were throwing warnings in GCC.
|
||||||
|
|
||||||
|
* Build process generates thumbnails of included Starter images.
|
||||||
|
When installed, this greatly increases the speed of the "New" dialog.
|
||||||
|
|
||||||
* Documentation updates
|
* Documentation updates
|
||||||
---------------------
|
---------------------
|
||||||
* Mended link to MinGW/MSYS instructions at John Popplewell's website.
|
* Mended link to MinGW/MSYS instructions at John Popplewell's website.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue