This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
SebastianR  
#1 Posted : Wednesday, July 26, 2017 12:08:37 AM(UTC)
SebastianR

Rank: Advanced Member

Groups: Guest
Joined: 5/10/2017(UTC)
Posts: 33

Thanks: 10 times
Was thanked: 1 time(s) in 1 post(s)
Hello,

executing the following code adds an additional frame to the result. Looks like the addition is a preview, I don't know for sure, though. The second frame may or may not have a different size and/or colorspace.

This works with all tiff images I tested.

Code:

using (var reader = ImageReader.Create(TiffResource))
using (var writer = new TiffWriter(result))
{
    Console.Out.WriteLine("Starting with {0} Frames.", reader.Frames.Count); // 1 Frame

    var settings = new TiffSettings(CompressionType.Lzw)
                        {
                            Exif = reader.Exif // this is the culprit
                        };
    writer.Setup(settings);

    (reader + writer).Run();
}

using (var resultReader = ImageReader.Create(result))
{
    Console.Out.WriteLine("Now there are {0} Frames.", resultReader.Frames.Count); // 2 Frames
}

Is this intended behaviour? Is there a builtin way to prevent this or do I have to scan the exif for bitmaps and remove them?

Regards,

Sebastian

Eugene Kosmin  
#2 Posted : Wednesday, July 26, 2017 4:04:29 AM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi Sebastian,

Unfortunately, we could not reproduce the problem with our TIFF files.

Could you post here your one?

Best regards,

Eugene Kosmin

The Aurigma Development Team

thanks 1 user thanked Eugene Kosmin for this useful post.
SebastianR on 8/7/2017(UTC)
SebastianR  
#3 Posted : Thursday, July 27, 2017 9:53:16 PM(UTC)
SebastianR

Rank: Advanced Member

Groups: Guest
Joined: 5/10/2017(UTC)
Posts: 33

Thanks: 10 times
Was thanked: 1 time(s) in 1 post(s)
Hi,

this is one of them.

160x160-FarbverlaufSchachbrett_isocoatedv2.tif (1,906kb) downloaded 7 time(s).

Eugene Kosmin  
#4 Posted : Monday, August 7, 2017 5:53:27 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi Sebastian,

Sorry for the long delay.

Thank you for your image.

We have fixed the issue. From the next release, Exif thumbnails will not be included in a reader's frame collection.

Best regards,

Eugene Kosmin

The Aurigma Development Team

SebastianR  
#5 Posted : Monday, August 7, 2017 10:04:48 PM(UTC)
SebastianR

Rank: Advanced Member

Groups: Guest
Joined: 5/10/2017(UTC)
Posts: 33

Thanks: 10 times
Was thanked: 1 time(s) in 1 post(s)
Thank you,

I am looking forward to this.

Eugene Kosmin  
#6 Posted : Thursday, August 31, 2017 12:39:37 AM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
The fix is available with just published GM 9.1.33. Please check the NuGet repository.

Best regards,

Eugene Kosmin

The Aurigma Development Team

Users browsing this topic
Guest (3)
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.