Brianna Laugher wrote:
<quote> == PNG images not thumbnaling to JPG == As discussed [[Commons:File_types#Images|here]], "thumbnails are generated in the same format as the original image and are always in 24-bit color ...".
Obviously the reason this issue still exists is because some images should by all means be thumbnailed to PNG (line art, comics, maps, etc), and would suffer from JPEGification. However, as also pointed out on that page, this discourages people from uploading PNGs, which are particularly favourable for long-term archival purposes.
I have some background in digital imaging and watermarking, and could probably throw together a set of scripts and programs in a month's spare time to algorithmically analyse candidate images and determine how they should be thumbnailed. The issue of properly handling greyscale images would also be handled.
But of course, I don't want to start on this, only to find out later that it's rejected for some reason <tt>:-)</tt>.
Is this something the Wikimedia community would find useful?
</quote>
What is necessary for his work to be useful, and used, in MediaWiki?
While that might be a really nifty feature, I can't help but think that allowing users to specify the thumbnail format manually would be both easier to implement and more useful in practice.
The syntax should actually be pretty straightforward -- just add a few more magic words (we only really need "jpeg" and "png" for now) to the image tag parser -- and ImageMagick can already convert from one format to another just fine. The hardest part would be restructuring the thumbnail repository to allow thumbs in multiple formats to coexist.
Of course, that and any autodetection code could presumably work together, should we actually get around to developing both.