Tag Archives: irfanview

Bulk Photo Cropping



As you probably already know, Irfanview is one of my favorite free programs. I’ve used it for years and every computer in the house has it. Read past posts about Irfanview  here and here and here. Irfanview is fast, fun and works perfectly every time. You can download it and its plugins from Tucows. Get it here: http://www.irfanview.ca/main_download_engl.htm

If you have used Irfanview for a screen capture session, you’ve probably got dozens or hundreds of jpgs that include more of your screen than you need. Irfanview is perfect for captures but sometimes the box you draw around your target is too big. Here’s how you can set Irfanview up to crop those captures in one operation, no matter how many photos you have. How do I know? I’ve used this method before to crop about 2400 photos that I made into a little animated gif. It didn’t go viral but it was fun make.

1. Get all of your jpgs in one folder. Sort them out so that all the photos have the main capture in the same position on the screen. If you moved the window at some point while you were capturing the whole screen, sort those photos out and put them in different folders. You can reorganize them later.

2. Open Notepad or keep a paper and pencil by your hand. You will be writing down a few numbers for each cropping job.

3. Before you actually begin to crop, practice sizing the crop area first. Open one jpg. As with most programs, holding down the left mouse button and dragging the cursor will create a box. Test this out and try to get the correct size, the one that looks best to you. When you have the right box, click anywhere outside the box to unselect the crop.

4. Next, click on the top left corner of the area that you want to crop. Don’t move your mouse, just click once and hold it there. On the top left of the Irfanview window you’ll see XY:(number,number). This is your X -Y reference point. Make a note of those two numbers. This is what you will see:

The first crop window
Look for the XY:(480,561) - your numbers will vary.

5. Next, you’ll want to write down the full size of the crop box that you want. Click in the same spot, or as close as you can to it, then drag the box out and hold the mouse button down until you are able to read the numbers that you need. What you’re looking for is the number of pixels that define your crop box’s height and width. In the photo below, you’ll see what I mean.

Set the width and height of the box here.
See the (646x472 Pixels, 1.369)? You need the first two numbers: 646 and 472

6. Now you have the numbers that describe where the box starts and the numbers that describe the size of the crop box. You’re all set to start your batch cropping. Look for File on the top left, then Batch Conversion/Rename. The following window will open:

The batch processing window
Here is where you will do two things. Add the photos to crop and choose your output directory.

7. Set up the menu by checking that ‘Batch conversion’ is ticked. Then, on the top right, select the photos you want to crop. Remember when I said to keep your photos separate? This is why I said that. It’s much simpler to choose ‘Add all’ as opposed to picking through the jpgs one by one. Click ‘Add all’ if you have all the right photos in one folder. Then, in the middle left, choose where you will put the cropped pics. Don’t use the same directory as the originals, just in case you make a mistake with your crop window. You still want the originals until you make sure your numbers are correct. Once you’ve done these steps, click on the ‘Advanced’ button. The following window will come up:

Advanced Crop Window
Don't get nervous. This window looks complicated but it's not that bad.

8. Top left, see the Crop section? This is where you’ll fill in the numbers that you wrote down earlier. Make sure ‘Crop’ is checked then type in the X-pos number and the Y-pos number. Below that, write in the width and the height. Below that, make sure that ‘Left top’ is chosen. You can crop in any corner, just make sure you know which corner you have chosen. I always use top left but you can do whatever you want.

9. Make sure that nothing else is checked. On the bottom right, I have ‘Overwrite existing files’ chosen, simply because it’s easier if I make a mistake. I put the cropped photos in a new folder then I check it after the batch if finished. If I have made a mistake, I redo the numbers and run the batch again. I don’t have to open a new folder.

TIP: If you are doing a few batches, uncheck the ‘Overwrite existing files’ just in case you forget to use a new folder. Make sure this is unchecked if you are using the same folder as the originals, too. I’d advise against that, however.

10. Double check everything then choose OK once to close that menu. The batch menu is still open, of course, and you need to press the ‘Start batch’ button. Once you do that, Irfanview whisks its way through the task at hand. Depending on the speed of your computer, this might take a while. Wait until Irfanview is done then check your results. Chances are you’ll make a mistake the first few times but read through this again and you’ll get it right, sooner or later.

Thanks for reading!

 

 

 

 

 

 

 

Change Your Desktop Icons – fast and free



Windows allows you to change your desktop to suit your personality or mood. With different color schemes and a wide choice of backgrounds and screensavers, you can pretty much tune the look of your desktop any way you want. Changing the icons for folders and shortcuts isn’t quite as intuitive as changing your desktop background but it’s not rocket science. Here’s how you do it.

1. Before you begin, download and install Irfanview (if you haven’t already). If you have read my blog before, you’ll know that I love Irfanview. It’s free and totally indispensable when you want to view a photo or do some minor editing on an image.

2. Decide what kind of icon you want. Windows has some icons already which you can access by right clicking any folder and choosing Properties then Customize then Change Icon. These are your typical icons, nothing too far out here. They are available in this location: %SystemRoot%\system32\SHELL32.dll in Windows 7. But, let’s make our own, OK?

3. Find an image or a color swatch, anything that you suits your style. Open the image in Irfanview.

4. Select the area of the image that you want as an icon then left click your mouse and drag a rectangle or square to suit the size you want. (If you use GIMP, you can draw an oval or circle to make really different icons.)

5. Press your Control key and the y key at the same time to crop your selection.

6. Press the Control key and the s key to save your new icon.

7. In the ‘save as’ menu, click on the arrow to the right of the ‘save as type’ and choose ‘ICO – Windows Icon”, as pictured here.

showing save as icon
Save your selection as an ICO file.

8. Save the cropped image on your computer, preferably your desktop so you can find it easily.

9. Choose the folder or shortcut icon that you want to change. Right click it and choose Properties then the Shortcut tab. It looks like this:

shortcut tab
This is the shortcut tab, look for 'change icon'

10. Click the “Change Icon’ button and use the ‘Browse’ button to find the icon you created. Here is an icon I made of my own nose that I cropped from a photo on my desktop:

menu to choose icon
Find the icon you made and click on it then click 'Open'

11. Click ‘Open’ after you find it and then click OK all the way back.

12. Your newly created icon is now showing as the shortcut or folder that you chose originally.

There are many sites that offer free icons for downloading but why not make your own? Use pics of your kids, your favorite bands or movie stars, whatever you want. You can see that I made an icon out of my nose, as a matter of fact! I cropped a self-portrait and used it as an icon for a program shortcut.

That’s it. Have some fun with this and make your desktop your very own, not something from Microsoft.

Thanks for reading. Follow me on Twitter: @_BrianMahoney