annotate lisp/w3/images.el @ 36:c53a95d3c46d r19-15b101

Import from CVS: tag r19-15b101
author cvs
date Mon, 13 Aug 2007 08:53:38 +0200
parents e04119814345
children 131b0175ea99
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
1 ;;; images.el --- Automatic image converters
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;; Author: wmperry
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
3 ;; Created: 1997/03/11 19:28:30
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
4 ;; Version: 1.10
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Keywords: images
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
8 ;;; Copyright (c) 1995 - 1996 by William M. Perry (wmperry@cs.indiana.edu)
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
9 ;;; Copyright (c) 1996, 1997 Free Software Foundation Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;;
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 2
diff changeset
11 ;;; This file is part of GNU Emacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; You should have received a copy of the GNU General Public License
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 2
diff changeset
24 ;;; along with GNU Emacs; see the file COPYING. If not, write to the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 2
diff changeset
25 ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 2
diff changeset
26 ;;; Boston, MA 02111-1307, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; The emacsen compatibility package - load it up before anything else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
32 (require 'mule-sysdp)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
33
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (eval-and-compile
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
35 (if (not (and (string-match "XEmacs" emacs-version)
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
36 (or (> emacs-major-version 19)
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
37 (>= emacs-minor-version 14))))
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
38 (require 'w3-sysdp)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (defvar image-temp-stack nil "Do no touch - internal storage.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (defvar image-converters nil "Storage for the image converters.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (defvar image-native-formats
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (delq nil (cons (if (featurep 'x) 'xbm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (mapcar (function (lambda (x) (if (featurep x) x)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 '(xpm gif jpeg tiff png))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 "A list of image formats that this version of emacs supports natively.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (defun image-register-converter (from to converter)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 "Register the image converter for FROM to TO. CONVERTER is the actual
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 command used to convert the image. If this is a string, it will be executed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 in a subprocess. If a symbol, it is assumed to be a function. It will be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 called with two arguments, the start and end of the data to be converted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 The function should replace that data with the new image data. The return
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 value is not significant."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (let* ((node (assq from image-converters))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (replace (assq to (cdr-safe node))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (replace ; Replace existing converter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 (setcdr replace converter)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (display-warning 'image (format "Replacing image converter %s->%s"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 from to)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (node ; Add to existing node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (setcdr node (cons (cons to converter) (cdr node))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (t ; New toplevel converter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (setq image-converters (cons (cons from (list (cons to converter)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 image-converters))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (defun image-unregister-converter (from to)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 "Unregister the image converter for FROM to TO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (let* ((node (assq from image-converters))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (tos (cdr-safe node))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (new nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (while tos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (if (eq to (car (car tos)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (setq new (cons (car tos) new)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (setq tos (cdr tos)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (setcdr node new)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (defun image-converter-registered-p (from to)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (cdr-safe (assq to (cdr-safe (assq from image-converters)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 (defun image-converter-chain (from to)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 "Return the shortest converter chain for image format FROM to TO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 (setq image-temp-stack (cons from image-temp-stack))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (let ((converters (cdr-safe (assq from image-converters)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 (thisone nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (possibles nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (done nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (while (and (not done) converters)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (setq thisone (car converters))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ((eq (car thisone) to)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (setq done t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ((memq (car thisone) image-temp-stack)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (setq possibles (cons (image-converter-chain (car thisone) to)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 possibles))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (setq converters (cdr converters)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (setq image-temp-stack (cdr image-temp-stack)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 possibles (sort (delq nil possibles)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (lambda (x y)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (< (length (delete 'ignore x))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (length (delete 'ignore y)))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (if (not done)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (setq done (car possibles)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 ((eq done t) (list (cdr thisone)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (done (setq done (cons (cdr thisone) done)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (t nil))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (defun image-normalize (format data)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 "Return an image specification for XEmacs 19.13 and later. FORMAT specifies
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 the image format, DATA is the image data as a string. Any conversions to get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 to a suitable internal image format will be carried out."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (setq image-temp-stack nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 (if (stringp format) (setq format (intern format)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (if (not (memq format image-native-formats))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 (let* ((winner (car-safe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (sort (mapcar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (lambda (x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (cons x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (delete 'ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (image-converter-chain format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 x)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 image-native-formats)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (lambda (x y)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ((null (cdr x)) nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 ((= (length (cdr x))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (length (cdr y)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (< (length (memq (car x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 image-native-formats))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 (length (memq (car y)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 image-native-formats))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (< (length (cdr x))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (length (cdr y))))))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (type (car-safe winner))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (chain (cdr-safe winner))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (if chain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (set-buffer (generate-new-buffer " *image-conversion*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (erase-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (insert data)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (while chain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ((stringp (car chain))
30
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 22
diff changeset
154 (let ((file-coding-system mule-no-coding-system))
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 22
diff changeset
155 (call-process-region
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 22
diff changeset
156 (point-min) (point-max)
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 22
diff changeset
157 shell-file-name t
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 22
diff changeset
158 (list (current-buffer) nil)
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 22
diff changeset
159 shell-command-switch
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 22
diff changeset
160 (car chain))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ((and (symbolp (car chain)) (fboundp (car chain)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (funcall (car chain) (point-min) (point-max))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (setq chain (cdr chain)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 (setq data (buffer-string))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (kill-buffer (current-buffer)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (setq type format))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (vector type ':data data))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 (vector format ':data data)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 (defun image-register-netpbm-utilities ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 "Register all the netpbm utility packages converters."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (interactive)
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 20
diff changeset
173 (if (image-converter-registered-p 'pgm 'pbm)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (image-register-converter 'pgm 'pbm "pgmtopbm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (image-register-converter 'ppm 'pgm "ppmtopgm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (image-register-converter 'pnm 'xpm "(ppmquant 256 | ppmtoxpm)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (image-register-converter 'ppm 'xpm "(ppmquant 256 | ppmtoxpm)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (image-register-converter 'xpm 'ppm "xpmtoppm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (image-register-converter 'gif 'ppm "giftopnm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (image-register-converter 'pnm 'gif "(ppmquant 256 | ppmtogif)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (image-register-converter 'ppm 'gif "(ppmquant 256 | ppmtogif)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (image-register-converter 'bmp 'ppm "bmptoppm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (image-register-converter 'ppm 'bmp "ppmtobmp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (image-register-converter 'ppm 'ps "pnmtops")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (image-register-converter 'pnm 'ps "pnmtops")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 (image-register-converter 'ps 'pnm "pstopnm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (image-register-converter 'g3 'pbm "g3topbm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 (image-register-converter 'macpt 'pbm "macptopbm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (image-register-converter 'pbm 'macpt "pbmtomacp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 (image-register-converter 'pcx 'ppm "pcxtoppm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 (image-register-converter 'ppm 'pcx "ppmtopcx")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 (image-register-converter 'pict 'ppm "picttoppm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 (image-register-converter 'ppm 'pict "ppmtopict")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 (image-register-converter 'pnm 'sgi "pnmtosgi")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 (image-register-converter 'tga 'ppm "tgatoppm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (image-register-converter 'ppm 'tga "ppmtotga")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 (image-register-converter 'sgi 'pnm "sgitopnm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 (image-register-converter 'tiff 'pnm "tifftopnm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (image-register-converter 'pnm 'tiff "pnmtotiff")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 (image-register-converter 'xbm 'pbm "xbmtopbm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (image-register-converter 'pbm 'xbm "pbmtoxbm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (image-register-converter 'png 'pnm "pngtopnm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (image-register-converter 'pnm 'png "pnmtopng")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 (image-register-converter 'pnm 'jbg "pbmtojbg")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 (image-register-converter 'jbg 'pnm "jbgtopbm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 (image-register-converter 'jpeg 'ppm "djpeg")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 (provide 'images)