]> granicus.if.org Git - imagemagick/blob - config/magic.xml
Reject PNG file that is too small (under 60 bytes) to contain a valid image
[imagemagick] / config / magic.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE magicmap [
3 <!ELEMENT magicmap (magic)+>
4 <!ELEMENT magic (#PCDATA)>
5 <!ATTLIST magic name CDATA #REQUIRED>
6 <!ATTLIST magic offset CDATA "0">
7 <!ATTLIST magic target CDATA #REQUIRED>
8 ]>
9 <!--
10   Associate an image format with a unique identifier. 
11
12   Many image formats have identifiers that uniquely identify a particular
13   image format. For example, the GIF image format always begins with GIF8
14   as the first 4 characters of the image. ImageMagick uses this information
15   to quickly determine the type of image it is dealing with when it reads
16   an image.
17 -->
18 <magicmap>
19   <!-- <magic name="GIF" offset="0" target="GIF8"/> -->
20   <!-- <magic name="JPEG" offset="0" target="\377\330\377"/> -->
21   <!-- <magic name="PNG" offset="0" target="\211PNG\r\n\032\n"/> -->
22   <!-- <magic name="TIFF" offset="0" target="\115\115\000\052"/> -->
23 </magicmap>