Replies: 2 comments 2 replies
-
Do you have the input images and sample code? I'd like to experiment with the changes I'm working on in #2289 There's many options all related to the Quantizer and sampling strategy passed to the encoder. |
Beta Was this translation helpful? Give feedback.
-
The code is part of a proprietary product under development. I am sorry I cannot share it now. I can provide some sample images for your testing. And the algorithm i used to generate the gifs are also very simple: I used three gifs and a couple of background pngs. The program randomly pick a background png, use it as a one frame gif, and then load all frames of the two gifs, then it uses the gif with most frames as base, repeat the png frame to fill a frame arrary of the base gif's frame size, and also repeat the other gif's frames to fill another array same size of the base gif's frames. Then overlay each frame of the three gifs' frames to make frames for the final gif. Then I used the default gif encoder of imagesharp and also libvips to generate output gifs. Unfortunately the background pngs were generated randomly. I cannot get the exact same ones. But I found two similar to the ones I used in the benchmark. Here are the images for your testing. |
Beta Was this translation helpful? Give feedback.
-
I have just done a simple benchmarking image frames concatenation to generate gif and gif output encoding between imagesharp against libvips
Libvips did very well in terms of output size and colors, while imagesharp did very well in speed.
Please find this thread in libvips repo.
libvips/libvips#3146
I understand imagesharp allows fine tuning of gif encoding and color sampling but I couldn't figure out how from documentation.
Is there some sample code that could lead to optimized output of size and color quality similar to libvips?
Beta Was this translation helpful? Give feedback.
All reactions