Skip to content

aspose-psd/Aspose.PSD-for-.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Nuget

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

Directory Description
Demos Source code for live demos hosted at https://products.aspose.app/psd/family.
Examples A collection of .NET examples that help you learn the product features.

Photoshop File Manipulation via .NET

  • 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 images 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.

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 PSD to Save Result as PNG

// 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));
}

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

About

Aspose.PSD for .NET examples, plugins and showcases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published