在 Linux 上,您可以使用file命令
$ file branches.gif
branches.gif: PNG image data, 1257 x 782, 8-bit/color RGBA, non-interlaced
Run Code Online (Sandbox Code Playgroud)
或称为 imagemagic 部分 identify
identify branches.gif
branches.gif PNG 1257x782 1257x782+0+0 8-bit sRGB 114KB 0.000u 0:00.000
Run Code Online (Sandbox Code Playgroud)
您需要快速检查文件的内部结构。
PNG 图像的前 8 个字节始终是
137 80 78 71 13 10 26 10
非恶意非 PNG 具有相同的 8 个字节的可能性微乎其微。
| 归档时间: |
|
| 查看次数: |
2642 次 |
| 最近记录: |