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 (3)

Showing the top 3 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.

Aspose.PSD.Adapters.Imaging

Aspose.PSD Imaging Adapter for .NET provides time-saving integration with Aspose.Imaging to open or export additional formats and work with them in Adobe Photoshop Style using layers, effects, warp transformations without requiring Adobe Photoshop or Adobe Illustrator. Aspose.PSD has limitation on loading of additional Raster and Vector Formats. They can be only loaded as layers. If you have both Aspose.PSD and Aspose.Imaging licenses or you are user of Aspose.Total this package can save your time and efforts on integration of these products. With Aspose.PSD.Adapters.Imaging you can open in Aspose.PSD any formats like SVG, WEBP, TIFF, PNG, JPEG, GIF, JPEG2000, BMP and edit them like PSD without additional code.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.10.0 1,500 10/14/2024
24.9.0 12,025 9/23/2024
24.8.0 25,299 8/14/2024
24.7.0 15,734 7/11/2024
24.6.0 23,315 6/6/2024
24.5.0 13,352 5/17/2024
24.4.0 17,450 4/16/2024
24.3.0 10,481 3/26/2024
24.2.0 11,752 3/13/2024
24.1.0 21,289 2/5/2024
23.12.0 20,142 1/3/2024
23.11.0 25,797 11/30/2023
23.10.0 14,598 11/13/2023
23.9.0 21,431 10/5/2023
23.8.0 18,701 9/1/2023
23.7.0 14,397 7/24/2023
23.6.0 9,123 6/23/2023
23.5.0 6,655 5/29/2023
23.4.0 7,915 4/18/2023
23.3.0 8,442 3/24/2023
23.2.0 11,699 2/22/2023
23.1.0 15,083 1/30/2023
22.12.0 13,321 12/13/2022
22.11.0 10,004 11/10/2022
22.10.0 26,874 9/28/2022
22.9.0 3,079 9/1/2022
22.8.0 26,556 7/27/2022
22.7.0 8,949 7/4/2022
22.6.0 14,720 6/1/2022
22.5.0 20,917 5/4/2022
22.4.0 14,191 4/4/2022
22.3.0 21,218 2/28/2022
22.2.0 3,073 2/1/2022
22.1.0 10,680 12/28/2021
21.12.0 2,092 12/6/2021
21.11.0 14,512 10/29/2021
21.10.0 15,144 9/30/2021
21.9.0 6,653 9/10/2021
21.8.0 13,112 8/6/2021
21.7.0 25,170 7/14/2021
21.6.0 12,990 6/9/2021
21.5.0 9,651 5/13/2021
21.4.0 18,133 4/30/2021
21.3.0 17,498 3/29/2021
21.2.0 10,506 2/25/2021
21.1.0 1,443 1/29/2021
20.12.0 4,199 12/31/2020
20.11.0 8,035 12/1/2020
20.10.0 9,630 10/22/2020
20.9.0 1,787 9/30/2020
20.8.0 3,144 8/31/2020
20.7.0 2,577 7/30/2020
20.6.0 2,740 6/29/2020
20.5.0 2,584 5/28/2020
20.4.0 12,715 4/27/2020
20.3.0 2,316 3/31/2020
20.2.0 5,190 2/25/2020
19.12.0 6,576 12/12/2019
19.11.0 1,365 11/29/2019
19.10.0 1,379 10/29/2019
19.9.0 1,157 9/26/2019
19.8.0 11,541 8/30/2019
19.7.0 1,152 8/12/2019
19.6.0 1,218 7/15/2019
19.5.0 1,513 5/20/2019
19.4.0 1,369 4/16/2019
19.3.0 1,342 3/15/2019
19.2.0 2,133 2/14/2019
18.12.0 1,391 12/7/2018
18.10.0 1,658 10/4/2018
18.8.0 1,536 8/13/2018