kazu-yamamoto/Mew — pull request #50 by trueroad (2013-11-06 14:06:27+00:00)
Title: Add internet media types of netpbm formats

* Internet Media Type

image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-portable-anymap pnm
image/x-portable-arbitrarymap pam

All IANA unregistered but netpbm format specifications specified them.

http://netpbm.sourceforge.net/doc/pbm.html
http://netpbm.sourceforge.net/doc/pgm.html
http://netpbm.sourceforge.net/doc/ppm.html
http://netpbm.sourceforge.net/doc/pnm.html
http://netpbm.sourceforge.net/doc/pam.html

* PAM format

Most emacsen support PBM format as image format type symbol "pbm".
It includes PGM and PPM format support, also include PNM formats support.
Therefore, emacsen can show only by internet media type addition.

But most emacsen don't support PAM format.
Then, I added the converter "pamtopnm", in the case of PAM format.
It converts PAM format to PNM formats.

On the other hand, it is not this commit,
pamscale 841bca7a7df9e236bf86a3a8a81f33035750c188 and pngtopam f5c8e3c9fc5b792f9f0ee5d4e0e020ea4bd2ad3a which may output pam format are used.
However, when input is PNM formats, pamscale outputs PNM formats and doesn't outputs PAM format.
Also, when without a command line option, pngtopam outputs PNM formats and doesn't output PAM format.
Therefore, PAM format is not passed to emacsen as it is.