Hi List,

I'm creating a small script which will make use of the command line tool
convert.exe and I have a few questions:

1. I had installed the windows-dll version of ImageMagick and when I
distributed convert.exe with my program I got all sorts of error messages
about missing dll files. After trying (and failing) to build my own
version from source, it seems that grabing the convert.exe file from the
windows-static version seemed to do the trick. Is it correct that the
windows-static version of convert.exe contains all the necessary functions
to work as a stand-alone command line utility? Is this also true for
composite.exe and montage.exe?

2. Is it alright to distribute convert.exe with my program? Are there any
requirements/obligations? Remarkably, I found the answer to this one
myself: "The license allows you to use ImageMagick software in packages or
distributions that you create. The license requires you to include a copy
of the license in any redistribution you may make that includes
ImageMagick software and provide clear attribution to ImageMagick Studio
LLC for any distributions that include ImageMagick software.". That's
pretty sweet.

3. My script needs to place several images of the same size right on top
of each other. The picture at the bottom is a .jpg, then there are
multiple .png and the final image should exported as a .bmp. Originally I
was making several calls to convert.exe and composite.exe and for each
call I was saving to a temporary .png file. This took approx. 30
seconds(!). I found out recently that I could do all the commands in one
shot using the -composite switch of convert.exe. Instead of using 30
seconds, it's now down to approx 3 seconds which seems more reasonable.
This is what I have so far:
"convert -size 1680x1050 xc:none bg.jpg -compose src-over -composite
image1.png -composite image2.png -composite image3.png -composite
image4.png -composite image5.png -composite newWallpaper.bmp"

The resulting image seems to be somewhat corrupt and not all image viewers
are capable of reading the file properly. I think it has something to do
with the "-compose src-over" part. I don't really understand how this
works and only arrived at using it by trial-and-error. Should it be used
only once or together with each -composite? Is there a failsafe way to
create the .BMP image?

4. I understand from the examples that the command xc:none means there is
no background colour. The command above seems to fail if I ommit xc:, does
it have to be there?

5. Is there anything else I can do to speed up these commands?

P.S. For the record this is my first post...


Thanks in advance.
Best regards,
Erik

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to