[SOLVED!] Merge Images w/ different sizes (Update code from IMagik 4.15 to 6.9.1)

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
Prags
Posts: 4
Joined: 2015-05-20T04:18:06-07:00
Authentication code: 6789

[SOLVED!] Merge Images w/ different sizes (Update code from IMagik 4.15 to 6.9.1)

Post by Prags »

Hi everyone =] (look, my enlgish isn't good, I'm so sorry :P)

I need help to update a very old code version for compatibility to new IMagik version. Who did this code, did a looooooooong time ago. I wanna update it but I'm just a "curious" man, not a programmer :P
What the code do is: merge transp images with different sizes at specific positions (x,y)

THE CODE:

combine -geometry 1920x1080!+407+145 -compose over -quality 100 fundo.png cidade\araraquara.png temp.png
combine -geometry 1920x1080!+292+855 -compose over -quality 100 temp.png dia\quinta.png temp.png
combine -geometry 1920x1080!+286+441 -compose over -quality 100 temp.png icone\2.png temp.png
combine -geometry 1920x1080!+270+288 -compose over -quality 100 temp.png maxima\29.png temp.png
combine -geometry 1920x1080!+410+309 -compose over -quality 100 temp.png minima\16.png temp.png
combine -geometry 1920x1080!+290+701 -compose over -quality 100 temp.png ur\52.png temp.png
combine -geometry 1920x1080!+307+761 -compose over -quality 100 temp.png mm\0.png temp.png

copy temp.png pronto\hdv\com_fundo\araraquara.png
del temp.png


What I have to change? I've tried some thing but didn't worked.
Last edited by Prags on 2015-05-20T06:23:11-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Merge Images w/ different sizes (Update code from IMagik 4.15 to 6.9.1)

Post by Bonzo »

Try this and see if it works:

Code: Select all

convert fundo.png cidade\araraquara.png -geometry 1920x1080!+407+145 -composite -compose over -quality 100 temp.png
Prags
Posts: 4
Joined: 2015-05-20T04:18:06-07:00
Authentication code: 6789

Re: Merge Images w/ different sizes (Update code from IMagik 4.15 to 6.9.1)

Post by Prags »

Testing!
Prags
Posts: 4
Joined: 2015-05-20T04:18:06-07:00
Authentication code: 6789

Re: Merge Images w/ different sizes (Update code from IMagik 4.15 to 6.9.1)

Post by Prags »

I did this:
convert fundo.png cidade\araraquara.png -geometry 1920x1080!+407+145 -composite -compose over -quality 100 temp.png
convert temp.png dia\quinta.png -geometry 1920x1080!+292+855 -composite -compose over -quality 100 temp.png
convert temp.png icone\2.png -geometry 1920x1080!+286+441 -composite -compose over -quality 100 temp.png
convert temp.png maxima\29.png -geometry 1920x1080!+270+288 -composite -compose over -quality 100 temp.png
convert temp.png minima\16.png -geometry 1920x1080!+410+309 -composite -compose over -quality 100 temp.png
convert temp.png ur\52.png -geometry 1920x1080!+290+701 -composite -compose over -quality 100 temp.png
convert temp.png temp.png mm\0.png -geometry 1920x1080!+307+761 -composite -compose over -quality 100 temp.png



copy temp.png pronto\hdv\com_fundo\araraquara.png
del temp.png


Result:
Image


What I need:
Image
Prags
Posts: 4
Joined: 2015-05-20T04:18:06-07:00
Authentication code: 6789

Re: Merge Images w/ different sizes (Update code from IMagik 4.15 to 6.9.1)

Post by Prags »

Worked!
I deleted the 1920x1080! part.

Thnx man!
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: [SOLVED!] Merge Images w/ different sizes (Update code from IMagik 4.15 to 6.9.1)

Post by Bonzo »

Glad you sorted it out.
Post Reply