FH7
image/x-freehand
Magic Bytes
Offset: 0
41 47 44 32
The FH7 file format is a legacy vector graphics standard developed by Macromedia specifically for use with FreeHand version 7 software. It serves as a container for scalable illustrations, technical drawings, and complex page layouts utilized in professional graphic design and print publishing. Because the FreeHand product line was discontinued following Adobe's acquisition of Macromedia, this format is currently considered obsolete and typically requires conversion for access within contemporary design applications.
Validation Code
How to validate .fh7 files in Python
Python
def is_fh7(file_path: str) -> bool:
"""Check if file is a valid FH7 by magic bytes."""
signature = bytes([0x41, 0x47, 0x44, 0x32])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .fh7 files in Node.js
Node.js
function isFH7(buffer: Buffer): boolean {
const signature = Buffer.from([0x41, 0x47, 0x44, 0x32]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsFH7(data []byte) bool {
signature := []byte{0x41, 0x47, 0x44, 0x32}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/fh7
curl https://filesignature.org/api/v1/fh7