Page 1 of 1

Problem caused only when there is a space in label command

Posted: 2015-02-23T13:38:23-07:00
by xahmer
This error started appearing only after i upgraded from version 6.7** to latest 6.9**, and doesnt happen if i donnot use spaces in string after label:

composite: unexpected end-of-file "/tmp/magick-22049eGj48YE9TTDK': No such file or directory @ error/miff.c/ReadMIFFImage/1607.

This is the command i am using:

"convert -quality 100 -background none -sparse-color Barycentric '0,0 White 0,%[fx:h-10] "+background+"' -stroke black -strokewidth 1.2 -alpha flatten -density 300 -font courier-bold -pointsize 8 label:'"+line+"' -trim \( +clone -background black -shadow 1000x5+4+4 \) +swap -background '"+background+"' -density 300 -layers merge +repage miff:- |composite -gravity "+random.choice(gravity)+" -geometry +0+0 - "+output_filename+" "+output_filename
following varaibles in above string:
background=color hex
line=string including spaces
outputfilename=path to file
random.choice(gravitiy)=random choice from array containing gravities

Re: Problem caused only when there is a space in label command

Posted: 2015-02-23T13:45:47-07:00
by dlemstra
What is the type of the file you are reading and what is your output format?

Re: Problem caused only when there is a space in label command

Posted: 2015-02-23T14:01:17-07:00
by snibgo
xahmer wrote:convert -quality 100 -background none -sparse-color Barycentric '0,0 White 0,%[fx:h-10] "+background+"' -stroke black ...
It is best to fill in the variables, so people can try to replicate the problem with the same command.

That is a very strange command syntax. You apply sparse colours before the image has been defined or the dimensions are known.