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

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


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

Making your subjects more prominent and stand out in the photos with gimp.

Lets first take a picture that we want to modify. We have done the corrections in the photo that are required like the curves, saturation and others. So, here is the photo after the modification. Now we will make the modification to make photo de-saturated other than the subject of interest.


Okay, now fire up gimp and open the image in gimp.Once the image is open, on the left bottom of the image, you will see a square. Click on the square and the whole image will become red. Now, select eraser tool and erase the color from the subject of interest.

After this step, the image in gimp should look like this.


After this, click on select and then select invert. With this, you have the whole background selected.

Apply de-saturate and you are done. Here is the final output from the above step. (Took me around 5-10 mins only)


Hope this helps you too 🙂 to make some of your photos stand out.


20 Photoshop Tips & Tricks That You Should Know About

Image via Wikipedia

Photoshop is a heck of an amazing software. You can do all kinds of things with images and go as far as your imagination can take you. Once you are past the beginner level and understand what the various options are for and how they work, then you are ready for tips like the ones that are the topic of this 2 part article.

They will help you in getting things done quickly, save you a lot of headache and steps and overall inflate your Photoshop-fu! So here we go:

Change Brush Size On The Fly


If you are even the slightest bit serious about Photoshop or you have used the Brush tool a couple of times, this single tip is worth at least a dozen alone. While you are using the brush tool you do not have to go back to the options palette to change the brush size or softness. Left bracket key ‘[\’ decreases the brush size and Right bracket key \’]‘ increases the brush size. Similarly Shift + [ decrease hardness (makes the brush soft) and Shift + ] increases the hardness of the brush.

Create Guides Easily


Guides can help you align objects in your composition. You can quickly create guides using rulers that appear at the top and the side of the document window. Click on the ruler and drag to create a guide. Release the mouse button where you want to create the guide. Once created you can quickly show/hide guides using Ctrl + ;

Don’t Cancel Just Reset


Photoshop can be pretty tough to get and even harder to master. Moreover, the nature of work dictates that you must experiment and things don’t always go the way you anticipate while experimentation. So if you are inside curves, or hue saturation or perhaps levels and you make a series of adjustments that didn’t turn out the way you wanted, you would want to start over again.

But wait don’t hit cancel just yet. Instead hold down the Alt key and see how the cancel button changes to Reset. Now click reset and the adjustments you made will be undone while sparing you the round trip to open the same dialog again.

Scrub The Input Boxes


There are a lot of controls in Photoshop that let you enter a value using the keyboard. Font size, brush size, opacity and who knows how many others. Well a peculiar thing about these input boxes is that you can increase or decrease the value that’s in them by just scrubbing with the mouse pointer. As you move close to any such control the mouse pointer changes to something like the one shown above. Now just click and drag in the direction you want to change the value. Generally dragging towards the right side increases the value and towards left side decreases the value.

Adjust Opacity Quickly

The opacity controls can be manipulated even faster! Just hit a number from 0-9 and opacity will be adjusted in increments of 10. This means that 1 would set the opacity to 10%, 7 will set it to 70% and 0 will set it to 100%. If you are looking for a definite value say 57% you can quickly type 5 followed by 7 to set the opacity to 57%. The trick works with layer opacity as well as for any tool that has an opacity setting.

Change Intensity Of Filters Without Dialog Boxes

Say you just applied the Unsharpen Mask filter to sharpen your photo. If you find you went a bit too far you can take back some of it by using Shift + Ctrl + F. If you would like to intensify the effect further you can use Ctrl + F to do so. Remember these would work just after you have applied the filter. If you performed other operations after applying the filter, these might not work as expected.

More at: http://feedproxy.google.com/~r/Makeuseof/~3/BojsyTnMoeE/