Fred's ImageMagick Scripts



    Licensing:

    Copyright © Fred Weinhaus

    My scripts are available free of charge for non-commercial use, ONLY.

    For use of my scripts in commercial (for-profit) environments or non-free applications, please contact me (Fred Weinhaus) for licensing arrangements. My email address is fmw at alink dot net.

    If you: 1) redistribute, 2) incorporate any of these scripts into other free applications or 3) reprogram them in another scripting language, then you must contact me for permission, especially if the result might be used in a commercial or for-profit environment.

    Usage, whether stated or not in the script, is restricted to the above licensing arrangements. It is also subject, in a subordinate manner, to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php

ORTONEFFECT


Applies an Orton (sandwich) effect to an image.

Download Script

last modified: April 25, 2015



USAGE: ortoneffect [-b blur] [-o opacity] infile outfile
USAGE: ortoneffect [-h or -help]

-b ... blur ...... blur amount; float>=0; default=10
-o ... opacity ... opacity; 0<=integer<=100; default=100

PURPOSE: To apply an Orton effect to an image.

DESCRIPTION: ORTONEFFECT applies an Orton (sandwich) effect to an image.

ARGUMENTS:

-b blur ... BLUR is the amount of blur. Values are floats>=0. The default=10.

-o opacity ... OPACITY percent. Values are integers betwee 0 and 100. The default=100.

REFERENCES:
http://www.bernskiold.com/2011/06/06/applying-orton-effect-photos/
http://peterh111.wordpress.com/2010/12/11/the-easy-guide-to-creating-the-orton-effect/
http://pcin.net/update/2006/11/01/the-orton-effect-digital-photography-tip-of-the-week/

CAVEAT: No guarantee that this script will work on all platforms, nor that trapping of inconsistent parameters is complete and foolproof. Use At Your Own Risk.


EXAMPLES


Original Image
(image/)

 

Arguments:
-b 10 -o 100

 

Arguments:
-b 10 -o 70


Original Image
(image)

 

Arguments:
-b 10 -o 100

 

Arguments:
-b 10 -o 70


Original Image
(image)

 

Arguments:
-b 5 -o 100

 

Arguments:
-b 5 -o 70


Original
(image)

Arguments:
-b 5 -o 100



Original
(image)

Arguments:
-b 10 -o 100

Arguments:
-b 10 -o 70



What the script does is as follows:

  • Applies a screen composite of the image with itself
  • Blurs a copy of the screen composite image and adjusts its opacity
  • Deletes the original and applies a multiply composite of the
    screen and blurred screen composite images

This is equivalent to the following IM commands.

  • convert $infile \ \( -clone 0 -clone 0 -compose screen -composite -alpha set \) \
    \( -clone 1 -blur 0x$blur -alpha set -channel a -evaluate set $opacity% +channel \) \
    -delete 0 -compose multiply -composite \
    $outfile