Hugemann on  wrote...
|  > You can merge these command using...
|  >
|  >    convert -density 171 logo.eps photo.jpg +swap \
|  >            -compose bumpmap -gravity southeast -composite result.jpg
| 
| Smart, but difficult to understand...
| 
| I looked up the examples at your website using the swap command.
| (I found out that you can find this certain subject most easily by 
| googling for "ImageMagick examples swap". The first hit is the according 
| section of your website. The same holds for any other IM command.)
| 
| My problem with the swap command is that it is not clear what exactly is 
| swaped and where '+swap' has to be placed in the command line. There are 
| hardly any basic examples and the explanation of the swap command in the 
| IM help pages is even worse.
| 
| If we look at the above command line
| "convert -density 171 logo.eps"
| provides us with some intermediate image, say <II>.
| 
| "composite photo.jpg <II>  -compose bumpmap -gravity southeast result.jpg"
| Would give the final result, as well as
| "convert photo.jpg <II> \
|      -compose bumpmap -gravity southeast -composite result.jpg"
| would give.
| 
| So I guess that "swap" tells IM to generate an Intermediate result and 
| use it as the second input image for the next operation.
| 
| Again: Is there any detailed explanation of this command somewhere?
| 
| Wolfgang Hugemann
| 
| 
-swap is used just to swap the prositions of two images in memory.
+swap just swaps the last two images.
There are only two. at the point in the command line it is used.

I think you are not realizing that convert will generally just do things
in the sequence you gave on the command line.

EG: in the above the EPS is read in, then  photo.jpg,  these two are
then swapped, THEN the composation is performed.

Basically things are done in the order given, which means you have total
control of the order in which things are done, allowing you to do some
vary vary complex operations all with the one command, and avoid the
need for file I/O and temporary saves.

For details see
  IM Examples basics...
    http://www.cit.gu.edu.au/~anthony/graphics/imagick6/basics/#example

I recommend you go though it, and the rest of that page (and next
couple) before going to any further with IM.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
     I am the terror that flaps in the night... 
     Arr Heck...     Lets get dangerous!!!          -- Dark Wing Duck
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to