Aspose.PSD 20.2.0

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

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

.NET API for Photoshop File Processing

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 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 on 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

New Features in Version 20.2.0

  • Ability to render different colors text in Text Layer.
  • Support of clbl resource (Layer resource contains info about Blend clipping elements).
  • Support of blwh resource (Resource contains Black & White Adjustment Layer Data).
  • Support of lspf Resource (Contains settings about Layer Protected setting).
  • Support of infx resource (Contains data about Blending of interior elements).
  • Ability to export Layer Group to JPEG, PNG, TIFF, GIF, BMP, JPEG2000, PSD, PSB, PDF.

New Feature Usage Example

PSDNET-206. Improvement of ability to render different colors text in Text Layer

using (var psdImage = (PsdImage)Image.Load("text_ethalon_different_colors.psd")){
    var txtLayer = (TextLayer)psdImage.Layers[1];
    txtLayer.TextData.UpdateLayerData();
    psdImage.Save("output.png", new PngOptions());
}

For detailed usage examples of all the new features, please visit Aspose.PSD for .NET 20.2 - Release Notes.

APIs Removed in Version 20.2.0

  • M:Aspose.PSD.FileFormats.Ai.AiDataSection.Dispose
  • P:Aspose.PSD.FileFormats.Ai.AiRasterImageSection.ImageRectangle
  • M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.Lr16Resource.#ctor(System.Int32)
  • F:Aspose.PSD.Xmp.Types.Derived.RenditionClass.DefinedValues

Read & Write Photoshop Formats

Photoshop: PSD, PSB

Save Photoshop Files As

Raster Formats: TIFF, JPEG, PNG, GIF, BMP, JPEG2000

Platform Independence

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

Getting Started with Aspose.PSD for .NET

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 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

Aspose.PSD for .NET provides options to process and manipulate Adobe Photoshop files including drawing new objects.

// 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 | Documentation | API Reference | Code Examples | Blog | Free Support | Temporary License

Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 is compatible.  net35-client is compatible.  net35-compact 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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 0 4/16/2024
24.3.0 7,570 3/26/2024
24.2.0 9,899 3/13/2024
24.1.0 16,304 2/5/2024
23.12.0 16,552 1/3/2024
23.11.0 19,131 11/30/2023
23.10.0 10,309 11/13/2023
23.9.0 15,657 10/5/2023
23.8.0 13,300 9/1/2023
23.7.0 9,372 7/24/2023
23.6.0 6,469 6/23/2023
23.5.0 4,672 5/29/2023
23.4.0 6,143 4/18/2023
23.3.0 7,130 3/24/2023
23.2.0 9,695 2/22/2023
23.1.0 10,994 1/30/2023
22.12.0 9,343 12/13/2022
22.11.0 8,541 11/10/2022
22.10.0 23,624 9/28/2022
22.9.0 3,031 9/1/2022
22.8.0 22,102 7/27/2022
22.7.0 8,713 7/4/2022
22.6.0 13,268 6/1/2022
22.5.0 17,936 5/4/2022
22.4.0 9,569 4/4/2022
22.3.0 17,996 2/28/2022
22.2.0 2,980 2/1/2022
22.1.0 9,718 12/28/2021
21.12.0 2,047 12/6/2021
21.11.0 12,319 10/29/2021
21.10.0 11,777 9/30/2021
21.9.0 6,270 9/10/2021
21.8.0 11,285 8/6/2021
21.7.0 19,355 7/14/2021
21.6.0 11,576 6/9/2021
21.5.0 7,827 5/13/2021
21.4.0 17,995 4/30/2021
21.3.0 15,683 3/29/2021
21.2.0 9,677 2/25/2021
21.1.0 1,385 1/29/2021
20.12.0 4,108 12/31/2020
20.11.0 6,466 12/1/2020
20.10.0 8,634 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,619 4/27/2020
20.3.0 2,188 3/31/2020
20.2.0 5,048 2/25/2020
19.12.0 6,012 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,617 10/4/2018
18.8.0 1,436 8/13/2018