Resize to large destination slows down at 33%
Posted: 2019-05-28T08:41:47-07:00
I'm processing some astronomical images of reasonable size, and in my experience, the -resize operation (or equivalents) slows down greatly when it hits 33%. Running from the command line with the -monitor option, up until that point it's just whizzing along - then it all but stops, dropping to ~1 second per scanline (which equates to many hours per image). Here's a typical command:
The larger the destination, the more pronounced the effect, but it still happens with sizes much smaller than this. Always happens right at 33%, though, regardless of file size - which tells me that it's not hitting a physical limitation (like RAM). And watching my system performance monitor, it doesn't seem to be bound by CPU, RAM, or disk access.
It's happening with convert, mogrify, and other variants I've tried that do resizing.
Any thoughts? Am I running into a ceiling somewhere that I can tweak with a setting? Does this look like a bug? Some other explanation?
FWIW, the image from the command above is available at https://lunescope.app/app_server/map/Lunar_26k.jpg
Code: Select all
D:\temp> magick -version
Version: ImageMagick 7.0.8-46 Q8 x64 2019-05-19 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP(2.0)
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
D:\temp> magick mogrify -monitor -format mpc -resize 65536x32768! Lunar_26k.jpg
load image[Lunar_26k.jpg]: 12999 of 13000, 100% complete
resize image[Lunar_26k.mpc]: 32750 of 98304, 33% complete
It's happening with convert, mogrify, and other variants I've tried that do resizing.
Any thoughts? Am I running into a ceiling somewhere that I can tweak with a setting? Does this look like a bug? Some other explanation?
FWIW, the image from the command above is available at https://lunescope.app/app_server/map/Lunar_26k.jpg