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
|
|
|
|
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
|
1 user thanked Eugene Kosmin for this useful post.
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/10/2017(UTC) Posts: 33
Thanks: 10 times Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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.