On Tue, 1 Sep 2009 05:54:56 -0700
[email protected] wrote:

| > I am looking to use ImageMagick with Gallery software.
| 
| Download the ImageMagick source and type
| 
|   tar xvfz ImageMagick-6.5.5-6.tar.gz
|   cd ImageMagick-6.5.5-6
|   ./configure --prefix=/somepath --disable-installed
|   make
|   make install
| 
| Where /somepath is typically a location in your user directory where the
| ImageMagick binaries and configuration files will reside.
| 
| Now set the MAGICK_HOME environment variable to /somepath and 
| include /somepath/bin in your PATH variable.  You may also need to set the
| LD_LIBRARY_PATH variable as well or build ImageMagick static.
| 
| See  http://www.imagemagick.org/script/advanced-unix-installation.php.
|

This will not help with gallery, but it is a useful technique with the
above.


I myself have two versions of ImageMagick installed. A system
installation (Q16) and a personal installation (HDRI Q16)

To make it easier to use the personal installation I wrote a script
called "hdri"  (call it whatever you like, "im" is a good name).  As
attachments are not allowed in this list I will include the script here.

=======8<--------CUT HERE----------axes/crowbars permitted---------------
#!/bin/sh
#
#   hdri imagemagick_command....
#
# Run the HDRI version of imagemagick (or other personal installed IM)
#
###
#
#  Anthony Thyssen      1 July 2009
#

# Where is the HDRI version of IM stored
export MAGICK_HOME=$HOME/apps/im_hdri

# Yes these are still necessary - especially is MAGICK_HOME has moved!
#
# The LD_LIBRARY_PATH is especially important to get the right library.
#
# However the PATH does not help IM find the "show:" delegate!
# That is the location of "display" is hardcoded in the show delegate!
# As such if the MAGICK_HOME directory is moved "show:" will fail
# unless I remove the path from the "delegate.xml" file and add the
# following environment variables.
#
export PATH="$MAGICK_HOME/bin:$PATH"
export LD_LIBRARY_PATH="$MAGICK_HOME/lib:$LD_LIBRARY_PATH"

# Execute the HDRI version of the command
exec "$@"

=======8<--------CUT HERE----------axes/crowbars permitted---------------


To use I prefix each IM command with hdri.  For example...

   hdro convert -version
   hdri convert rose: -fft +delete normalize -evaluate log 100000 show:

Will on my system use my personal HDRI version of ImageMagick to
generate a frequency spectrum of the built-in rose image.

This means I by prefixing the right script before the IM command I can
pick an choose which version of IM I want to use!

Now you can have as many different versions of ImageMagick as you want!


WARNING: If a ImageMagick is not found in this location the above will
silently fall back to the system version.  The '-version' test is
important to check you have the right version of IM.




  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
  Q: How many tech support people does it take to change a light bulb?
  A: We have an exact copy of the light bulb here and it seems to be
    working fine.  Can you tell me what kind of system you have?  Okay,
    just exactly how dark is it?  Okay.  There could be four or five
    things wrong.  Have you tried the light switch?
 -----------------------------------------------------------------------------
     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