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?".
One suggestion is to reformat to put each parenthesis step on a separate line and put \ at the end of each line. That way, we might be able to understand better what you are doing.
Another help would be to put a numbered comment line above your whole command for each line of the reformatted command. That way we can understand better what each parenthesis section is supposed to be doing.
magick wrote: ↑2019-01-02T18:01:38-07:00
It looks like your command is improperly copy/pasted. Tossing the first part of your command, we get a valid ImageMagick script:
snibgo wrote: ↑2019-01-02T15:31:35-07:00
What you have shown isn't a valid IM command, unless you have an image file named "convert" (which would be a really bad idea).
I suspect you have somehow combined two commands into one.
I suggest you break your command into logical lines, to help anyone understand it.
( -size 950x950 -background "rgba(0,0,0,0)" -font /home/lex/share/Mo_De_Studio/audio_blog/OpenSans/OpenSans-ExtraBold.ttf -fill "#000000" caption:"$(cat ./temp.txt)" << This creates an image with a trasparent bg and uses the words from the text file temp.txt as the caption.
-gravity center -composite -gravity northwest -pointsize 50 -font /home/lex/share/python/ffmpegHelper/fonts/Typoster_ROCK_ON.otf -annotate +30+0 "1/232"> << This creates a text caption and places it on the top left side of the image.
-composite -gravity south -pointsize 40 -font /home/lex/share/python/ffmpegHelper/fonts/Typoster_ROCK_ON.otf -annotate +0+10 "Robert Greene, Joost Elffers" << This creates a text caption and places it at the bottom of the image
fmw42 wrote: ↑2019-01-02T16:10:57-07:00
One suggestion is to reformat to put each parenthesis step on a separate line and put \ at the end of each line. That way, we might be able to understand better what you are doing.
Another help would be to put a numbered comment line above your whole command for each line of the reformatted command. That way we can understand better what each parenthesis section is supposed to be doing.
Write all the comments. Then write your commands in sections with line break \ at the end in short sections that fit on the page so that one does not have to scroll left right. You can break a parenthesis section into multiple parts with \ if needed.
#comment for line 1
#comment for line 2
#comment for line 3
...
You can do one of at least two simple things to fix your command line.
1) Separate it into multiple commands and show us the commands that work
2) If you cannot get separate commands to work, then put +write tmpX.png statements (X=1,2...N) after each operator and see if it is producing the right image at each stage.
The command generate the image I want. It has an extra image that I do not want. This is what I want to resolve.
How do I do this? "+write tmpX.png statements"?
fmw42 wrote: ↑2019-01-03T17:58:39-07:00
You can do one of at least two simple things to fix your command line.
1) Separate it into multiple commands and show us the commands that work
2) If you cannot get separate commands to work, then put +write tmpX.png statements (X=1,2...N) after each operator and see if it is producing the right image at each stage.
This produces all the images along the way. All the command work. It produces this empty file still "-composite". I think it has to do with the > in the command here.
If I take out the > it fails. Nothing about it looks right being there.
fmw42 wrote: ↑2019-01-03T17:58:39-07:00
You can do one of at least two simple things to fix your command line.
1) Separate it into multiple commands and show us the commands that work
2) If you cannot get separate commands to work, then put +write tmpX.png statements (X=1,2...N) after each operator and see if it is producing the right image at each stage.