Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created November 26, 2019 16:01
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 GroupDocsGists/27d0573878a8342d2a30b0c9ac04a8d9 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/27d0573878a8342d2a30b0c9ac04a8d9 to your computer and use it in GitHub Desktop.
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