]> granicus.if.org Git - file/commitdiff
fix jpeg recognition.
authorChristos Zoulas <christos@zoulas.com>
Fri, 1 Dec 2000 21:19:01 +0000 (21:19 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 1 Dec 2000 21:19:01 +0000 (21:19 +0000)
magic/Magdir/images
magic/Magdir/jpeg

index b5b4e0c328777a8f4daf736fdb73f21d4945f999..3d8fc9828bdff516a464cb97644b1e2a139e48d7 100644 (file)
 # Conflicts with other entries [BABYL]
 #0     string          BA              PC bitmap array data
 
-# JPEG images
-# SunOS 5.5.1 had
-#
-#      0       string          \377\330\377\340        JPEG file
-#      0       string          \377\330\377\356        JPG file
-#
-# both of which turn into "JPEG image data" here.
-#
-0      beshort         0xffd8          JPEG image data
->6     string          JFIF            \b, JFIF standard
-# HSI is Handmade Software's proprietary JPEG encoding scheme
-0      string          hsi1            JPEG image data, HSI proprietary
-
 # XPM icons (Greg Roelofs, newt@uchicago.edu)
 # note possible collision with C/REXX entry in c-lang; currently commented out
 0      string          /*\ XPM\ */     X pixmap image text
index 089405a68872b36227e22e3f5210c2e30d772ef2..e8540f8718c7caeda11b439ff0ed40411248f3d9 100644 (file)
@@ -10,7 +10,6 @@
 #
 0      beshort         0xffd8          JPEG image data
 >6     string          JFIF            \b, JFIF standard
-
 # The following added by Erik Rossen <rossen@freesurf.ch> 1999-09-06
 # in a vain attempt to add image size reporting for JFIF.  Note that these
 # tests are not fool-proof since some perfectly valid JPEGs are currently
@@ -22,8 +21,8 @@
 >13    byte            0               \b, aspect ratio
 >13    byte            1               \b, resolution (DPI)
 >13    byte            2               \b, resolution (DPCM)
->14    beshort         x               \b X%d:
->16    beshort         x               \bY%d
+>14    beshort         x               \b, %d x
+>16    beshort         x               \b %d
 #>4    beshort         x               \b, segment length %d
 # Next, show thumbnail info, if it exists:
 >18    byte            !0              \b, thumbnail %dx