file | size |
---|---|
img/png.png | 600*400 |
img/gif.gif | 600*400 |
img/jpeg.jpeg | 600*400 |
.--------------------------------------------------------------------------------------.
| Results of Image::Info#image_info |
+------------------------+-------------------------------------------------------------+
| key | value |
+------------------------+-------------------------------------------------------------+
| resolution | 1/1 |
| height | 400 |
| JFIF_Version | 1.01 |
| JPEG_Type | Baseline |
| ColorComponentsDecoded | ARRAY(0x7fc7a9a7bdd0) |
| Comment | CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality |
| SamplesPerPixel | 3 |
| BitsPerSample | ARRAY(0x7fc7a9827c28) |
| ColorComponents | ARRAY(0x7fc7a9a7bd10) |
| file_ext | jpg |
| color_type | YCbCr |
| file_media_type | image/jpeg |
| width | 600 |
'------------------------+-------------------------------------------------------------'
.------------------------------------.
| Results of Image::Info#image_info |
+----------------------+-------------+
| key | value |
+----------------------+-------------+
| width | 600 |
| ScreenHeight | 400 |
| file_media_type | image/gif |
| color_type | Indexed-RGB |
| file_ext | gif |
| GlobalColorTableFlag | 1 |
| ColorTableSize | 16 |
| height | 400 |
| XPosition | 0 |
| GIF_Version | 87a |
| ScreenWidth | 600 |
| YPosition | 0 |
| resolution | 1/1 |
| BackgroundColor | 0 |
| ColorResolution | 7 |
'----------------------+-------------'
.--------------------------------------------------------------------------------------.
| Results of Image::Info#image_info |
+------------------------+-------------------------------------------------------------+
| key | value |
+------------------------+-------------------------------------------------------------+
| color_type | YCbCr |
| file_ext | jpg |
| file_media_type | image/jpeg |
| width | 600 |
| BitsPerSample | ARRAY(0x7fc7a989b130) |
| SamplesPerPixel | 3 |
| ColorComponents | ARRAY(0x7fc7a989b3b8) |
| JFIF_Version | 1.01 |
| height | 400 |
| Comment | CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality |
| ColorComponentsDecoded | ARRAY(0x7fc7a989b4a8) |
| JPEG_Type | Baseline |
| resolution | 1/1 |
'------------------------+-------------------------------------------------------------'