Determine the format of an image file?

前端 未结 2 1407
感情败类
感情败类 2021-01-04 08:38

How can I programatically determine the image format of an image file, including the specific encoding such as the TIFF group?

2条回答
  •  误落风尘
    2021-01-04 09:28

    if you don't find any ready-made library I guess you should open the file as binary and look for the header data, which means you have to know how the header looks like for every format you would like to support.

提交回复
热议问题