Convert very slow when using TGA:- (ImageMagick 6.9.1-1)
Posted: 2015-04-11T04:01:30-07:00
Using TGA:- with convert is really slow compared to saving the output as a TGA file:
$ time convert.exe test.png test.tga
0.00s user 0.00s system 0% cpu 2.708 total
$ convert.exe test.png TGA:- > test.tga
0.00s user 0.00s system 0% cpu 49.859 total
Both of these commands produces identical output file but the second one (and the one I'm needing when piping image data to an another program) takes ~18x more time and it maxes out one CPU core for the whole ~49.9 seconds. I ran these tests under Cygwin but the same thing happens when running via Windows command prompt. Input file was a random 4000x4000 ~6.6 MB PNG file but I have also tested this with several other files having the same kind of of results.
$ convert.exe -version
Version: ImageMagick 6.9.1-1 Q16 x64 2015-03-20 (ImageMagick-6.9.1-1-Q16-x64-static.exe)
System specs: Windows 7 SP1, i7 4790K, 16GB, SSD
Any help to solve this would be appreciated. Thank you.
$ time convert.exe test.png test.tga
0.00s user 0.00s system 0% cpu 2.708 total
$ convert.exe test.png TGA:- > test.tga
0.00s user 0.00s system 0% cpu 49.859 total
Both of these commands produces identical output file but the second one (and the one I'm needing when piping image data to an another program) takes ~18x more time and it maxes out one CPU core for the whole ~49.9 seconds. I ran these tests under Cygwin but the same thing happens when running via Windows command prompt. Input file was a random 4000x4000 ~6.6 MB PNG file but I have also tested this with several other files having the same kind of of results.
$ convert.exe -version
Version: ImageMagick 6.9.1-1 Q16 x64 2015-03-20 (ImageMagick-6.9.1-1-Q16-x64-static.exe)
System specs: Windows 7 SP1, i7 4790K, 16GB, SSD
Any help to solve this would be appreciated. Thank you.