strider1551 / djvubind

Combine multiple image files into an optimally compressed djvu file.
19 stars 6 forks source link

Stopping with ^C during a run can ruin an image #11

Closed ospalh closed 9 years ago

ospalh commented 9 years ago

I did start a djvubind run but noticed that something was wrong and hit Ctrl-C to stop it. This was during the phase were i got msg: NN: Bitonal image but with a depth greater than 1. Modifying image depth. messages for each image. (I guess this is #8, as tiffinfo says Bits/Sample: 1 and Samples/Pixel: 1.)

Then i got

err: [utils.execute()] Command exited with bad status.
     cmd = mogrify -colorspace gray -depth 1 "NN.tif"
     exit status = -2
wrn: Analysis failure on NN.tif.

And the image was broken. I couldn’t get any program to show it any more. Once it happened with the only copy of a file i got. (Well, i wanted to back it up. As a djvu…)

strider1551 commented 9 years ago

Essentially a duplicate of #12, I will comment there.

ospalh commented 9 years ago

Fixing #12 should fix this, i agree. I just thought that this could be fixed even when the mogrify stayed.