composite images as photo album

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
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

composite images as photo album

Post by myspacee »

Hello to all,
10 days ago born my son :). Now i'm creating an online album for friends and family.

Working on that start a script that, from given directory, compose automatically a photo album.

Find a nice effect that i want to reproduce using IM. post link for final goal
Image

Reading guide find some nice info :

- rotate my picture

Code: Select all

convert my_picture.jpg  -transparent white -rotate  13  rotate_13.gif
-composite with 'blank page'

Code: Select all

cconvert page_blank.jpg  rotate_31.gif -background none  -fill white -geometry +25+105 -composite  final.jpg
Have some problem composing images cause can't handle transparent color [white]

Please can you give me some help on syntax ?

thank you for reding,

m.
Last edited by myspacee on 2010-01-25T02:29:31-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: composite images as photo album

Post by fmw42 »

convert my_picture.jpg -transparent white -rotate 13 rotate_13.gif
-transparent white will make any white into transparent. Is that what you want or do you want the rotation background to be transparent. If the latter, then

convert my_picture.jpg -background none -rotate 13 rotate_13.gif

cconvert page_blank.jpg rotate_31.gif -background none -fill white -geometry +25+105 -composite final.jpg
what are you trying to do here, especially with the -fill white. It does nothing in this case. Also you have cconvert and not convert.

try

convert my_picture.jpg -background none -rotate 13 rotate_13.gif
convert page_blank.jpg rotate_31.gif -geometry +25+105 -composite final.jpg

in one command

convert page_blank.jpg \( my_picture.jpg -background none -rotate 13 \) -geometry +25+105 -composite final.jpg

see http://www.imagemagick.org/Usage/basics/#parenthesis
Last edited by fmw42 on 2010-01-24T15:51:15-07:00, edited 2 times in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: composite images as photo album

Post by Bonzo »

Fred posted just before me :(

I agree with him and I would also use png rather than gif for a better quality image on the rotate.

When you say you are creating an online photo album is this modifying the photos etc. on line or doing all the work offline then uploading it ?
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Re: composite images as photo album

Post by myspacee »

thank you to correct me,
revert all to png for quality, my exe call cconvert.exe to avoid same name in micososft convert.exe (partition tool)

I use -trasparent white, to emulate scotch effect, but after few test i use -dissolve.

Image

Code: Select all

cconvert my_picture.jpg -background none -rotate 13 rotate_13.png
cconvert page_blank.jpg rotate_13.png -geometry +25+105 -composite no_scotch.png
composite -dissolve 60  -geometry +35+85 Tape42_t.png  no_scotch.png -matte   final.png
Yes Bonzo, is an offline tool with FTP capabilities, that make works and then upload when finish.

For now thank you,

m.
Post Reply