# Files and formats Split from [features.md](features.md): files and multiple documents, the formats Patchy reads and writes, camera raw and HDR photos, PDF documents, and what layered files from other editors keep. ## Files, photographs, and multiple documents - Multiple document interface: tabs that can float in their own windows, Tile and Cascade, a Window menu of open documents, and layers that drag or duplicate between documents. Hovering a tab shows the document's full path, and the Properties panel's File line shows the active one's, so two files with one name tell apart. Opening a file that is already open switches to its tab; Revert (F12, or the tab's right-click menu) reloads it. Rename File... on that menu (desktop) renames the document's file on disk while it stays open, keeping its file type and never replacing another file. Open a folder of images as tabs (or drop it on the window); export every open document as a numbered image set to a folder. Quitting, Close All or Close Others with several unsaved documents offers No to All, which closes the rest without saving and without asking again - New Document templates in seven groups (screens, phones and tablets, social, web and ads, print paper, photo prints, icons and game art) showing paper sizes in mm or inches, a search across groups, a document name, color mode and bit depth (8 by default), an optional empty layer above the Background, and saved presets - The Home Screen (shown when no document is open) shows the menus and itself only: the tool palette, options bar, panels and status bar come back when a document opens, and Tab moves between its controls. It has New..., Clipboard and Open... buttons (beside the title, or under it in a narrow window) and the recent files, shown as a grid of thumbnails with a name filter. Every kind of file Patchy opens has a thumbnail, including PDF (its first page), GIMP, Krita, OpenRaster, camera raw and SVG files. The List and Grid buttons beside the filter switch to a list of names and folders and back; Patchy remembers the choice. Clipboard opens the copied image as a new document, like File > Open from Clipboard, and is grayed out while the clipboard holds no image - Copy and Cut keep overlapping selected pixels in layer order. Pasting or dragging whole layers between documents keeps linked Smart Objects attached to their source files - Import multiple files as layers, preserving a layered file's contents in a group, through File > Import, a drop on the Layers panel, or pasted files. Paste a path copied as text to open it (Paste in Place: as a layer) - A file dropped on a document's canvas asks whether to open it in a new tab or embed it in that document as a Smart Object (several files in one drop are one question and one undo step); "Don't ask again" or Preferences > Application "Files dropped on a canvas" makes either answer the rule, and drops on the document tabs always open tabs - Scan a Book to PDF scans a bound book a spread per key press, finds each page, and writes a PDF whose pages all share one size, covers included (scanned with the book open, or one cover at a time for a book too large to lie open on the glass); it drives Windows scanners directly (its scanner list follows a scanner being switched on or off, and the scanner's own Scan button can start each scan when its driver reports the button to Windows), keeps the book in a project folder it offers to continue next time, lets any earlier page or the cover be adjusted or rescanned from its thumbnail, cuts each page at the divider you can drag, with a binding margin that keeps the dark strip by the binding off the pages and an option to reuse one scan's outline and divider for the following scans instead of detecting each one, can scan some pages in color or at another resolution, and exports in color, grayscale or black and white, with any page given its own output and the page order set by drag and drop. Tick "Make the PDF searchable" and the text on every page is recognized at export (with the Windows recognizer or the downloadable PP-OCR engine) and written invisibly over the page, so the book can be searched and its text copied in any PDF reader - Scan and Divide Photos splits prints into images with editable crop regions, straightening and perspective correction. Divide an existing scan or photo too; scanner acquisition and the scanner-to-printer Photocopy command run on every desktop build - Automatic document recovery saves copies of modified documents at a set interval and reopens them after a crash. It tracks new edits after Undo or a mid-script save and keeps authored layer visibility during animation playback. - Export for Web: JPEG, JPEG XL, WebP, AVIF, PNG/APNG, GIF, live sizes, 4-up view, presets; File > Export > Layers as Animated GIF, WebP and PNG open it with the animation set up - Copy CSS (Layer > Export, and the layer menu's Export): the selected layers on the clipboard as CSS classes with position, size and stacking order (z-index), opacity, blend mode, a shape's fill, border and corner radius, a text layer's font properties, and drop shadows - Opens untagged 32-bit grayscale Photoshop files with their linear shadow and HDR highlight values. - Reads and writes PSD/PSB, [PDF](#pdf-documents), PNG, JPEG (12-bit files open at 16 bits), TIFF (also float, 9 to 15 and 32-bit integer, Zstandard-compressed and planar files with extra channels, which open as alpha channels; multi-page files open their pages as layers, as separate documents, or the first page only; "Don't ask again" or Preferences saves the choice), WebP, BMP, TGA, GIF, PCX, Amiga IFF/LBM, Windows icons and cursors (ICO/CUR), OpenRaster (.ora), Aseprite files, JPEG XL (.jxl, 16/32-bit stills and animation), JPEG 2000 (.jp2), OpenEXR (.exr), Radiance HDR (.hdr/.rgbe), AVIF (desktop), JPEG XR (.jxr, Windows), Proton SDK textures (.rttex), DDS textures (.dds: reads BC1 to BC7, cubemaps, arrays and mipmaps; writes uncompressed, DXT1, DXT5, BC4, BC5 or BC7, mipmaps optional), and SVG (opens as editable shapes, exports vectors) - In Save As and the export dialogs, picking another file type changes the extension in the name (Test.png becomes Test.jpg), and the picked type is what gets saved even when the typed name ends in another type's extension - Missing Linked Files lists unavailable PSD timeline audio alongside missing linked Smart Objects. The audio entry shows the file and its stored location. - Import notes (what a file could not keep) flash yellow in the status bar or in a popup with "Don't show this again" - Save asks for a new destination after importing a multi-page TIFF, an Aseprite animation, or a sprite whose tilemaps were converted to pixels or skipped. A vector mask on a single pixel layer gets the same flat-save protection as a raster mask. Windows cursor files keep the click point authored for each size, and icon exports with additional artwork include the visible layers. - Imports Affinity, Paint.NET, Krita and GIMP (.xcf) documents, and reads and writes OpenRaster, layered TIFF, and Aseprite documents. See [layered format interchange](#layered-format-interchange) for what stays editable and what each format cannot preserve - Opens camera raw files (CR2/CR3/NEF/ARW/RAF/DNG and more) with 16-bit development processing, a Natural rendering profile, ISO-based noise reduction, and per-photo settings saved beside the original. The result is 8-bit. HEIC/HEIF photos open through platform codecs, with supported high-bit-depth and HDR input depending on the decoder - The Develop Raw dialog shows a live RGB and luminance histogram of the preview: pointing at it names the tone setting that part adjusts (Shadows, Exposure, Highlights) and dragging there changes it. Shift-click a slider or its label for an automatic value and Alt-click to reset it. The preview zooms from a zoom menu, 100% and Fit buttons, and an optional Scrubby Zoom drag - Filter > Camera Raw Filter (Shift+Ctrl+A) brings the Develop Raw white balance, exposure, tone and color controls to any RGB pixel layer at 8, 16 or 32 bits, with the same histogram, slider clicks and zoomable preview. Temperature and tint are relative to the layer's colors, an Auto button neutralizes the average color, and an active selection limits the change. Applies as one undo step; scripts call `layer.applyCameraRawFilter` - Opens floating-point JPEG XR HDR screenshots as 32-bit linear documents on Windows, keeping highlight values. With deep editing disabled they tone map to 8-bit; JPEG XR saves are always 8-bit. OpenEXR and Radiance HDR also open as 32-bit documents and export flattened HDR images; see [HDR format support](hdr-formats.md) ## PDF documents - The PDF viewer can recognize the text on scanned pages on request (Recognize Text... in its sidebar, in the Find bar when a PDF has no searchable text, or on a page's menu), with the Windows recognizer or the downloadable PP-OCR engine; Find and text selection then work on those pages. Nothing is saved to the PDF - On desktop a PDF opens in a fast PDF viewer: continuous scrolling or one page at a time with the wheel turning pages, one page, two pages, or two pages with the cover alone (for comics and books), right-to-left reading for manga, fit page, fit width or any zoom, rotation, full screen and page thumbnails; Find (Ctrl+F) searches the text of every page in the background, highlights each match, steps to the next or previous one with Enter and Shift+Enter (or F3), with Match case and Whole words, and finds phrases and hyphenated words that run across a line break; links work: a click on a link inside the PDF jumps to its page, a web or mail link opens with Ctrl+click (a plain click only shows where it goes), right-click copies a link's address, and Patchy never opens a file, script or program link; Back and Forward (Alt+Left and Alt+Right, the mouse's side buttons) return to where a jump left; a PDF's outline shows as a tree beside the page thumbnails; text is selected by dragging over it, across lines and pages (double-click for a word, triple-click for a line, Shift+click to extend), and copied with Ctrl+C or a right-click, line breaks kept; it reopens at the page last read, and files dropped on it open as they would in the main window. Edit... opens pages for editing with the import options below; Preferences can skip the viewer - Print as Book prints a PDF as a saddle-stitched (fold-and-staple) booklet, a sewn book in signatures, cut-and-stack leaves for glue or comb binding, or eight-page mini zines, with a sheet-by-sheet preview, step-by-step assembly directions (staple the flat stack, then fold it all at once), creep compensation, optional page numbers, fold and cut marks, splitting of PDFs that already hold two pages per page (such as a scanned booklet, with its cover spread), and two-sided printing done by the printer or by hand; the imposed sheets can also be saved as a PDF - Import selected PDF pages on desktop as editable text, vector shapes and images, or as flattened images at a chosen resolution (72 to 600 ppi presets or any value). The page list starts with every page selected. Pages can open as separate documents, as one document with a folder, layer or artboard per page; the dialog shows the canvas size and memory that choice needs and warns before a very large one. Choose RGB, Grayscale, CMYK Proof, or Indexed Color, 8, 16, or 32 bits per channel, a white or transparent page background, and reverse page order - Import PDF can recognize the text on scanned pages (OCR, with the Windows recognizer or the downloadable PP-OCR engine): tick "Recognize text on scanned pages" and each page without text of its own gets editable text layers, kept in a hidden group so the page looks and exports as it did, placed over the scan, or shown in place of it. Cancel keeps the pages already read - Export a single document or assemble a multi-page PDF from open documents, top-level layer groups, or artboards, with page ordering and editable or flattened output. A document with artboards saves as one PDF page per artboard, each its own size - Searchable PDFs from scans: when a document holds recognized text (Type > Recognize Text, or Import PDF's OCR option), a flattened PDF export writes that text invisibly over each page image, so PDF readers can find, select and copy it. Corrections typed into the text layers are what gets written, and an unchanged scanned page still keeps its original image data. PDF Options has a checkbox to leave the text out - Editable export preserves supported text and vectors. Effects and unsupported combinations are rasterized with notices; it does not preserve every PSD layer property. Imported PDFs save as a new copy so the original is not overwritten by a normal Save - Lossless and JPEG quality options; supported, unchanged scanned pages keep their original compressed data (no re-encoding). PDF export also works in the browser; PDF import requires the desktop app. See [PDF support and limitations](pdf.md) ## Layered format interchange These formats preserve different kinds of content. Import-only formats can be edited in Patchy, then saved as PSD or another supported format; Patchy cannot write back to their original format. | Format | Open / save | What carries over and the main limits | | --- | --- | --- | | **Affinity** (.af, .afphoto, .afdesign, .afpub) | Import only | Supported text, vector shapes, masks, groups, adjustments, effects, artboards, and placed images. Raster content imports at 8 bits; multi-page files open the first spread. [Details below](#affinity-import) | | **OpenRaster** (.ora) | Open and save | Pixel layers, groups, names, positions, visibility, opacity, supported blend modes, and image-pixel locks, at 8 or 16 bits. Text, vectors, masks, effects, and Smart Objects bake into pixels; adjustments and some combinations merge with layers below. Clipping and extra blend modes depend on the receiving app. [Interchange details](ora.md) | | **Krita** (.kra, .krz) | Import only | Pixel layers at 8, 16 or 32 bits (grayscale and CMYK convert to RGB), groups and pass-through groups, names, positions, visibility, opacity, locks, blend modes, transparency masks, Inherit Alpha (as clipping), color-adjustment filter layers and masks (as adjustment layers), Pixelize filter layers and masks (as pixels), editable solid color fills and default linear gradients, vector shapes and text (through the SVG importer), layer styles with linked Global Light, clone and file layers (as pixel copies), guides and resolution. Filters, fills and masks Patchy has no equivalent for are left out with a notice. [Import details](kra.md) | | **Paint.NET** (.pdn) | Import only | Pixel layers, names, visibility, opacity, blend modes, resolution, EXIF, XMP, and the saved palette. Text is already pixels in the source file. Paint.NET-specific blend modes can require baking when saving to another layered format; damaged or oversized files may fall back to their small preview with a notice. [Import details](pdn-format.md) | | **GIMP** (.xcf, also .xcf.gz/.bz2/.xz) | Import only | Layers, groups (pass-through included), masks, opacity, visibility, locks, color tags, blend modes (GIMP-only ones become Patchy modes a PSD save bakes), every precision at 8, 16 or 32 bits including historical GIMP 2.9.x files from little-endian systems, gray and indexed images (indexed can open in Palette mode), editable text (painted-on text can open as text), vector layers as shapes, link layers from their saved pixels, drop shadows as styles, most GIMP filters applied, channels, paths, guides, resolution, the color profile, comment, Exif, XMP and IPTC. Curves uses the saved channel and alpha tables. Apply Canvas and Shift use their saved settings. Filter selections keep their pixel coordinates after a canvas crop. Unhandled filters such as Color Balance produce a notice. GIMP's linear-light blending can give soft edges a different appearance. [Import details](xcf.md) | | **Layered TIFF** (.tif, .tiff) | Open and save | Photoshop-style layer data at 8, 16, and 32 bits, including supported text, masks, and effects. Choose Keep Layers when saving; other TIFF readers may show only the merged image. [TIFF details](tiff.md) | | **Aseprite** (.ase, .aseprite) | Open and save | Animations open as one editable group per frame with the original timing. Each frame keeps its pixel layers, nested groups and opacity. Ordinary 8-bit cels use Aseprite's blend arithmetic. For a layered PSD, choose to bake their appearance or retain editable pixels and the available Photoshop blend modes. Embedded tilemaps open as editable pixel layers with their tile orientation and placement. Aseprite saves contain a single frame at 8 bits, with procedural content rasterized. [Format details](file-formats.md#per-format-catalogue) | [Testy's native import benchmark](testy-native-import.md) checks GIMP, Krita, Aseprite and OpenRaster documents against reference renders, editable document properties and expected animation frames. [Testy's 32-bit PSD comparison](testy-float.md) checks full-canvas linear RGB against two independent Photoshop opens, including negative values and HDR highlights. Keep a PSD master when you need Patchy's editable text, effects, masks, or Smart Objects. Import notices and save warnings describe conversions that affect a particular document. ### Affinity import Patchy imports Affinity documents: current .af ("Affinity by Canva"), Affinity 2 (.afphoto, .afdesign, .afpub) and most Affinity 1.x files. Raster layers (16-bit, float, CMYK and Lab become 8-bit RGB), groups, masks (raster and vector), clipping, blend modes, opacity, editable text with per-run styles, vector curves, parametric shapes, compound-shape booleans, Designer symbols, artboards, layer effects, supported adjustment layers, and placed images (as embedded Smart Objects) import. Strokes keep their width, alignment, dashes and miter limit, crop-to-shape containers become masked groups, and the Erase blend mode becomes an isolated group with an inverse-alpha mask. A file that can't import as layers opens as its embedded preview, saying what was skipped. Affinity features not supported yet, or only partly supported: - Saving to Affinity formats (import only; save your edits as PSD) - A few parametric shape kinds (callouts, spirals, QR codes, circle-rounded stars, and exotic arrow ends) import as named placeholders - Adjustment layers beyond the eight kinds the importer maps (Levels, Curves, Hue/Saturation, Color Balance, Brightness/Contrast, Invert, Posterize, Threshold), and live filters, import as named empty placeholders; Brightness/Contrast and Color Balance import approximately - Affinity-only blend modes render through their closest Photoshop-compatible equivalent with a notice (Average matches exactly at half opacity; Negation, Reflect, Glow, and Pigment approximate; Contrast Negate falls back to Normal) - Bevel/Emboss and glow effects are approximated; Gaussian blur layer effects bake into the layer pixels (they render correctly but are no longer live) - Rotated or sheared frame text renders without its rotation (artistic text rotates correctly) - Multi-page documents open the first spread only - Affinity 1.x-era files: embedded-document placement can land slightly off