Page 1 of 1

Dummie's problem...

Posted: 2009-07-08T10:35:44-07:00
by JoeBarBoat
Hello
this is my first try with ImageMagick

I'm trying to past a logo on images
I'm using Webdna so it is a shell request with only spaces between commands
I'm converting Very large images to medium size and then to thumbnails.
First the large files are resised to 1000px Widh, then I do the thumbnails and after I wish to past the logo.
The difficult part is to change the logo size, I want to past the logo on different image size, so I wish to change the logo size deppending on the image size (Setting the size using Webdna is easy)
So I have been trying many things and thought that this would be the right code, but it isn't...
Composite LogoSV_base.png -geometry 50x50 -gravity NorthWest -append Sourcefoto.jpg myfinalephoto.jpg
How can I set ONLY the size of the first file?

Thanks in advance for your help
Lawrence

Re: Dummie's problem...

Posted: 2009-07-08T12:21:36-07:00
by fmw42
convert backgroundimage \( logoimage -resize 50x50 \) -compose over -composite

Re: Dummie's problem...

Posted: 2009-07-10T07:03:16-07:00
by JoeBarBoat
Thanks for the answer
So I have tried :
/opt/local/bin/convert MYbackgroundimage.jpg \( Logo.png -resize 50x50 \) -compose myfinalephoto.jpg
and it doesn't work... any othe ridea, or where am I wrong

Re: Dummie's problem...

Posted: 2009-07-10T09:52:21-07:00
by fmw42
post your input images and an example of what you want for the output

Re: Dummie's problem...

Posted: 2009-07-10T10:15:15-07:00
by JoeBarBoat
Here is the image,
http://www.sensationvoile.fr/Galerie/F_Nor071.jpg
The logo http://www.sensationvoile.fr/Galerie/LogoSV_base.png
The result wish to have http://www.sensationvoile.fr/Galerie/F_Nor071+logo.jpg

I realy don't understand...
I tried
[shell]/opt/local/bin/convert -size 100x100 xc:skyblue composite.gif[!]
[/!] composite -geometry +5+10 balloon.gif composite.gif composite.gif[!]
[/!] composite -geometry +35+30 medical.gif composite.gif composite.gif[!]
[/!] composite -geometry +62+50 present.gif composite.gif composite.gif[!]
[/!] composite -geometry +10+55 shading.gif composite.gif composite.gif[/shell]
Which is an exemple from the website, and it send a very strange result back...
http://www.sensationvoile.fr/Galerie/1.tpl

Re: Dummie's problem...

Posted: 2009-07-10T13:20:00-07:00
by fmw42
works fine for me:

convert F_Nor071.jpg \( LogoSV_base.png -resize 50% \) -gravity northwest -compose over -composite F_Nor071_logo_50pct.jpg

Image

What version of IM are you using? If old, upgrade