Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 22, 2021 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/20d993a34fba1483d8d46f820eba390b to your computer and use it in GitHub Desktop.
Save aspose-com-gists/20d993a34fba1483d8d46f820eba390b to your computer and use it in GitHub Desktop.
Convert PSD to TIFF Image Programmatically in C# .NET
// Load an existing PSD image as Image
Image image = Image.Load("Photoshop.psd");
// Create an instance of TiffOptions class
TiffOptions options = new TiffOptions(TiffExpectedFormat.Default);
// Set Compression, Photometric mode and graycale palette
options.Compression = TiffCompressions.Lzw;
options.Photometric = TiffPhotometrics.Palette;
options.Palette = ColorPaletteHelper.Create4BitGrayscale(true);
// Convert PSD to TIFF with compression
image.Save("PSD-to-Tiff-Compression.tiff", options);
// Load an existing PSD image as Image
Image image = Image.Load("Photoshop.psd");
// Create an instance of TiffOptions class
TiffOptions options = new TiffOptions(TiffExpectedFormat.Default);
// Convert PSD to Tiff
image.Save("PSD-to-Tiff.tiff", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment