I do not get the same result

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
ohmega
Posts: 3
Joined: 2012-12-26T10:28:08-07:00
Authentication code: 6789
Location: México, D.F.

I do not get the same result

Post by ohmega »

Good afternoon, the problem I have is the following to form a composite image with a text, I get attached to a background different results. The command you use on both computers is the same but the text cut out (Figure 2) while in the imagen1 goes well.
The process for forming both is identical, the only difference version of ImageMagick.

I have two different versions of ImageMagick on the machine where it leaves misuse
ImageMagick 6.6.9-7 and in which is formed either ImageMagick 6.7.7-10

The problem will be given by the version?

I use Command
echo-e "The Russian manned spacecraft Soyuz TMA-07M successfully docked today at the International Space Station \ n (Reuters)" | convert-background "# 022"-fill "white"-geometry +50.00 400.00 +90.00-size x550.00-font "AvantGarde-Demi"-pointsize 30.00-interline-spacing 7 caption: @ - ciencia_tw.jpg + swap-composite-gravity NorthWest salida.png

Image1
http://s2.subirimagenes.com/imagen/prev ... pjason.png
Image2
http://s2.subirimagenes.com/imagen/prev ... rvidor.png
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: I do not get the same result

Post by fmw42 »

I do not visually see what is different. Please clarify further
convert-background "# 022"-fill "white"-geometry +50.00 400.00 +90.00-size x550.00-font "AvantGarde-Demi"-pointsize 30.00-interline-spacing 7 caption: @ - ciencia_tw.jpg + swap-composite-gravity NorthWest salida.png

You have numerous problems with the above command. There should not be space in various places and you have put things there that need spaces. For example don't put a space between # and 022. All commands that start with - must be separated from the previous characters with a space

I am not sure what the 400 is doing in the middle of the -geometry +50.00 400 +90.00. Perhaps you meant -geometry +50+90, which must not have spaces and not use fractions.

These may all be typing error is your report here but it would be best to show us your clean command.

Possibly

convert -background "#022" -fill "white" -geometry +50.00+90 -size x550.00 -font "AvantGarde-Demi" -pointsize 30 -interline-spacing 7 caption:@ - ciencia_tw.jpg + swap -composite -gravity NorthWest salida.png
ohmega
Posts: 3
Joined: 2012-12-26T10:28:08-07:00
Authentication code: 6789
Location: México, D.F.

Re: I do not get the same result

Post by ohmega »

Thanks for the reply, the spaces in my command not sure I have an error when I create the message, use the command as it is this:

echo -e "La nave tripulada rusa Soyuz TMA-07M se acopló hoy con éxito a la Estación Espacial Internacional\n(EFE)"|
convert -background "#022" -fill "white" -geometry +50.00+90.00 -size 400.00x550.00 -font "AvantGarde-Demi" -pointsize 30.00 -interline-spacing 7 caption:@- ciencia_tw.jpg +swap -gravity NorthWest -composite salida.png

Now the difference between Image 1 and Image 2, is given in the third line "Estacion Espacial Internacional" there goes the full text in Image1, but in Image2 only comes "Estacion" and it looks as if the text stick out the area where the text should be, as it cuts.

Now if I use the command you gave me shows me different errors.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: I do not get the same result

Post by fmw42 »

All I can say is that caption: has had numerous bug fixes and different versions of IM behave differently. See all the changes to caption: on the changelog at http://www.imagemagick.org/script/changelog.php

I downloaded your font, but I do not have your background image. Nevertheless, the following part of your command:


echo -e "La nave tripulada rusa Soyuz TMA-07M se acopló hoy con éxito a la Estación Espacial Internacional\n(EFE)"| \
convert -background "#022" -fill "white" -geometry +50+90 -size 400x550 -font "/Library/Fonts/Avant Garde Demi.ttf" \
-pointsize 30 -interline-spacing 7 caption:@- 1test.png

works just fine for me under IM 6.8.1.3 Q16 Mac OSX Snow Leopard

So you will likely need to upgrade your versions of IM to the latest one you can.
ohmega
Posts: 3
Joined: 2012-12-26T10:28:08-07:00
Authentication code: 6789
Location: México, D.F.

Re: I do not get the same result

Post by ohmega »

Ok wanted to rule out any other possibility, but surely is the version, thank you very much for your support.
Post Reply