Hello,
I noticed some very strange behavior when converting a certain jpg file.
The problem is always reproducible using the basic pdf conversion sample, but only happens when the file is passed in as a stream.
The following code was used to modify the sample:
private static Stream GetFileStream() { return File.OpenRead(@"D:\Back Gallery For saturn v launch wallpaper.jpg"); }
...
using (Converter converter = new Converter(GetFileStream))
If the same file is passed in normally, the conversion works as expected.
using (Converter converter = new Converter(@"D:\Back Gallery For saturn v launch wallpaper.jpg"))
Does anyone have an explanation for this strange behavior or could this be a bug?
(I tried with different images, but only this one seems to trigger this issue.
The issue was found when saving attachments to a FileStream using GroupDocs.Viewer.SaveAttachment, but I simplified the sample.)