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 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?
The text was updated successfully, but these errors were encountered:
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:
Could anyone say how to fix this problem?
The text was updated successfully, but these errors were encountered: