google / guetzli

Perceptual JPEG encoder
Apache License 2.0
12.9k stars 976 forks source link

General Failure (Endless Loop) When Encoding a Certain JPG #204

Open ghost opened 7 years ago

ghost commented 7 years ago

I have observed a timing problem when a batch of images didn't convert because 1 single file didn't succeed. I waited hours.

Version: current, compiled from git clone.

img_20140322_170700

romainmenke commented 7 years ago

How did you batch them? Maybe the method used to batch doesn't handle errors correctly.

ghost commented 7 years ago

Apparently, guetzli takes up to 20 hours to convert a single image, on my machine. That means I can prepare for 33 years conversion time of my private photographies only. Sorry, but if I convert it w/ ImageMagick, it does so in a few minutes, over all 14,500 images.

khavishbhundoo commented 7 years ago

@Yanestra guetzli shouldn't be used to batch process images.This is due to high resource requirements

Note: Guetzli uses a large amount of memory. You should provide 300MB of memory per 1MPix of the input image.

Note: Guetzli uses a significant amount of CPU time. You should count on using about 1 minute of CPU per 1 MPix of input image.