.NET API to Create, Edit & Convert Photoshop Files

Take Photoshop file manipulation to the next level with the Aspose .NET API for PSD file editing and conversion. Efficiently convert PSD to PDF, JPEG, PNG, GIF, and more within your .NET apps.

Download Free TrialView All APIs

High-performance Photoshop File Manipulation in .NET

Aspose.PSD for .NET is a comprehensive API to programmatically generate, process, and manipulate PSD and PSB Photoshop files. It supports reading AI files and does not require installing Adobe Photoshop or Adobe Illustrator to function. It offers extensive layer manipulation features and helps developers add text or images to layers, merge layers, update existing layer text, apply layer effects, work with adjustment layers, and export Photoshop file layers to images. The .NET API includes image manipulation tools, including resizing, cropping, and rotating images, to help you upgrade your .NET image processing apps. Furthermore, RGB, Grayscale, and CMYK color modes with 8, 16, and 32 bits per channel are supported.

Building high-performance Photoshop file conversion solutions is possible with the .NET PSD file manipulation API. Users can integrate image conversion capabilities into their solutions and effortlessly convert PSD to PDF, PSD to PNG, PSD to JPEG, and more. The API supports drawing and filling shapes, including rectangles, lines, ellipses, polygons, and arcs. It gives you the control to adjust the gamma, brightness, and contrast of images, in addition to dithering or blurring the images and applying median, motion wiener, Gauss wiener, and more filters to images. Aspose.PSD for .NET is the ultimate choice for anyone looking to seamlessly develop dynamic .NET solutions to create, edit, or convert Photoshop files.

Getting Started

The following information will help you easily set up Aspose.PSD for .NET at your end. Please check the list of prerequisites on the System Requirements page to ensure you have the recommended OS, development environment, and framework settings enabled on your system before setting up the .NET PSD file library.

Aspose.PSD for .NET Installation

Please download the MSI installer or the DLLs of the library directly from the downloads section. Or, you can use the NuGet package of the Photoshop file processing library for .NET and install it from the Visual Studio package manager console with the help of the following command:

PM > Install-Package Aspose.PSD

Effortless PSD to PDF and Image Format Conversion in .NET

Aspose.PSD for .NET API boasts excellent file conversion support for PSD to PDF, JPEG, PNG, BMP, GIF, and more formats. It provides multiple avenues to developers for efficiently converting PSD files. PSD to PDF conversion opens up countless possibilities for sharing, accessing, and viewing files across different devices or platforms. Similarly, converting Photoshop files to images with the Photoshop file processing and manipulation API helps in easy collaboration and storing of files.

Seamless PSD to PDF Conversion in C# .NET

Build powerful file conversion solutions that allow users to easily convert PSD to PDF in .NET with the PSD conversion API for .NET. In the following coding example, we will learn how to load a Photoshop PSD file and convert it to PDF format with different options, so let’s get started.

  • Create a PsdImage class instance to load the source PSD file.
  • Set PDF metadata using the PdfDocumentInfo class instance.
  • Apply PDF options/properties using the PdfOptions class.
  • Export the converted PDF file using the Save method.
String path = @"/Users/Documents/Examples/PsdExamples/";
using (var psdImage = (PsdImage)Image.Load(path + "AllAdjustments.psd", new PsdLoadOptions()))
{
   psdImage.Save(path + "PsdConverted_To_Pdf.pdf",
	new PdfOptions()
        {
          PdfDocumentInfo = new PdfDocumentInfo()
          {
             Author = "Aspose.PSD for .NET",
             Keywords = "Convert, PSD, PDF, HowTo",
             Subject = "Convert PSD to PDF",
             Title = "PDF From PSD",
          },
          ResolutionSettings = new ResolutionSetting(5, 6)
    });
}

Convert PSD to JPEG and Other Images

Converting Photoshop PSD files to popular image formats such as JPEG, PNG, BMP, GIF, and TIFF is possible using the .NET PSD manipulation library. Let’s check the following example to learn how to convert PSD to JPEG in C# .NET by setting various options for the output file.

  • Load the source PSD file using a PsdImage class object.
  • Create an instance of the JpegOptions class.
  • Set different JPEG file properties and options.
  • Export the PSD to JPEG using the Save method.
String path = @"/Users/Documents/Examples/PdfExamples/";
using (var psdImage = (PsdImage)Image.Load(path + "AllAdjustments.psd"))
            {
                // Set the output JPEG options
                JpegOptions jpegOptions = new JpegOptions();
                jpegOptions.Quality = 80;
                jpegOptions.JpegLsAllowedLossyError = 10;

                // Save the converted JPG on the disk
                psdImage.Save(path + "PsdConverted.jpg", jpegOptions);
            }


Please view more working code examples by visiting the Aspose.PSD for .NET GitHub examples page. Please check our Free Online Photoshop File Manipulation Apps to view, compress, merge, resize, watermark, edit, and convert Photoshop files using your desktop or mobile devices.

Master Layer Manipulation in Photoshop Files in .NET

Aspose.PSD for .NET API offers complete layer management and manipulation functionality to developers looking to integrate such features into their applications. It enables developers to programmatically add new layers to PSD files, merge or flatten layers, find specific layers, update layer contents (text and image), add adjustment layers and fill layers, apply clipping masks, edit text layers, and do much more. With advanced PSD file editing features and the ability to manage Photoshop layers, Aspose.PSD for .NET is the preferred choice of users for manipulating PSD and PSB files on the .NET platform.

FAQ

1. How can I convert PSD files on the .NET platform?

Converting PSD files in .NET is quick and easy using the Photoshop file processing API for .NET. It helps you seamlessly convert PSD files to PDF, JPEG, PNG, TIFF, BMP, and GIF formats.

2. How long it takes to process Photoshop files and convert them?

The PSD file library works fast and completes your PSD and PSB file reading, writing, converting, and processing requests in no time.

3. Is it safe to process Photoshop files using the .NET API?

You can be sure of the security of your data files while processing them using the PSD file manipulation API. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.

4. Can I process PSD files on different operating systems?

Yes, the .NET PSD files library works across different OS, frameworks, and operating environments. You can use it on the platform of your choice & it does not require any additional software installation to function.

Looking for help?

Checkout our support channels for help with your questions related to Aspose product API features and working.

Ready to get started?

Download Free Trial View All APIs