HTML
JPG
PSD
XML
PSB
JPEG2000
Convert PSB to JPEG2000 via C#
How to Convert PSB to JPEG2000 Using C#
In order to convert PSB to JPEG2000, we’ll use Aspose.PSD for .NET API which is a feature-rich, powerful and easy to use document manipulation and conversion API for C# platform. Open NuGet package manager, search for Aspose.PSD and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.PSD
Steps to Convert PSB to JPEG2000 via C#
Aspose.PSD makes it easy for the developers to load & convert PSB files to JPEG2000 in just a few lines of code.
- Load the PSB with Image.Load method
- Create an instance of Jpeg2000Options class
- Call Image.Save method
- Pass output filename and object of Jpeg2000Options
System Requirements
Aspose.PSD for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.
- Microsoft Windows or a compatible OS with .NET Framework, .NET Core, and PHP, VBScript, Delphi, C++ via COM Interop.
- Development environment like Microsoft Visual Studio.
- Aspose.PSD for .NET DLL referenced in your project.
This sample code shows PSB to JPEG2000 C# Conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var image = new Image.Load("template.psb")) | |
{ | |
var options = new Jpeg2000Options(); | |
image.Save("output.jp2", options); | |
} |