-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating GIF from JPEG frames? #44
Comments
The color map maps the raw pixel values (0–255) onto rgb triplets. This will make the image considerably larger as it then uses a local color map for every frame one strategy would be to extract the color map from the first frame and use it as a global color map. And create the successive frames like you did. |
Hi @nwin , Actually my first attempt was using Regarding the color map, I don't know what it is in the first place, so I've searched the documentation but I cannot find any method to get that property. I may have missed something, so for clarification is there anyway to extract the color map from an |
Encoding performance of |
BTW, the performance bottleneck is not in LZW, but in |
Hi,
I'm new to Rust, yet I need to write a piece of Rust code to create a GIF file from a series of JPEG screenshots.
Currently my generated GIF is glitchy, the content seems enlarged and the colors don't look right.
I'm wondering whether this is related to the compatibility of JPEG as frames for GIF, or because I'm using the wrong palette for the
GIF Encoder
? I'm learning so comments are welcome! Thanks in advance!A brief summary for the code below:
screenshot()
returns animage::RgbaImage
width
andheight
of each of the image (and the derivedFrame
) is fixedcolor_map
is set to[ FF, FF, FF, FF, 00, 00 ]
(which I supposed is R, G, B, and A enabled? Pardon me as I cannot find any reference to the palette parameter)The text was updated successfully, but these errors were encountered: