{"success":true,"data":{"ext":"psd","name":"Photoshop image file","description":"Photoshop Document (PSD) is Adobe’s native raster image format, developed and maintained by Adobe Systems for Adobe Photoshop. It is used for layered image editing, compositing, and exchange of graphics assets in design and photography workflows. PSD files can preserve layers, masks, and metadata, and older versions are supported by many editors, though untrusted files should still be opened with standard caution due to embedded content.","mime":["image/vnd.adobe.photoshop"],"risk_level":"Safe","signatures":[{"hex":"38 42 50 53","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Photoshop.cs"}]},{"hex":"38 42 50 53 00 01","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"38 42 50 53 00 02","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["avif","bmp","cr2","cr3","dib","exr"],"usage":{"python":"def is_psd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PSD by magic bytes.\"\"\"\n    signature = bytes([0x38, 0x42, 0x50, 0x53])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isPSD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x38, 0x42, 0x50, 0x53]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsPSD(data []byte) bool {\n    signature := []byte{0x38, 0x42, 0x50, 0x53}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}