https://bugzilla.wikimedia.org/show_bug.cgi?id=36932
Web browser: ---
Bug #: 36932
Summary: Pass -type Palette to ImageMagick 'convert', since the
thumbnails are 8-bit anyway (makes PNG thumbnails much
smaller)
Product: MediaWiki
Version: 1.19
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: File management
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
ImageMagick 'convert' has problems when scaling PNG images: the resulting
thumbnails can be really big.
[edward@localhost build]$ identify before.png after.png
before.png PNG 800x533 800x533+0+0 8-bit PseudoClass 256c 312KB 0.000u 0:00.010
after.png[1] PNG 400x267 400x267+0+0 8-bit DirectClass 302KB 0.000u 0:00.000
But since MediaWiki uses 8-bit thumbnails only, we have a perfect opportunity
to make a workaround on MediaWiki side: we can force PseudoClass (i.e. paletted
image with 256 colors).
When converting, pass "-type Palette" as an argument.
[edward@localhost build]$ identify after2.png
after2 PNG 400x267 400x267+0+0 8-bit PseudoClass 256c 87.4KB 0.000u 0:00.000
As you can see, this thumbnail is 4 times smaller.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l