I'm co-maintaining this Drupal module https://www.drupal.org/project/batch_resize_image and I'm having trouble getting all of our 10 000+ images resized. In the background it's using the ImageMagic module https://www.drupal.org/project/imagemagick
At some point the script will just hang. I think I've now come to conclusion that it fails with really high resolution images like this:
Code: Select all
identify das_str_2.png
das_str_2.png PNG 16535x8184 16535x8184+0+0 8-bit DirectClass 4.666MB 0.000u 0:00.000
Code: Select all
time convert das_str_2.png -resize 5000x2475! -quality 75 das_str_2-2.png
real 3m40.560s
user 0m20.804s
sys 0m1.184s
Code: Select all
convert --version
Version: ImageMagick 6.7.8-9 2016-06-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
This is the image I'm talking about https://www.upload.ee/image/8493734/das_str_2.png
I'm running out of ideas. How should I solve this? Is it problem from php side if the convert runs ok on bash?
Thank you!
edit:
I've made error in my calculation as the image is converted on a network drive mount.
Code: Select all
time convert das_str_2.png -resize 5000x2475! -quality 75 das_str_2-2.png
real 5m3.598s
user 0m21.407s
sys 0m1.307s