Fred's ImageMagick Scripts



    Licensing:

    Copyright © Fred Weinhaus

    My scripts are available free of charge for non-commercial (non-profit) 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

    Please read the Pointers For Use on my home page to properly install and customize my scripts.

VINTAGE1


Applies a a classic vintage effect to an image.

Download Script

last modified: December 16, 2018



USAGE: vintage1 [-b brightness] [-c contrast] [-s vignetteshape] [-r vignetterounding] [-l vignettelighten] [-N noiseamount] [-L verticallines] [-B verticalbands] [-S backgroundmix] [-T bordertype] [-W borderwidth] [ -R borderrounding] [-C bordercolor] infile [backgroundfile] outfile

USAGE: vintage1 [-h or -help]

-b ... brightness ......... vintage brightness; -100<=integer<=100;
........................... default=10
-c ... contrast ........... vintage contrast; -100<=integer<=100;
........................... default=-20
-s ... vignetteshape ...... vignette shape; choices are: roundrectangle,
........................... horizontal, vertical or none;
........................... default=roundrectangle
-r ... vignetterounding ... vignette rounding percent for roundrectangle
........................... only; 0<=integer<=50; default=50 for
........................... roundrectangle and default=20 otherwise
-l ... vignettelighten .... vignette ligntening; 0<=integer<=100; default=0
-N ... noiseamount ........ noise amount; 0<=integer<=100; default=30
-L ... verticallines ...... intensity of vertical lines; 0<=integer<=100;
........................... default=25
-B ... verticalbands ...... intensity of vertical bands; 0<=integer<=100;
........................... default=30
-M ... backgroundmix ...... background mixing; 0<=integer<=100;
........................... default=35
-T ... bordertype ......... border type; choices are: none, torn, rounded;
........................... default=none
-W ... borderwidth ........ border width only for bordertype=torn;
........................... integer>=0; default=5
-R ... borderrounding ..... border rounding percent only for
........................... bordertype=rounded; 0<=integer<=50; default=10
-C ... bordercolor ........ border color; default=white

The backgroundfile is any texture image that is as large or larger than the image to be processed. Typically the backgroundfile should be converted to grayscale before using.

PURPOSE: To apply a classic vintage effect to an image.

DESCRIPTION: VINTAGE1 applies a classic blue-green vintage effect to an image. The vintage effect includes: noise, lines, various vignette types and various border types.

ARGUMENTS:

-b brightness ... BRIGHTNESS is the vintage brightness. Values are integers between -100 and 100. The default=10.

-c contrast ... CONTRAST is the vintage contrast. Values are integers between -100 and 100. The default=-20.

-s vignetteshape ... VIGNETTESHAPE is the vignette shape. Choices are: roundrectangle (r), horizontal (h), vertical (v) or none (n). The default=roundrectangle.

-r vignetterounding ... VIGNETTEROUNDING is the vignette rounding percent for the roundrectangle shape only. Values are integers between 0 and 50. The default=50.

-l vignettelighten ... VIGNETTELIGHTEN is the vignette ligntening. Values are integers between 0 and 100. The default=0.

-N noiseamt ... NOISEAMT is the amount of noise added. Values are integers between 0 and 100. The default=30.

-L verticallines ... VERTICALLINES is the intensity of vertical lines added. Values are integers between 0 and 100. The default=25.

-B verticalbands ... VERTICALBANDS is the intensity of vertical bands added. Values are integers between 0 and 100. The default=30.

-M backgroundmix ... BACKGROUNDMIX is the amount of background mixing with the image. Values are integers between 0 and 100. The default=35.

-T bordertype ... BORDERTYPE is the image border type. The choices are: none (n), torn (t) or rounded (r). The default=none.

-W borderwidth ... BORDERWIDTH is the image border width only for bordertype=torn and round. Values are integers between 0 and 100. The default=5.

-R borderrounding ... BORDERROUNDING is the image border rounding percent only for bordertype=rounded. Values are integers between 0 and 50. The default=10.

-C bordercolor ... BORDERCOLOR is the image border color. Any valid IM color is allowed. The default=white.

REFERENCES:
http://www.photoshop-plus.co.uk/2011/03/15/vintage-photo-effects-using-adobe-photoshop/
http://aceinfowayindia.com/blog/2009/12/how-to-create-vintage-photo-effect-photoshop-tutorial/

BACKGROUNDS:
http://www.flickr.com/photos/borealnz/sets/72157610307314214/with/3495540187/

http://lostandtaken.com/

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


Example 1 - Variation in Background

Original Image
(source)

Arguments:
no backgroundfile

Arguments:
grunge backgroundfile

Arguments:
oldpaper backgroundfile

Arguments:
weave backgroundfile



Example 2 - Variation in Border

Original Image

Arguments:
-T none
grunge backgroundfile

Arguments:
-T round
grunge backgroundfile

Arguments:
-T torn
grunge backgroundfile



Example 3 - Variation in Vignette Type

Original Image

Arguments:
-s none
no backgroundfile

Arguments:
-s roundrectangle
no backgroundfile

Arguments:
-s horizontal
no backgroundfile

Arguments:
-s vertical
no backgroundfile



Example 3 - Different Image
(source)

Original Image

Arguments:
grunge backgroundfile



Example 4 - Another Image
(source)

Original Image

Arguments:
grunge backgroundfile



What the script does is as follows:

  • Blends the input image with blue-green tinted version
  • Modifies black to a dark blue color
  • Adds Gaussian noise to the image
  • Adds random vertical lines to the image
  • Adds random vertical banding to the image
  • Composites a background image
  • Adds a vignette
  • Adds a border
  • Writes the output