summaryrefslogtreecommitdiff
path: root/graphics/netpbm/patches/patch-ba
blob: 997750d9aba1d9cf4f08cc2e5e9c3b29fbbdd72b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- ./pnm/anytopnm.orig	Mon Oct  4 05:11:29 1993
+++ ./pnm/anytopnm	Sat Jul 20 22:19:05 1996
@@ -53,7 +53,7 @@
 	;;
 
 	*GIF* )
-	giftoppm "$file"
+	giftopnm "$file"
 	break
 	;;
 
@@ -82,6 +82,15 @@
 	break
 	;;
 
+        *JPEG* | *JFIF* )
+        djpeg "$file"
+        ;;
+
+        *PNG* )
+        pngtopnm "$file"
+        break
+        ;;
+
 	* )
 	# Can't figure out the file type from the magic number,
 	# try the extension.
@@ -130,7 +139,7 @@
 	    fitstopgm "$file"
 	    ;;
 	    *.gif | *.gif.* )
-	    giftoppm "$file"
+	    giftopnm "$file"
 	    ;;
 	    *.iff | *.iff.* | *.ilbm | *.ilbm.* )
 	    ilbmtoppm "$file"
@@ -168,6 +177,13 @@
 	    *.ybm | *.ybm.* | *.face | *.face.* )
 	    ybmtopbm "$file"
 	    ;;
+            *.JPEG | *.jpeg | *.jpg | *.JPG )
+            djpeg "$file"
+            ;;
+            *.png | *.PNG )
+            pngtopnm "$file"
+            break
+            ;;
 	    * )
 	    echo "$0: unknown file type" 1>&2
 	    exit 1