Broken results on running a batch convert process
Posted: 2014-12-05T07:21:13-07:00
Hi.
Basically I've to convert tifs to pngs. The png's are getting clipped and resized, so this is my command:
This works perfectly on running it with a loop with 1 file or 10 files or even 100 files - every result was perfect.
So I've runned this batch-process on 14000 files overnight and the first 100 results looked well so I left it running.
The result of the ~170th file was broken, and nearly every image I found after the "first good files" was also broken... (files at the end of the post)
To be sure I've runned this process a second time and the result was the same.
The output of the convert command is fine (only some notices like 'wrong data type 7 for "RichTIFFIPTC"; tag ignored')
Sometimes (at most at the end of the process at file 12000/13000) this error shows up:
The batch process works for each file and waits till the convert command exits, no multithreading/multiprocessing.
Input File:
Broken Image example: http://gab3.de/share/new/Orangina.tif
Basically I've to convert tifs to pngs. The png's are getting clipped and resized, so this is my command:
Code: Select all
/usr/bin/convert
'src.tif'
-limit memory 0
-limit map 0
-limit file 0
-alpha transparent
-clip
-alpha opaque
-resize 800x600
'end.png'
2>&1
So I've runned this batch-process on 14000 files overnight and the first 100 results looked well so I left it running.
The result of the ~170th file was broken, and nearly every image I found after the "first good files" was also broken... (files at the end of the post)
To be sure I've runned this process a second time and the result was the same.
The output of the convert command is fine (only some notices like 'wrong data type 7 for "RichTIFFIPTC"; tag ignored')
Sometimes (at most at the end of the process at file 12000/13000) this error shows up:
Code: Select all
convert: unable to write blob `/tmp/magick-xLs2M3Ga': No space left on device @ error/blob.c/BlobToFile/290.
convert: unable to extend cache `<input_file>': No space left on device @ error/cache.c/OpenPixelCache/4099.
convert: unable to write blob `/tmp/magick-xLs2M3Ga': No space left on device @ error/blob.c/BlobToFile/290.
convert: unable to extend cache `<input_file>': No space left on device @ error/cache.c/OpenPixelCache/4099.
convert: unable to write blob `/tmp/magick-xLs2M3Ga': No space left on device @ error/blob.c/BlobToFile/290.
Input File:
Broken Image example: http://gab3.de/share/new/Orangina.tif