RecursiveAI.OneImage.Psd 1.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RecursiveAI.OneImage.Psd --version 1.4.0
                    
NuGet\Install-Package RecursiveAI.OneImage.Psd -Version 1.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RecursiveAI.OneImage.Psd" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecursiveAI.OneImage.Psd" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="RecursiveAI.OneImage.Psd" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RecursiveAI.OneImage.Psd --version 1.4.0
                    
#r "nuget: RecursiveAI.OneImage.Psd, 1.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RecursiveAI.OneImage.Psd@1.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RecursiveAI.OneImage.Psd&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=RecursiveAI.OneImage.Psd&version=1.4.0
                    
Install as a Cake Tool

OneImage.Psd

Photoshop PSD and PSB support for OneImage: read the merged composite as an image, or load the whole layer tree into a OneImage layered document, edit it and save it again. Pure C# with no dependency beyond OneImage and .NET.

dotnet add package RecursiveAI.OneImage.Psd
using OneImage;
using OneImage.Psd;

// The merged composite, like any other format (register the format first; it is not in the default configuration).
var load = new LoadOptions { Configuration = new ImageConfiguration().Add(PsdFormat.Instance) };
Image.Load("poster.psd", load).Resize(width: 800).Save("poster.webp");

// The layers.
using PsdFile file = PsdFile.Load("poster.psd");
foreach (var layer in file.Document.Root.Children)
    Console.WriteLine($"{layer.Name} {layer.BlendMode} {file.GetInfo(layer).Kind}");
file.Document.Render().Save("flattened.png");
file.Save("edited.psd");

What is covered

  • Refused: multichannel documents (a typed ImageFormatException). Bitmap, gray, duotone, indexed, RGB, CMYK and Lab at 8, 16 and 32 bits load; CMYK and Lab are converted to RGB through the color engine.
  • Modelled and round-tripped: pixel layers with offsets, groups, blend modes, opacity, fill opacity, visibility, clipping, lock flags, raster and vector masks (a vector mask becomes a raster mask), solid color fills, and the levels, curves, hue/saturation, brightness/contrast, exposure, invert, threshold and posterize adjustments.
  • Kept only as stored pixels plus untouched blocks: text, smart objects, layer effects and styles, gradient and pattern fills and vector strokes. They render from the pixels Photoshop stored, are not redrawn, and their blocks are written back unchanged.
  • Known gaps against Photoshop: posterize, curves and brightness/contrast are approximations; hard mix and vivid light differ slightly; vector-mask path operations use the non-zero rule only; levels, curves, hue/saturation, brightness/contrast and exposure layers in CMYK and Lab documents are kept but not applied; dissolve and darker/lighter color render as Normal, Darken and Lighten.

The PSD page has the full mapping, the fidelity figures, the limits and the speed. Layered documents are described in the layers page.

License

Licensed under either of MIT or Apache-2.0 at your option.

Copyright (c) Recursive AI, LLC.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.0 0 10/23/2026
1.6.0 0 10/23/2026
1.5.0 1 10/23/2026
1.4.0 35 10/23/2026

See CHANGELOG.md in the repository.