Module: Cul::Image::Magic
- Defined in:
- lib/cul_image_props/image/magic.rb
Constant Summary collapse
- BMP =
“x42x4D”
[0x42, 0x4d]
- GIF =
“x47x49x46x38”
[0x47,0x49,0x46,0x38]
- JPEG =
“xFFxD8”
[0xff,0xd8]
- JFM_BYTES =
[[0xff,0xc0],[0xff,0xc1],[0xff,0xc2],[0xff,0xc5],[0xff,0xc6],[0xff,0xc9],[0xff,0xca],[0xff,0xcd],[0xff,0xce]]
- JPEG_FRAME_MARKERS =
JFM_BYTES.collect {|bytes| bytes.pack('C*')}
- JPEG_SEGMENTS =
{ [0xFF,0xE0]=>"APP0", [0xFF,0xE1]=>"APP1", [0xFF,0xC1]=>"SOF1", # image data: extended sequential dct [0xFF,0xC2]=>"SOF2", # image data: progressive dct [0xFF,0xC4]=>"DHT", # image data: huffman table(s) [0xFF,0xDA]=>"SOS", # image data: start of scan [0xFF,0xDB]=>"DQT" # quantization tables }
- PNG =
“x89x50x4ex47x0dx0ax1ax0a”
[0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a]
- TIFF_MOTOROLA_BE =
“x4dx4dx00x2a”
[0x4d,0x4d,0x00,0x2a]
- TIFF_INTEL_LE =
“x49x49x2ax00”
[0x49,0x49,0x2a,0x00]