Skip to content

File Inspection

goodbug edited this page Apr 13, 2026 · 1 revision

File Inspection

Unifyl provides powerful file inspection tools for examining file structure, verifying integrity, and viewing detailed metadata. These tools go beyond what Finder's "Get Info" offers, giving you deep visibility into file internals.


Table of Contents

  1. File X-Ray
  2. Checksum Verification
  3. File Info (Get Info)
  4. Feature Tier
  5. Screenshots
  6. Troubleshooting

File X-Ray

File X-Ray is Unifyl's deep file inspection tool. It analyzes a file's internal structure and presents it as a navigable metadata tree, revealing details that are normally hidden -- EXIF data in images, codec information in media files, TIFF tags, color profiles, and more.

Opening File X-Ray

  1. Menu: Tools > File X-Ray
  2. Command Palette: Cmd+Shift+P, type "File X-Ray"
  3. Context menu: Right-click a file > "File X-Ray"

The X-Ray view opens as an independent floating panel with the filename in the header: "File X-Ray: example.jpg"

Structure Tab

The default tab shows a hierarchical tree of metadata extracted from the file. Each node in the tree displays:

Element Description
Icon A system symbol icon representing the node type, with a category-specific color
Label The metadata key name in monospaced font (e.g., "PixelWidth", "ColorModel")
Value The metadata value in monospaced caption font, right-aligned and in secondary color

The tree supports expand/collapse for nested metadata groups. Common top-level groups include:

Image Files

  • Image Info: Pixel dimensions, DPI, color space, bit depth, alpha channel
  • EXIF: Camera model, exposure time, aperture, ISO, focal length, date taken, GPS
  • TIFF: Orientation, compression, software, make/model
  • JFIF: Version, density units, thumbnail dimensions
  • ICC Profile: Color profile name, color space, rendering intent

Media Files

  • Video Track: Codec, frame rate, resolution, bit rate, duration
  • Audio Track: Codec, sample rate, channels, bit depth, bit rate
  • Container: Format name, duration, creation date

PDF Files

  • Document Info: Title, author, creator, producer, creation/modification dates
  • Page Info: Page count, page dimensions, media box

Archive Files

  • Archive: Entry count, compression method, total uncompressed size

Hex Dump Tab

Switch to the "Hex Dump" tab to see a raw hex dump of the file's first bytes. This provides a quick look at the file header without opening the full Hex Editor. The hex dump uses the same three-column format (offset, hex bytes, ASCII) as the Hex Editor.

Magic Description

At the top-right of the X-Ray header, a capsule badge displays the file's magic description -- a human-readable identification of the file type based on its content (not just its extension). For example:

  • "JPEG image data, JFIF standard"
  • "PDF document, version 1.7"
  • "Mach-O 64-bit executable arm64"
  • "Zip archive data"

Metadata Tree

The metadata tree is populated by analyzing the file using Apple's framework APIs:

  • Images: CGImageSource with CGImageSourceCopyPropertiesAtIndex extracts all EXIF, TIFF, IPTC, GPS, and ICC profile data
  • PDFs: PDFDocument API extracts document attributes and page information
  • Media files: AVAsset provides track information, codec details, and container metadata
  • Archives: Unifyl's ArchiveEngine reads archive headers for entry counts and compression info
  • All files: Basic URLResourceValues provides file system metadata (size, dates, permissions, type identifier)

Each metadata dictionary is recursively converted into XRayNode objects, which form the tree structure. Nodes have:

  • A label (the key name)
  • An optional value (the formatted metadata value)
  • Optional children (for nested dictionaries)
  • An icon and icon color based on the metadata category

Checksum Verification

The Checksum Verification tool computes cryptographic hash values for one or more files and optionally verifies them against a known hash.

Opening Checksum View

  1. Select one or more files in the file list
  2. Menu: Tools > Checksum
  3. Context menu: Right-click selected files > "Checksum"
  4. Command Palette: Cmd+Shift+P, type "Checksum"

The checksum view opens as a floating panel (minimum 600x360 pixels).

Supported Algorithms

Unifyl supports 7 checksum algorithms via the ChecksumEngine (in the UnifylCore package):

Algorithm Output Length Speed Use Case
CRC32 8 hex chars Fastest Quick error detection, not cryptographic
MD5 32 hex chars Fast Legacy compatibility (not recommended for security)
SHA-1 40 hex chars Fast Legacy compatibility (deprecated for security)
SHA-256 64 hex chars Medium General-purpose integrity verification (default)
SHA-512 128 hex chars Medium Higher security margin
SHA3-256 64 hex chars Medium Modern standard, quantum-resistant design
Blake3 64 hex chars Fastest Modern, parallelizable, excellent performance

The algorithm is selected using a segmented picker. SHA-256 is the default.

Computing Checksums

  1. Select your desired algorithm from the segmented picker
  2. Click the Compute button (prominent bordered style)
  3. A progress bar appears during computation, showing the percentage
  4. Results appear below, one per file:
    • Filename in medium-weight subheadline font
    • Hash value in monospaced font
    • A Copy button to copy the hash to the clipboard

The computation runs asynchronously and does not block the UI. The "Computing..." text and progress indicator appear in the toolbar during the operation.

Verifying Against a Known Hash

When only a single file is selected, an additional "Verify" section appears below the results:

  1. Paste or type the expected hash value into the verification text field
  2. The tool compares the computed hash with the provided value (case-insensitive)
  3. Results:
    • Match: Green checkmark indicator
    • Mismatch: Red X indicator

This is useful for verifying downloaded files against published checksums from software distributors.

Multiple Files

When multiple files are selected:

  • Each file's hash is computed and displayed separately
  • The files are listed by filename with their individual hash values
  • The verification section is hidden (it only works with single files)
  • Progress reflects overall completion across all files

File Info (Get Info)

Unifyl provides access to macOS's native Get Info panel:

  • Keyboard shortcut: Cmd+I
  • Menu: File > Get Info

This opens the standard Finder "Get Info" window for the selected file, showing:

  • General information (kind, size, location, creation/modification dates)
  • More Info (for media files: dimensions, codec, etc.)
  • Name & Extension
  • Comments
  • Open With (default application)
  • Preview
  • Sharing & Permissions

This is equivalent to right-clicking a file in Finder and selecting "Get Info." Unifyl delegates to the system for this functionality to maintain consistency with macOS behavior.


Feature Tier

Tool Tier
File X-Ray Pro
Checksum Verification Free
File Info (Cmd+I) Free

Screenshots

File X-Ray

File X-Ray

The File X-Ray view showing a hierarchical metadata tree for a JPEG image. The tree is expanded to show Image Info (PixelWidth: 4032, PixelHeight: 3024), EXIF data (ExposureTime: 1/120, FNumber: 1.8, ISOSpeedRatings: 50), and TIFF metadata. The magic description "JPEG image data" appears in a capsule badge in the header. The segmented control at top switches between Structure and Hex Dump tabs.

Checksum Verification

Checksum

The Checksum Verification view with the algorithm segmented picker set to SHA-256, showing the computed hash for a selected file in monospaced font. Below the result, the verification section shows a text field with a pasted hash and a green checkmark indicating a match.


Troubleshooting

File X-Ray shows "No structure data available"

  • The file type may not be supported for structured analysis
  • Try the Hex Dump tab to at least see the raw bytes
  • Ensure the file is readable (check permissions)

Checksum computation is slow

  • Large files take longer to hash. Blake3 is the fastest algorithm; try switching to it for large files
  • The computation runs off the main thread, so the UI remains responsive
  • SSD vs HDD: disk I/O speed is the primary bottleneck for large files

Verification shows mismatch but the file is correct

  • Ensure you selected the same algorithm that was used to generate the reference hash
  • Check for trailing whitespace in the pasted hash value
  • Some publishers use uppercase hashes; Unifyl compares case-insensitively, but double-check the hash length matches the algorithm

File X-Ray magic description is missing

  • The magic description requires the file to have recognizable header bytes
  • Empty files or files with unrecognized headers will show no description
  • Renamed files (e.g., a JPEG renamed to .txt) will still be correctly identified by their header bytes

๐Ÿ‡ฌ๐Ÿ‡ง English ยท ๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด (Korean)


๐Ÿ‡ฌ๐Ÿ‡ง Getting Started

Core Features

Cloud / Remote

AI

Tools

Customization

Other


๐Ÿ‡ฐ๐Ÿ‡ท ์‹œ์ž‘ํ•˜๊ธฐ

ํ•ต์‹ฌ ๊ธฐ๋Šฅ

ํด๋ผ์šฐ๋“œ / ์›๊ฒฉ

AI

๋„๊ตฌ

์ปค์Šคํ„ฐ๋งˆ์ด์ฆˆ

๊ธฐํƒ€

Clone this wiki locally