Extremely slow TIFF conversion (Ubuntu)
Posted: 2018-11-19T13:06:23-07:00
I am seeing general slowness with ImageMagick, sometimes a coredump, and seems to really only happen when dealing with TIFF files.
This occurs from the command-line and using PHP.
I read about a possible issue with OpenMP, and so compiled from source "--without-openmp".
So two questions:
This is a VM running on Azure.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Here's a command showing how long it's actually taking. The source TIFF is black and white, and 2mb in size.
Attempting to convert causes "Aborted (core dumped)"
Here's a command getting image height:
edit:
Version: ImageMagick 7.0.8-14 Q16 x86_64 2018-11-19 https://imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff wmf x xml zlib
This occurs from the command-line and using PHP.
I read about a possible issue with OpenMP, and so compiled from source "--without-openmp".
So two questions:
- how do I verify that OpenMP is "off"?
- General request for help troubleshooting.
This is a VM running on Azure.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Here's a command showing how long it's actually taking. The source TIFF is black and white, and 2mb in size.
Attempting to convert causes "Aborted (core dumped)"
Code: Select all
time /usr/local/bin/convert -monitor +dither -map pattern:gray50 339483.tiff out.jpg
load image[339483.tiff]: 19600 of 19601, 100% complete
load image[gray50]: 31 of 32, 100% complete
classify image colors[gray50]: 31 of 32, 100% complete
Aborted (core dumped)
real 12m25.320s
user 0m2.162s
sys 0m2.896s
Code: Select all
time /usr/local/bin/convert 339483.tiff -format "%w x %h" info:
22907 x 19601
real 0m15.548s
user 0m0.677s
sys 0m0.981s
edit:
Version: ImageMagick 7.0.8-14 Q16 x86_64 2018-11-19 https://imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff wmf x xml zlib