I'm working on a photo booth web app that's going to run at a kiosk, and I'm trying to figure out how users can make a 4 x 6 printout of their photo.

When the user requests a printout, PHP resizes the photo and moves it into a folder being watched by Automator. When Automator sees a new photo is runs a "Print Images" action, but the action doesn't have an option to change the paper size, so it prints at the default US Letter. It seems this could easily be accomplished by setting the default paper size to 4 x 6 in the Print & Scan options, but that doesn't seem to be a choice: Print & Scan Options

Is there any way to add custom options to this list? Of course another way to accomplish this would be fine, too.

1 Answer 1


If you print from the command line with lp you can do something like:

lp -o media=Custom.4x6in filename

That will print at 6x4 on the default printer the file called filename.

On my HP inkjet that made it pick the photo tray over the main tray.

So, put the above in a script and have automator run it pointing at the directory with the files in.

  • We have the same problem and we can not figure out where to place this code you have noted above to create the custom print size... Please can you elaborate?
    – user66287
    Jan 2, 2014 at 22:41
  • Terminal, (Applications -> Utilities), or another terminal emulator application. You'll need to navigate via the command line to where your file is, or reference it directly. You can drag the file into the window, after typing in the first bit above.
    – Alex
    Jan 3, 2014 at 2:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .