List Info

Thread: Re: Help with an older version of ImageMagick?




Re: Help with an older version of ImageMagick?
user name
2005-06-13 19:04:11
Eric Holt on  wrote...
| Hey folks, I'm new to this list, and am hoping someone can
give me a
| hand here...  Let me explain.
|
| I've written a web-based application for event
photographers who, on
| site of an event their photograph, can let their customers
view the
| images immediately afterwards on LCDs connected to thin
clients with a
| big 'ole Linux server in the background.  The images are
brought back,
| loaded into folders, and a script is ran against them. 
ImageMagick is
| called to make a tiny thumbnail and a medium thumbnail.
|
| All of that is great, and ImageMagick kicks a** compared
to the built-in
| GD libraries in PHP which I was originally using.
|
| My present situation is this... We're moving this same
web-based
| application to our website instead of using a third-party
host to help
| us sell the images online.  So, I need to watermark all
the images now,
| too, for the web, so that if they are lifted, we know they
are ours.
|
| So I have the watermarking code working, and it works
great.  Sorta.  It
| works great under IM6.  Im specifically using IM4.2.9, for
its speed.
| We are talking about, during a weekend, processing between
30,000 and
| 50,000 images ... and in my benchmarks, there is a very
noticable speed
| difference between IM4 and IM6.  So--I dont wish to
upgrade to IM6.
|
| I'm hoping that if I post the code I use to make the
watermark in IM6,
| someone on here can help me back-port that IM4.  Maybe
not... since IM4
| is so much older, I could be thrown out on my a**.  
|
| Here is the code.  This is all on one line, but its gonna
break in
| e-mail I'm sure... but rest assured it IS all on one line.
|
I don't know about IM v4  but I have water mark code for
v5.5.7 in
  http://www.cit.gu.edu.au/~anthony/gr
aphics/imagick5/annotating/#watermarking

The biggest problem you will probably face is argument
order.  You
may be forced to use a pipeline of IM operations rather than
a single
operation.

EG:   convert image.png  -operation  miff:- |
        convert - -operation  miff:- |
          composite -tile - image.png  miff:- |
            convert - -operation  miff:-    final_result.jpg

Horrible isn't it.  But that is life, and that was the big
change
implemented for IM v6.


  Anthony Thyssen ( System Programmer )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
   Like all bee keepers, Death wore a veil. It wasn't that
he had anything
   to sting, but sometimes a bee would get inside his skull
and buzz
   around, giving him a headache.          --- Terry
Pratchet - "Eric"
 -----------------------------------------------------------
------------------
     Anthony's Home is his Castle     http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )