Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
bma  
#1 Posted : Monday, January 25, 2016 10:38:37 AM(UTC)
bma

Rank: Member

Groups: Member
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

bma  
#2 Posted : Tuesday, January 26, 2016 1:44:45 AM(UTC)
bma

Rank: Member

Groups: Member
Joined: 1/12/2016(UTC)
Posts: 23

Thanks: 8 times
I can't upload the image to this forum, however you can download the image here: https://www.dropbox.com/...Rs2cZ9Waoa_7r5Rs2cZ9Waoa
Fedor  
#3 Posted : Tuesday, January 26, 2016 2:32:56 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
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
bma  
#4 Posted : Tuesday, January 26, 2016 3:50:54 AM(UTC)
bma

Rank: Member

Groups: Member
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
Fedor  
#5 Posted : Tuesday, January 26, 2016 4:41:16 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
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
thanks 1 user thanked Fedor for this useful post.
bma on 1/26/2016(UTC)
Fedor  
#6 Posted : Wednesday, January 27, 2016 12:53:06 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
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
Fedor  
#7 Posted : Tuesday, February 16, 2016 2:27:54 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
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
Users browsing this topic
Guest
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.