-size makes the command load for minutes

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
utbl
Posts: 18
Joined: 2016-09-22T01:53:33-07:00
Authentication code: 1151

-size makes the command load for minutes

Post by utbl »

The following commands works fine and creates the image instantly

Code: Select all

convert -background none -bordercolor none -gravity west -fill white img1.png -font "Helvetica-LT-55-Roman" -pointsize 14 label:"01" +swap -append label:"Test 1" -border 0x2 -append -write miff:- +delete img2.png label:"02" +swap -append label:"Test 2" -border 0x2 -append -write miff:- +delete img3.png label:"03" +swap -append label:"Test 3" -border 0x2 -append -write miff:- +delete transp.png label:"" +swap -append label:"" -border 0x2 -append -write miff:- +delete img4.png label:"04" +swap -append label:"Kapitel 4" -border 0x2 -append -write miff:- +delete img5.png label:"05" +swap -append label:"Test 5" -border 0x2 -append miff:- | montage -set label "" miff:- -tile 3x2 -geometry +28+4 -background none result.png
but if I add `-size 0x15` it keeps loading for minutes, why is that happening?

Code: Select all

convert -background none -bordercolor none -gravity west -fill white -size 0x15 img1.png -font "Helvetica-LT-55-Roman" -pointsize 14 label:"01" +swap -append label:"Test 1" -border 0x2 -append -write miff:- +delete img2.png label:"02" +swap -append label:"Test 2" -border 0x2 -append -write miff:- +delete img3.png label:"03" +swap -append label:"Test 3" -border 0x2 -append -write miff:- +delete transp.png label:"" +swap -append label:"" -border 0x2 -append -write miff:- +delete img4.png label:"04" +swap -append label:"Kapitel 4" -border 0x2 -append -write miff:- +delete img5.png label:"05" +swap -append label:"Test 5" -border 0x2 -append miff:- | montage -set label "" miff:- -tile 3x2 -geometry +28+4 -background none result.png
My OS: Windows 10
My Imagemagickversion: ImageMagick 6.9.3-7 Q16 x64 2016-03-06 http://www.imagemagick.org

I tried the commands on the default windows console(cmd)
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: -size makes the command load for minutes

Post by Bonzo »

What are you expecting -size to do. If an option is used in the wrong place or is unexpected it can slow the code down.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -size makes the command load for minutes

Post by fmw42 »

Code: Select all

-size 0x15
That is an invalid size. Zero cannot be use for width. That image would have no size. You must have at least 1 for the width.
Post Reply