Re: Apply tiled watermark to multiple images in a single process

Bob Friesenhahn <[email protected]> Thu, 11 Oct 2012 13:37:16 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.tools
Message-ID <[email protected]>
On Thu, 11 Oct 2012, Matt Hurne wrote:
>
> Is there a way to achieve this? I considered issuing one gm composite
> to watermark the original unscaled image and then a second command to
> end up with all the scaled versions (that's how I get the
> non-watermarked scaled images), but that will result in the watermark
> itself being scaled in addition to the image, which isn't what I want.
> My ultimate goal is to execute as few processes as possible; if it can
> be done with more than one process but less than one per scaled image,
> that will probably be sufficient for my needs.

Is the largest file size a reasonable known size?  If so, you can 
produce your tiled image in advance and composite on top of the images 
to be watermarked.  It is ok if the composite image is larger than the 
image to be composited on.  Any overlap will be trimmed off.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev