Re: Photofunia

Bob Friesenhahn <[email protected]> Wed, 5 Nov 2008 22:09:15 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.core
Message-ID <[email protected]>
On Thu, 6 Nov 2008, Nguyen Vu Hung wrote:
> Is there any way to get outputs like this using GM?

> http://www.photofunia.com/

> With GM, we can combine as many layers( images) as we can but
> image rotating, skewing, free transformation are not supported(?) in 
> GMso is it possible?

That is a really cool site.  The recipies for each scene are obviously 
based on a "canned" script and most of the work is done via 
composition.  The top scene image uses the alpha channel to expose the 
desired exposure holes.  The image you provide is resized, rotated as 
required, and composited on top of a blank canvas at the desired 
positions, and then the scene image is composited on top of that 
canvas.  GraphicsMagick provides quite a lot of composition 
capabilities.

GraphicsMagick's MVG vector drawing language supports rotating, 
skewing, and 2D affine transformations, as well as scaling and 
compositing.  There is also the MSL scripting language which hardly 
anyone has explored much yet.  Presumably most of this can be done in 
MSL.  A test of MSL composition just went into GM a couple of days 
ago.

At a more powerful level, one can use PerlMagick, TclMagick, or 
RMagick to do just about anything.

Cool effect of the day:

gm convert -background white infile.jpg -rotate 30 -wave 3 -rotate 30
   -wave 3 -rotate -60 -trim outfile.jpg

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/