ajslater / picopt

A multi format lossless image optimizer that uses external tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't convert tiff, bmp, or pnm to png

DarwinAwardWinner opened this issue · comments

The documentation claims that various lossless formats will be converted to png, but this doesn't seem to be the case:

$ ls 0001*
0001.bmp  0001.pnm  0001.tiff

# Try picopt on each file
$ picopt 0001.tiff
0001.tiff: 0.00% (no bytes)
Evened out a total of no bytes or 0.00%
$ picopt 0001.bmp
Didn't optimize any files.
$ picopt 0001.pnm
Didn't optimize any files.

# No png file created
$ ls 0001*
0001.bmp  0001.pnm  0001.tiff

PNM images were not being detected properly. PIL calls them "PPM". Fixed in version 1.1.2.
TIFF images are detected properly, but optipng seems to barf on my test image, complaining its an invalid conversion format.