Created
November 26, 2019 16:01
-
-
Save GroupDocsGists/27d0573878a8342d2a30b0c9ac04a8d9 to your computer and use it in GitHub Desktop.
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
string outputFileTemplate = Path.Combine(outputFolder, "converted-page-{0}.psd"); | |
SavePageStream getPageStream = page => new FileStream(string.Format(outputFileTemplate, page), FileMode.Create); | |
using (Converter converter = new Converter("sample.jpeg")) | |
{ | |
ImageConvertOptions options = new ImageConvertOptions | |
{ | |
Format = ImageFileType.Psd | |
}; | |
converter.Convert(getPageStream, options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment