Custom Layouts with PhotoSheet

If you have picture frames and photo albums with oddly sized pages and you've been burning through your 4x6 photo paper trying to get it right, I have good news for you: The new version of PhotoSheet now supports custom layouts.

There are a few other minor improvements - for instance, it's easier to rearrange the images on a sheet; just click the image in the preview picture and it'll be selected in the list.

Here's a screen shot showing one of the new layouts (a 4x6 sheet containing a pair of 2.5 x 3.5 pictures, perfect for those small picture frames).


In the Sheet Size section I've added several common paper sizes to the list. To simplify the list the "Vertical" checkbox can be used to flip the page between horizontal and vertical orientations.

In the Layout section, the "Flip" checkbox can be used to flip the layout between horizontal and vertical orientations, independent of the paper orientation. Watch the preview area carefully - if what you see isn't what you're looking for, you can try changing these two checkbox settings (Vertical and Flip) to find the layout you like.

The content of the drop-down list in the Layout section is the most interesting new capability of PhotoSheet.

  • There are numerous "grid" layouts that arrange many photos on a sheet (any size sheet). I use these for those collage picture frames in my house that just don't seem to have enough 4x6 openings. This way I can cram more photos into one of the 4x6 openings.
  • There are several "collage" options that are similar and more creative.
  • There are also a few "wallet" options that you can use to create wallet images on your 4x6 photo printer. These are designed to create very specific-sized images and assume you are printing on a 4x6 sheet. If you're printing to a 5x7 or 8x10 (or larger) printer, you can create your own custom layouts for those (keep reading...).
  • At the bottom of the list are the customization options. You can:
    • Download new layouts from Photility -- If you come up with a great layout, send it my way and I'll make it available to everyone here.
    • Add new custom layouts of your own (keep reading for how to do this).
    • Refresh the list (do this after you edit the custom layouts).

When you choose the "Edit Custom Layouts" option from the list, the program opens Windows Explorer showing the Custom Layouts file, as well as the Photility layouts file (if you've done the import from photility operation from above). You can edit these files using any text editor (NotePad, Word, etc). Notes:

  • Be careful editing the Photility layouts file - this file will be replaced the next time you do the "import from Photility" operation. The file is provided as a reference so that you can see how the layout works.
  • If you mess up anything in the Custom Layouts file, you can delete the file and PhotoSheet will re-create the default custom layouts the next time you start it (or use the Refresh option).
  • When you're done editing and saving the custom layouts files, return to PhotoSheet and use the Refresh option to re-load the layout list. Your newly edited layouts should appear in the list.

Adding your own custom layouts is easy. The XML might be a bit intimidating but if you're careful you can do anything. If you need to, get some help from a friend who has built a web page; XML is very similar to HTML.

Here's the XML for the layout shown in the screen above:

<layout size="6x4" name="4x6 sheet: 2.5 x 3.5 wallets (2 images)">
<rectangle bottom="93.75" right="45.84" top="6.25" left="4.16">
<rectangle bottom="93.75" right="95.84" top="6.25" left="54.16">
</layout>

So let's walk through this:

  • Each PhotoSheet layout is described in a Layout element, which begins at "<Layout" and ends with "<Layout/>". Each layout has a couple of attributes.
  • The first attribute, size, is optional. The first number is the horizontal dimension, and the second number is the vertical dimension. Be sure to pick a page size that exists in the Sheet Size list - PhotoSheet may behave unexpectedly if you put something unexpected there. Follow the example above and you'll be fine. For instance, size="5x7" would describe a 5" by 7" sheet oriented vertically.
  • The second attribute, name, is required. This is the name of the layout and it is displayed in the Layout list in the user interface.
  • Within each Layout element are one or more Rectangle elements, and each rectangle corresponds to a slot on the photo sheet into which a photo will be inserted. Each element has 4 required attributes and they can come in any order: right, bottom, top, left. Each attribute describes the location of an edge of the rectangle. The numbers are percentages of the width or height of the overall sheet. So the first rectangle in the above example would be described as having a bottom edge that is 93.75 percent of the distance from the top of the sheet to the bottom of the sheet. Its right edge would be 45.84 percent of the distance from the left edge of the sheet to the right edge of the sheet. And so on.

Since that's a somewhat advanced layout, let me show you the layout for a simpler grid layout. This is the XML for a layout with one row of 3 photos stretched evenly across the sheet:

<layout name="Grid 3 (1 x 3)">
<rectangle left="0" top="0" right="33" bottom="100"/>
<rectangle left="33" top="0" right="66" bottom="100"/>
<rectangle left="66" top="0" right="100" bottom="100"/>
</layout>

  • You can see the "<Layout>" element with its name attribute. The size attribute is optional and is omitted because this layout is intended for all page sizes.
  • There are three "<Rectangle>" elements.
  • All three rectangle elements have the same value for their top (0 percent of the distance from the top of the sheet to the bottom), and bottom (100 percent of the distance from the top of the sheet to the bottom). This is good; we want them to stretch the full height of the page.
  • The left and right attributes for each rectangle show that each rectangle gets 33 percent (1/3) of the width of the page, and the left and right edges of each rectangle are progressively 33 percent to the right of the previous rectangle.

Phew. Hopefully that made sense.

If you come up with any handy layouts, send them along and I'll update the Photility layout collection for all to enjoy. Meanwhile, I hope you enjoy the update.