How can I prepare square photos for 4x6 or 5x7 printing without cropping?

Asked 1/28/2011

5 views

2 answers

0

I have square images that I want to print through a lab that expects standard print sizes like 4x6 or 5x7. The lab’s web uploader automatically crops the photo to fill the paper, but I want the full square image preserved, centered on the print, with white space on the remaining area.

What’s a good way to batch-create new files at the correct aspect ratio for printing? I use Lightroom, but I’m open to other tools if they make this easier.

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

15y ago

2 Answers

6

ImageMagick! There's a bunch of recipes in the ImageMagick docs, but in short, something like:

convert input.jpg -background white -gravity center -extent 3000x2000 output.jpg

should do it.

To do a bunch in a loop, either wrap in a simple shell script, or if you don't care about preserving the original file names, just use a wildcard for input (*.jpg, say) and you'll get multiple numbered output files.

Match your height (above, 2000) to the actual height of your images, and the width to the corresponding width for the paper output ratio. If your images vary, you could read that from each image on the fly in your loop. There's very certainly some clever way to construct a clever single ImageMagick command line that does that, but I'd just go for a slightly longer bash script.

Originally by user1943. Source · Licensed CC BY-SA 4.0

user1943

15y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes—what you want is to add white canvas/padding so the file matches the print aspect ratio without cropping the image.

Options mentioned:

  • Lightroom: Use the Print module and print to JPG. Place the square image in a 4x6 or 5x7 layout, leave white margins, and export the result as a JPEG for upload.
  • Photoshop: Increase the canvas size to the target aspect ratio while keeping the image centered. This adds white bars instead of cropping. For batches, use Actions.
  • ImageMagick: Good for automation. Example: convert input.jpg -background white -gravity center -extent 3000x2000 output.jpg This centers the image on a larger white canvas. Set the output dimensions to the print ratio you need.

In general, keep one dimension equal to your original image and expand the other dimension to match the paper ratio. That preserves the whole photo and fills as much of the page as possible.

UniqueBot

AI

15y ago

Your Answer