How the PSD Viewer Works
AnyTool PSD Viewer opens an professional photo editors .psd or large-document .psb file entirely in the browser using the ag-psd library, which is bundled into the app and served from the same origin — never from a CDN — so the tool works offline and uploads nothing. When you choose a file it is read to an ArrayBuffer and validated against the PSD magic bytes (8BPS), then ag-psd decodes the saved composite image directly into an HTMLCanvasElement and rebuilds the document’s group and layer hierarchy, giving each raster layer its own canvas. The engine maps that into a structured model: document info (dimensions, colour mode, bit depth, channels, alpha), the composite canvas for the main preview, and a recursive layer tree carrying each node’s name, visibility, opacity, blend mode and pixel bounds. Smart-object linked binaries are skipped to keep memory low.
- Parsed with the ag-psd library, fully in the browser — no CDN, no server
- Composite decoded straight into an HTMLCanvasElement (ag-psd auto-uses canvas)
- Magic-byte (8BPS) guard rejects non-PSD files with a friendly error
- Recursive layer tree with name, visibility, opacity, blend mode, bounds
- Colour-mode and blend-mode enums mapped to human-readable labels
