Skip to content

Serious problem with performance #25

Description

@PavelTurk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions