Problem caused only when there is a space in label command
Posted: 2015-02-23T13:38:23-07:00
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
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