Search the Community
Showing results for tags 'detect file signatures'.
-
Here's another Python3 script whatFileType.py which can be helpful in situations, where some files don't have file extensions, or where you maybe can't trust a files initial shown file extension (...like an binary image file download without extension etc.). So this little whatFileType.py Python 3 script does basically here what the Unix file cmd, or some services like what file is do, it tells you what sort of file it is. BTW this script can also tell if some binary file is an Affinity file. The actual supported and recognized file signatures are: BMP, JPG, GIF, PNG, TIFF, PSD, PDF, WEBP, AFFINITY, EPS, RTF, HDR, EXR ... which are mostly those file formats Affinity apps export or save to. The whatFileType.py script can be called either by passing over some file as an argument directly ... ... or in an interacting mode just like this ... In cases where some file type is unrecognized (thus not supported yet) the script tells you ... Here's the whatFileType.py Python3 script for download: whatFileType.py Have fun!
- 9 replies
-
- affinity file check
- what file type is it
- (and 3 more)