Repeat a portrait eight times so it can be cut out from a 6″x4″ photo and used for visa or passport photos

Repeat a portrait eight times so it can be cut out from a 6″x4″ photo and used for visa or passport photos

1
montage 2007-08-25-3685.jpg +clone -clone 0-1 -clone 0-3 -geometry 500 -frame 5 output.jpg

Yes, You could do it in the GIMP or even use Inkscape to auto-align the clones, but the command line is so much easier.

NOTE: The +clone and -clone options are just to shorten the command line instead of typing the same filename eight times. It might also speed up the montage by only processing the image once, but I’m not sure. “+clone” duplicates the previous image, the following two “-clone”s duplicate the first two and then the first four images.

NOTE2: The -frame option is just so that I have some lines to cut along.

BUG: I haven’t bothered to calculate the exact geometry (width and height) of each image since that was not critical for the visa photos I need. If it matters for you, it should be easy enough to set using the -geometry flag near the end of the command. For example, if you have your DPI set to 600, you could use “-geometry 800×1200!” to make each subimage 1? x 2 inches. You may want to use ImageMagick‘s “-density 600” option to put a flag in the JPEG file cuing the printer that it is a 600 DPI image.

BUG2: ImageMagick does not autorotate images based on the EXIF information. Since the portrait photo was taken with the camera sideways, I made the JPEG rotate using jhead like so: jhead -autorot 2007-08-25-3685.jpg

* View this command to comment, vote or add to favourites * View all commands by hackerb9

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/RxOm5plaH2M/repeat-a-portrait-eight-times-so-it-can-be-cut-out-from-a-6×4-photo-and-used-for-visa-or-passport-photos

Enhanced by Zemanta

Using mtpaint of Fedora to modify your images and make them look different.

Here is the description of mtpaint :

mtPaint is a simple painting program designed for creating icons
and pixel-based artwork. It can edit indexed palette or 24 bit RGB
images and offers basic painting and palette manipulation tools.
Its main file format is PNG, although it can also handle JPEG, GIF,
TIFF, BMP, XPM, and XBM files.

So, it looks like a good tool to create icons and artwork. But we can use this to do some stuff with our digital images also. I will show you some examples below, but before that let us install the program:

sudo yum install mtpaint

Now, the initial screen looks like this:

\"Screenshot\"

There is transform color in the menu, this can be used to adjust the Gamma, brightness, Contrast and so on. Will really help to fix up these things before going any further with the image.

\"screenshot_001\"

Now we will look at the edge detect. There are couple of options here that you can try.  The output after applying one of these would look something similar to the next image.

\"screenshot_002\" \"screenshot_003\"

Now we have the difference of Gaussian effect. This also helps you give a different look to your images. Example below:

\"screenshot_004\" \"screenshot_005\"

And for the final image I have the Embrossed image.

\"screenshot_006\"

Rest I will leave to your imagination. There\’s not much you can do anyway as this is not designed with this purpose in mind.

\"Reblog

rawtherapee — raw image processor.

\"Original
Image via Wikipedia

Download RT v3.0 alpha 1:

http://www.rawtherapee.com

Rawtherapee is a RAW image processing software. It gives full control over many parameters to enhance the raw picture before finally exporting it to some common image format.

You can also install the version \”3.0\” from the fedora repo using the command:

sudo yum install rawtherapee

Main features :

* Selectable high performance demosaicing algorithms (EAHD and HPHD and VNG-4).
Compare them on this comparison page.
* Using DCRaw 8.82/1.398 for decoding RAW images
* Image post processing in 16 bit / channel mode
o Exposure control in RGB space
+ Auto exposure with adjustable clipping point / Exposure compensation / Shadow and highight compression / Contrast adjustment, curve editor
o White balance adjustment in RGB space
+ With in-camera, automatic and spot white balance options / Temperature/Green tint fine tuning
o Highlight Recovery
o Shadows/Highlights control in RGB space
o Basic Luminance curve tool to modify the luminance channel in CIELab color space
+ Brightness / Contrast adjustment, curve editor
o USM sharpening applied on the CIELab luminance channel
+ Classical USM parameters (Radius, Amount, Threshold) / Option to avoid noise amplification / Sharpening halo control
o Optional RL Deconvolution based sharpening for even better sharpening results
o Color shift control in CIELab color space
+ Allows color shift by shifting the CIELab \”a\” and \”b\” channels
o Color booster applied on the CIELab \”a\” and \”b\” channels
+ Amplifies color channels \”a\” and \”b\” together or separately / Avoids color overamplification in high chrominance areas / Option to avoid clipping caused by too high color boosting
o Luminance denoising algorithm applied on the CIELab luminance channel
+ Edge sensitive method to preserve as much details as possible
o Color denoising tool applied on the CIELab \”a\” and \”b\” channels
+ Classical gaussian blur or edge sensitive bluring of the color channels
o Fast switching between different postprocessing profiles
o Image flipping horizontally or vertically, rotation by 90 degrees clockwise or counter clockwise
o Arbitrary image rotation (straightening tool)
+ with fill function or automatic crop
o Simple lens distortion correction
o Crop tool
o Chromatic Aberration correction tool
o Channel Mixer for Red, Green and Blue channels
o C/A Correction
o Vignetting Correction
* ICC based color management
* Change History with bookmarks to support before/after checking
* Output options:
o Supported file formats:
+ JPEG (8 bit), PNG (8 or 16 bit), TIFF (8 or 16 bit)
o Image ouput size could be set
o EXIF data is preserved in JPEG output (except crw files)
o Output directory and automatic file naming highly customizable
* File browsing with thumbnails
* Localization supported (utf8 language file):
already included languages are: czech, deutsch, english, espanol, italian, latvian, magyar, nederlands, polish, russian, slovak, swedish

Screenshot\’s for you:

\"Rawtherapee\" \"Rawtherapee\" \"Rawtherapee\"
\"Reblog