You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to scale big gif image and save memory, is there a method to decode gif row by row, not reading the whole image to memory.
The text was updated successfully, but these errors were encountered:
jannson
changed the title
Can I decode row by row to downscaling Images and save memory for big image.
Can I decode row by row to downscaling images and save memory for big image.
May 25, 2024
This library was designed for speed first, not to save memory. It uses the current frame as the dictionary, so you need to have a buffer of frame size (1 byte per pixel). It is possible to use my other GIF library (AnimatedGIF) and only keep the dictionary (24K) + 1 line of image. This can produce correct output if you don't have certain restore or palette operations.
Something like this issue: https://stackoverflow.com/questions/28154758/downscaling-images-when-decoding-with-libpng
I want to scale big gif image and save memory, is there a method to decode gif row by row, not reading the whole image to memory.
The text was updated successfully, but these errors were encountered: