Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

IrfanView: Replicate Crop on Multiple Images

📅 2010-Feb-08 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

I had a series of images of the same dimensions and wanted to crop all of them with the same bounds. Eyeballing the original crop and approximating the same on the rest of the images was out of the question, since the crops had to match to the very last pixel.

 

I tried to note down the crop parameters and redo the same on the rest of the images. When a crop rectangle is drawn on the image, its parameters can be seen on the Irfanview titlebar. The first 2 numbers are the coordinates of the origin (top left) and the next two numbers are the dimensions of the crop rectangle.

Redoing this crop manually on many images turned out bad since it was tiring to draw the rectangle with a mouse correctly to match the parameters.

 

Thankfully, the swiss army knife that is IrfanView has a better solution. Choose EditCreate custom crop selection. If you have chosen a crop rectangle its parameters will already be displayed. Click on Save current values, click on Apply to image and crop the image. Open the rest of the images and do the same.