by ʇolɐǝz ǝɥʇ qoq

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a bunch of photos I want to print at the local costco. Many of them are not the standard 4x6, 5x7 aspect ratio.

When I try to print them from the costco website, it insists on cropping the pictures to fill the paper.

This is not what I want. I want to fill at much of the paper as possible and leave the rest white.

How can I resize the files to create new image files with the proper ratio?

I'm using lightroom, but I'm fine with running some other utility.

share|improve this question
up vote 6 down vote accepted

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.

share|improve this answer

This should be pretty simple in most image editing software. In photoshop you can load the photo and then change the canvas size to be larger than the photo in the proportions costco wants. Make the canvas height the same as the original photo to avoid wasting space above the photo. I believe white is the default background color in photoshop, so you would have white bars on the left and right of your printed photo.

edit: If you want to automate this, you can use photoshop actions, which are basically automated scripts/macros.

share|improve this answer

If you want to print them square with white borders, you can also use lightroom print module and print to JPG.

If you want to fill the frame just use zoom to fill and position your image in the frame, use the same technique and print to JPG.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.