[File] Magic file snippet for Fuji Film camera raw digital image files (extension .RAF)

David Dyer-Bennet dd-b at dd-b.net
Thu Sep 9 21:57:01 UTC 2021


While Nikon and Canon raw formats are in the database, Fuji isn't, I 
noticed (when my code that looked for images in my directories didn't 
find those). (Their name really is "Fuji Film" even though film is no 
longer a terribly important part of their product line.)

This was easy enough that I'm a bit worried I'm overlooking some problem 
that prevented somebody from doing this years ago.

There's a file option to list extensions, and your guidelines say to 
provide file extensions if applicable, but magic(5) doesn't tell me how 
to do it; looking at some formats in magic, it looks like "!:ext" is how 
it's done, but that string doesn't appear in magic(5) anywhere, so it's 
a guess on my part. I've used that, I hope it's right!

File snippet attached.

-- 

David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/
Words Over Windows http://WordsOverWindows.dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/

-------------- next part --------------
# Camera raw files for Fuji Film digital cameras.
# Useful info from http://fileformats.archiveteam.org/wiki/Fujifilm_RAF.
# File extension: RAF
# Works for both the FinePix S2 Pro and the X-T3. Anybody have some more Fuji
# raw samples available?
# -- David Dyer-Bennet <dd-b at dd-b.net> 9-Sep-2021
0	string		FUJIFILMCCD-RAW		Fuji Film RAW image data
!:mime	image/x-fuji-raf
!:ext	raf
>0x10	string		x			\b, format version %4.4s
>0x1C		string		x			\b, camera %s


More information about the File mailing list