For more details, please visit Convert PSD to TIFF Image in C#
Last active
December 22, 2021 20:39
-
-
Save aspose-com-gists/20d993a34fba1483d8d46f820eba390b to your computer and use it in GitHub Desktop.
Convert PSD to TIFF Image Programmatically in C# .NET
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
// 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); |
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
// 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