Skip to content
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

Serious problem with performance #25

Open
PavelTurk opened this issue Nov 16, 2024 · 0 comments
Open

Serious problem with performance #25

PavelTurk opened this issue Nov 16, 2024 · 0 comments

Comments

@PavelTurk
Copy link

I am testing converting images to GIF. I have 50 images (5 seconds with 10 fps) and every image size is 1000x750. Adding all images to encoder takes me about two minutes. This is my code:

var gifEncoder = new GifEncoder(outputStream, (int) width, (int) height, 0);
var imageOption = new ImageOptions();
imageOption.setDelay(delay, TimeUnit.MILLISECONDS);
for (var image : images) {
   var rgb = ....
   gifEncoder.addImage(rgb, imageOption);//this line code is very slow
}

Could anyone say how to fix this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant