Strange "resize" - bug
Posted: 2011-04-12T02:08:37-07:00
Initialy I was using the 6.6.9-1 HDRI manually compiled version then I noticed a new version ( 6.6.9-4) compiled with VS 2005 ...
If I call : convert -version I get this :
Version: ImageMagick 6.6.9-4 2011-04-01 Q64 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: HDRI
( I suppose I can say it compiled OK... )
If try something like :
convert dsc1860b.jpg -resize 200%x200% dsc1860z.jpg
I get a 20Kb jpg ...
The identify command in the resulting image gives me :
D:\ImageMagick-source\VisualMagick\bin>identify dsc1860z.jpg
dsc1860z.jpg JPEG 2576x1978 2576x1978+0+0 8-bit PseudoClass 256c 20.1KB 0.000u 0:00.031
If I try to open the original image I get :
D:\ImageMagick-source\VisualMagick\bin>identify dsc1860b.jpg
dsc1860b.jpg JPEG 1288x989 1288x989+0+0 8-bit PseudoClass 256c 176KB 0.047u 0:00.077
So the resize operation did calculated the correct dimensions ...
But where is the image per se ?
Sometimes it freezes ( at least it appears that the convert process is frozen ...) with this picture
CIMG5515.JPG JPEG 2560x1920 2560x1920+0+0 8-bit DirectClass 1.796MB 0.000u 0:00.031
Same behaviour with -adaptive-resize 200% ...
[Update] With this image it took about 3 hours to resize
D:\ImageMagick-source\VisualMagick\bin>convert oldf069.jpg -resize 200% o069.jpg
D:\ImageMagick-source\VisualMagick\bin>identify oldf069.jpg
oldf069.jpg JPEG 2682x1851 2682x1851+0+0 8-bit DirectClass 917KB 0.266u 0:00.296
[/update]
[update 2]
Using : convert -verbose -monitor I get to section that
...
Load image[sdim0207.ppm]: 1791 of 1792, 100% complete
sdim0207.ppm PPM 2688x1792 2688x1792+0+0 16-bit DirectClass 28.9MB 0.844u 0:03.359
Resize image[sdim0207.ppm]: 8 of 8960, 00% complete
...
The first part is fast ... about 1 minute ...
But the second part takes about half minute between each number ( last 8960 ? ) ...
What could be wrong with the "Resize" operation to take so much time ?
[/update 2]
If I call : convert -version I get this :
Version: ImageMagick 6.6.9-4 2011-04-01 Q64 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: HDRI
( I suppose I can say it compiled OK... )
If try something like :
convert dsc1860b.jpg -resize 200%x200% dsc1860z.jpg
I get a 20Kb jpg ...
The identify command in the resulting image gives me :
D:\ImageMagick-source\VisualMagick\bin>identify dsc1860z.jpg
dsc1860z.jpg JPEG 2576x1978 2576x1978+0+0 8-bit PseudoClass 256c 20.1KB 0.000u 0:00.031
If I try to open the original image I get :
D:\ImageMagick-source\VisualMagick\bin>identify dsc1860b.jpg
dsc1860b.jpg JPEG 1288x989 1288x989+0+0 8-bit PseudoClass 256c 176KB 0.047u 0:00.077
So the resize operation did calculated the correct dimensions ...
But where is the image per se ?
Sometimes it freezes ( at least it appears that the convert process is frozen ...) with this picture
CIMG5515.JPG JPEG 2560x1920 2560x1920+0+0 8-bit DirectClass 1.796MB 0.000u 0:00.031
Same behaviour with -adaptive-resize 200% ...
[Update] With this image it took about 3 hours to resize
D:\ImageMagick-source\VisualMagick\bin>convert oldf069.jpg -resize 200% o069.jpg
D:\ImageMagick-source\VisualMagick\bin>identify oldf069.jpg
oldf069.jpg JPEG 2682x1851 2682x1851+0+0 8-bit DirectClass 917KB 0.266u 0:00.296
[/update]
[update 2]
Using : convert -verbose -monitor I get to section that
...
Load image[sdim0207.ppm]: 1791 of 1792, 100% complete
sdim0207.ppm PPM 2688x1792 2688x1792+0+0 16-bit DirectClass 28.9MB 0.844u 0:03.359
Resize image[sdim0207.ppm]: 8 of 8960, 00% complete
...
The first part is fast ... about 1 minute ...
But the second part takes about half minute between each number ( last 8960 ? ) ...
What could be wrong with the "Resize" operation to take so much time ?
[/update 2]