Aspose.PSD 22.10.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspose.PSD --version 22.10.0
NuGet\Install-Package Aspose.PSD -Version 22.10.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="Aspose.PSD" Version="22.10.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.PSD --version 22.10.0
#r "nuget: Aspose.PSD, 22.10.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.
// Install Aspose.PSD as a Cake Addin
#addin nuget:?package=Aspose.PSD&version=22.10.0

// Install Aspose.PSD as a Cake Tool
#tool nuget:?package=Aspose.PSD&version=22.10.0

PSD Transparency Stroke Effect via .NET API

Version 22.10.0 Nuget

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

A standalone .NET API to read, write, process & convert Adobe Photoshop PSD & PSB formats without needing to install Adobe Photoshop®.

Aspose.PSD for .NET API allows you to create and edit the Photoshop files as well as provides the ability to update layer properties, add watermarks, perform graphics operations and convert one file format to another.

Photoshop File Processing Features

  • Create Photoshop PSD & PSB files via API.
  • Export PSD images to popular image formats.
  • Binarization with fixed & Otsu threshold.
  • Convert GIF image layers to TIFF & CMYK PSD to CMYK TIFF.
  • Combine, expand, or crop images.
  • Create, read, and write XMP data.
  • Set default font as a replacement for all the missing fonts.
  • Apply Median & Wiener filters to reduce image noise.
  • Transform images to black-n-white or grayscale.
  • Crop images by shifts or rectangle.
  • Rotate an image at a specific angle
  • Perform simple image resize, or by image proportions.
  • Support for dithering of raster images.
  • Adjust image brightness, contrast, and gamma.
  • Implement Lossy GIF Compression & Bicubic Resampling.
  • Color Balance or invert Adjustment Layer.
  • Draw basic objects such as lines, Ellipse, Rectangle, Arc, Bezier.

What's new in v22.10.0

Photoshop® Transparent Stroke Effects

Transparency works for the Stroke effect with Inside Position for the PSD files.

string sourceFile = "psdnet1278.psd";
string output = "out_1278.png";

using (var image = (PsdImage)Image.Load(sourceFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
    image.Save(output, new PngOptions());
}

Asian Symbol Parsing & Rendering in Photoshop®

Parse or update the text with some Asian symbols e.g. Chinese.

string testData = @"尐少尒尓尔尕尖尗尘尙尚尛尜尝尞尟尠尡尢尣尤尥尦尧尨尩尪尫尬尭尮尯尰就尲尳尴尵尶尷尸尹尺尻尼尽尾尿局屁层屃屄居屆屇屈屉届屋屌屍屎屏";

testData = testData.Substring(25, 1); // select the problematic symbol

string srcFile = "TestFileForAsianCharsBig.psd";
string output = "output.psd";

using (var image = (PsdImage)Image.Load(srcFile))
{
    var layer = (TextLayer)image.Layers[0];
    layer.UpdateText(testData);
    image.Save(output);
}

Photoshop® Timeline Creation via C# .NET API

Create Timeline effects and configure specific frames.

string sourceFile = "clearFile.psd";
string outputFile = "output_not_clearFile.psd";

using (var psdImage = (PsdImage)Image.Load(sourceFile))
{
    // Create timeline with few frames.
    TimeLine timeLine = TimeLine.InitializeFrom(psdImage);
    var layerIds = timeLine.LayerIds;

    List<Frame> frames = new List<Frame>(timeLine.Frames);
    for (int i = 0; i < 3; i++)
    {
        frames.Add(new Frame(timeLine));
    }
    timeLine.Frames = frames.ToArray();

    timeLine.Frames[1].LayerStates[layerIds[1]].StateEffects.AddColorOverlay();

    timeLine.Frames[2].LayerStates[layerIds[1]].StateEffects.AddGradientOverlay();
    timeLine.Frames[2].LayerStates[layerIds[1]].StateEffects.IsVisible = false;

    timeLine.ApplyTo(psdImage);

    psdImage.Save(outputFile);
}

For a complete list of features, enhancements, and bug fixed in this release please visit, Aspose.PSD for .NET 22.10 - Release Notes.

Read & Write Photoshop Formats

Adobe Photoshop: PSD, PSB

Save Photoshop Files As

Raster Formats: TIFF, JPEG, PNG, GIF, BMP, JPEG2000
Fixed Layout: PDF

Read Formats

Adobe Illustrator: AI

Platform Independence

Aspose.PSD for .NET can work in any environment that supports .NET framework 2.0 or above.

Get Started

Are you ready to give Aspose.PSD for .NET a try? Simply execute Install-Package Aspose.PSD from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.PSD for .NET and want to upgrade the version, please execute Update-Package Aspose.PSD to get the latest version.

Crop a PhotoShop PSD to Save Result in PNG format

You can execute the below code snippet to see how Aspose.PSD API works in your own development environment or check the GitHub Repository for other common usage scenarios.

// implement correct Crop method for PSD files.
using (RasterImage image = Image.Load(dir + "template.psd") as RasterImage)
{
    image.Crop(new Rectangle(10, 30, 100, 100));
    image.Save(dir + "output.png", new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}

Draw Rectangles in a PSD Image

// create an instance of Image
using (Image image = new PsdImage(100, 100))
{
    Graphics graphic = new Graphics(image);
    graphic.Clear(Color.Yellow);
    // draw a rectangle with Pen tool
    graphic.DrawRectangle(new Pen(Color.Red), new Rectangle(30, 10, 40, 80));
    // draw another rectangle with Solid Brush in Blue color
    graphic.DrawRectangle(new Pen(new SolidBrush(Color.Blue)), new Rectangle(10, 30, 80, 40));
}

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net20 is compatible.  net35 is compatible.  net35-client is compatible.  net40 is compatible.  net40-client is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Aspose.PSD:

Package Downloads
Aspose.Total

Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications.

Weavy.Core

A class library containing core business logic, data access and utility methods required by Weavy.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.4.0 4,473 4/16/2024
24.3.0 8,433 3/26/2024
24.2.0 9,993 3/13/2024
24.1.0 16,982 2/5/2024
23.12.0 16,913 1/3/2024
23.11.0 19,671 11/30/2023
23.10.0 10,557 11/13/2023
23.9.0 16,137 10/5/2023
23.8.0 13,724 9/1/2023
23.7.0 9,832 7/24/2023
23.6.0 6,601 6/23/2023
23.5.0 4,865 5/29/2023
23.4.0 6,302 4/18/2023
23.3.0 7,236 3/24/2023
23.2.0 9,860 2/22/2023
23.1.0 11,343 1/30/2023
22.12.0 9,484 12/13/2022
22.11.0 8,669 11/10/2022
22.10.0 23,843 9/28/2022
22.9.0 3,031 9/1/2022
22.8.0 22,251 7/27/2022
22.7.0 8,713 7/4/2022
22.6.0 13,444 6/1/2022
22.5.0 18,067 5/4/2022
22.4.0 9,975 4/4/2022
22.3.0 18,133 2/28/2022
22.2.0 2,980 2/1/2022
22.1.0 9,797 12/28/2021
21.12.0 2,047 12/6/2021
21.11.0 12,553 10/29/2021
21.10.0 11,923 9/30/2021
21.9.0 6,390 9/10/2021
21.8.0 11,418 8/6/2021
21.7.0 19,770 7/14/2021
21.6.0 11,689 6/9/2021
21.5.0 7,926 5/13/2021
21.4.0 17,999 4/30/2021
21.3.0 15,833 3/29/2021
21.2.0 9,770 2/25/2021
21.1.0 1,385 1/29/2021
20.12.0 4,108 12/31/2020
20.11.0 6,600 12/1/2020
20.10.0 8,751 10/22/2020
20.9.0 1,724 9/30/2020
20.8.0 3,065 8/31/2020
20.7.0 2,517 7/30/2020
20.6.0 2,648 6/29/2020
20.5.0 2,487 5/28/2020
20.4.0 12,620 4/27/2020
20.3.0 2,192 3/31/2020
20.2.0 5,057 2/25/2020
19.12.0 6,024 12/12/2019
19.11.0 1,323 11/29/2019
19.10.0 1,341 10/29/2019
19.9.0 1,125 9/26/2019
19.8.0 11,505 8/30/2019
19.7.0 1,134 8/12/2019
19.6.0 1,191 7/15/2019
19.5.0 1,487 5/20/2019
19.4.0 1,345 4/16/2019
19.3.0 1,298 3/15/2019
19.2.0 2,073 2/14/2019
18.12.0 1,357 12/7/2018
18.10.0 1,618 10/4/2018
18.8.0 1,444 8/13/2018