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
Problem caused only when there is a space in label command
Re: Problem caused only when there is a space in label command
What is the type of the file you are reading and what is your output format?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Problem caused only when there is a space in label command
It is best to fill in the variables, so people can try to replicate the problem with the same command.xahmer wrote:convert -quality 100 -background none -sparse-color Barycentric '0,0 White 0,%[fx:h-10] "+background+"' -stroke black ...
That is a very strange command syntax. You apply sparse colours before the image has been defined or the dimensions are known.
snibgo's IM pages: im.snibgo.com