作者remember11 (Mr.Darcy)
看板Linux
標題[問題] 如何識別圖片檔的真實副檔名(格式)
時間Sun Dec 1 17:14:28 2013
如果輸入某張圖片
比如是 .gif or .tif
可是卻無法開啟
我想知道圖片的格式是否真的如它副檔名所顯示
或是被改過手腳
如 .jpg 改成 .gif 之類的
想請問有沒有 open source 可以判斷某張圖片檔的真實副檔名或格式?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.251.192.93
※ remember11:轉錄至看板 LinuxDev 12/01 17:15
......原來關鍵字這麼簡單 XD
我一直下
how to identify image real Filename Extension on linux
啥都沒找到
謝謝大大分享
※ 編輯: remember11 來自: 60.251.192.93 (12/01 17:25)
→ lantw44:用 file 指令也很方便 12/01 17:46
剛剛才發現 XD
現在在找file command的source code
謝謝
※ 編輯: remember11 來自: 59.120.184.171 (12/01 17:52)
推 iwhiori:推薦書binary hack,裡面有寫file指令的原理 12/05 19:18