Gif save issue

zsample.zip (1.1 MB)

Hello, when I try to load a document image, like tiff and save as gif, the result is a tragedy, not useful at all :smiley:

I use New Aspose.Imaging.ImageOptions.GifOptions for save with no options

Please see my sample

What should I set to cover all image types, ie photos and text based ones

Also please see help page:

100 out of 100 new to Imaging developers can’t guess what’s this property! :smiley:

What’s this? Does it apply to source images or destination ones when converting?
Safe to set always to True?
Thanks :smiley:

@australian.dev.nerds
Hi,

Thank you for your message.

From your example, I’m not entirely sure I understand the issue. Would it be possible for you to share both the original TIFF file and the resulting GIF? That would help us better understand what is happening and provide more specific guidance.

In the meantime, here is a general explanation:

A GIF image is limited to a maximum of 256 colors in its palette, whereas a TIFF image can store full 24-bit RGB color information. As a result, some color loss or changes are expected when converting from TIFF to GIF.

Regarding the FullFrame option: GIF, as well as other animation formats, can store only the differences between consecutive frames. For example, the second frame may contain only the pixels that have changed relative to the first frame, with the rest of the image being transparent.

When FullFrame = false, these partial frames are preserved as they are in the original animation. When FullFrame = true, the frames are composited with the previous ones so that each frame becomes a complete image and appears exactly as it would during playback.

Once we have the sample files, we’ll be happy to investigate the behavior in more detail.

1 Like

Thanks,

I still didn’t get the difference but Ive set the FullFrame in save options to both true/false and output results were identical when used fc.exe on them to compare! Byte by byte!

Also, using imaging file type detect or other classes how can I distinguish jpeg and mpo?

Does imaging support loading of jpeg mpo all frames and save as apng or tiff with all source frames in destination format?
Or load multi page/frame tif/png and save as jpg mpo multi?
Best :grinning:

Thanks, simply load this sample Tiff and save as Gif with default options!
Best :slight_smile:
[MS-OXMSG]-250522.zip (608.4 KB)

@australian.dev.nerds
We will answer later.
Sorry for delaying

@australian.dev.nerds, I have noticed the color differences as well. I’ll take a closer look at them and get back to you with my findings.

That said, due to the limitations mentioned above, it is not possible for a GIF to reproduce the colors of the original TIFF with 100% accuracy.
[MS-OXMSG]-250522.gif (271.8 KB)

@australian.dev.nerds
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): IMAGINGNET-8082

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.