Rank: Member
Groups: Guest
Joined: 1/12/2016(UTC) Posts: 23
Thanks: 8 times
|
Hello, I have one image (see image attached) and I want to export that image from tiff to jpeg, but when I'm creating the image with Image.Create(), I received the following error: "Unable to get information about stream." Code:const string path = @"D:\img_test.tiff";
const string outpath = @"D:\out.jpg";
using (var imageStream = new MemoryStream(File.ReadAllBytes(path)))
using (var exportedImageStream = new MemoryStream())
using (var imageReader = ImageReader.Create(imageStream))
using (var bitmap = imageReader.Frames[0].GetBitmap())
{
var jpegSettings = new JpegSettings { Quality = 100 };
bitmap.Save(exportedImageStream, jpegSettings);
File.WriteAllBytes(outpath, exportedImageStream.GetBuffer());
}
Stack Trace: {Aurigma.GraphicsMill.Codecs.FileFormat RecognizeFormat(System.IO.Stream)} at Aurigma.GraphicsMill.Codecs.ImageReader.RecognizeFormat(Stream stream) at Aurigma.GraphicsMill.Codecs.ImageReader.Create(Stream stream) at ImageProcessor.ManualTests.Program.Main(String[] args) in d:\code\projects\ImageProcessor\ImageProcessor.ManualTests\Program.cs:line 35 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() Kind regards Edited by user Monday, January 25, 2016 10:41:58 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Guest
Joined: 1/12/2016(UTC) Posts: 23
Thanks: 8 times
|
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
I'm sorry, I received a not found error, when tried to download the file from Dropbox. Could you send the TIFF image again? Just in case I have PMed you my Dropbox account. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Guest
Joined: 1/12/2016(UTC) Posts: 23
Thanks: 8 times
|
Hi, I've shared the image with you in dropbox. Let me know if you can't download the image. Regards
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Thank you for the provided file. We have successfully reproduced the problem (Aurigma Bug #21708). Our engineer will check the problem shortly. I will keep you informed of the status. |
Best regards, Fedor Skvortsov
|
1 user thanked Fedor for this useful post.
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
We have fixed the problem. The next release (> 8.1.2) will include the fix. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
We have just released the new version 8.1.12 of the Graphics Mill SDK where we have fixed the problem. |
Best regards, Fedor Skvortsov
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.