Dummie's problem...

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
JoeBarBoat

Dummie's problem...

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Dummie's problem...

Post by fmw42 »

convert backgroundimage \( logoimage -resize 50x50 \) -compose over -composite
JoeBarBoat

Re: Dummie's problem...

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Dummie's problem...

Post by fmw42 »

post your input images and an example of what you want for the output
JoeBarBoat

Re: Dummie's problem...

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Dummie's problem...

Post 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
Post Reply