A method to create completely customized photo book page templates from scratch in Lightroom 5

I was able to successfully create completely customized Lightroom 5 page templates (including altering the number of, positions, and sizes of pictures) by making edits to the templatePages.lua file(s) in the Lightroom directory tree.  I have never heard of the LUA file format before, but it is ASCII and looks somewhat like XML, so it was fairly easy to decipher.  Here is a high-level description of how I did it.  This applies to Lightroom 5 on Windows 7.  If this doesn't make any sense to you, then don't try it - you're likely in over your head.  Although my description is brief and lacking in detail, it should enable someone who is capable of handling this to figure it out with a little of careful trial and error.  Do this at your own risk - if you screw-up your installation, catalog, or computer, it's your own fault.  It all worked great for me.
First, open the "<lightroom 5 install directory>\Templates\Layout Templates" folder.  Then navigate to the template set that contains the template you would like to use as a starting point for the new template.  For example, "12x12-blurb\clean12x12".  Make a back-up copy of the templatePages.lua file in case you mess something up and want to revert.
There will be a bunch of .jpg files in this directory that each contain a preview image of the layout that carries the same name as the .jpg file.  Find the one that you would like to use as a starting point.  Take note of the name of the file, which is probably something similar to "page_26_preview.jpg".   Duplicate the file and rename it to something unique, such as "dummy_preview.jpg".  It's just temporary, so it doesn't matter what name you pick, provided it is a legal file name with no spaces.
Next, open the templatePages.lua file in a text editor.  I suggest using one that can automatically recognize and format ULA (such as Notepad++, which is open source and free to use).  Then search the file for the unique portion of the file name you took note of earlier, such as "page_26".  It will point you to a section in the LUA file that describes that particular template.  Carefully copy that entire section, including a balanced number of brackets (starting with the two brackets and commas before "children" and ending with the one bracket and comma after the "title" line.  Paste the copied text into the end of the file on a new line immediately following the bracket and comma after the "title" field for the last page template section (right near the end of the file).  Change the "previewName" field to the name of the preview file copy that you created ("dummy_preview.jpg" for me) and the "name" field to the name of the new template you're creating ("dummy" for me, since it is just temporary).  Next change at least one of the hex characters in the "pageID" field such that the new template will have a unique page identifier.
Now you can make edits to the photo and text fields included in the new section, using other templates in the template file as examples.  "x" and "y" fields are coordinates (in pixels) for the bottom-left corner of the picture or text field, "height" and "width" are the width of the field in pixels.  The fields should be mostly self-explanatory, but make sure that the "photoindex" fields are filled-in starting from 1 to N, where N is the number of pictures in the template, with no duplicates or gaps.  They do not need to be in order.  Treat the "textIndex" fields similarly for text fields.  If you want to add an additional picture or text field, simply copy the section describing a picture or text field from another template and paste it, carefully, into the new template that you are creating.
Once you are done, save the file (you may get interference from Windows UAC, in which case save the file elsewhere and the move it back to the correct directory).  Then open Lightroom.  Create a new photobook, and choose the new template for one of the pages, remembering that the preview image will look like the JPG that you copied.  Voila!  If you didn't screw anything up, you should see a page based on your new template.  Then right-click the page and select "Save as custom page", which will cause a fresh preview file to be created for your new template and your template to be copied to the "custom pages" section of the template menu.  The new section you added to the "templatePages.lua" and the "dummy" preview file can now be deleted, since they are no longer needed.  I save them so that I may simply overwrite them the next time I need to create a customized template.
Enjoy, and please share any clarifications, corrections, or enhancements to my process.

peter at knowhowpro wrote:
DHWachs wrote:
This post was great!  Thank you so much.  But I am hoping you know one more thing related to this.  In the "transform" section of the definition (where the x/y coordinates are set along with height and width) there is an option called "angle".  I was hoping that changing this value would allow me to offset the angle of the picture.  However, if I put any value there other than 0 the template becomes unusable.
Do you happen to know what this option does?
I haven't looked into the files, so this is just a guess based on how some graphic applications work. It's common to think of rotating a shape as pivoting around a center point, but It's possible that the file sets a value for the rotation point not at the center. In some graphics applications, you can set a shape's pivot at any corner or in the middle of any side, of the rectangle that contains the whole shape.
So, your value may be rotating the shape around a pivot that moves the shape into some area that upsets the behavior of other shapes. Just a thought.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices
Peter's point is a good one.  I would also assume that the "angle" property allows you to rotate an image, but I haven't tried it myself.  One thing to investigate - are there any page templates included in LR that have image placeholders that are at an angle (I don't recall any, off-hand)?  If so, looking at the associated .lua file could provide insight into how an angled image placeholder should be described.

Similar Messages

  • CUSTOM PHOTO BOOK THEME / TEMPLATE SETTINGS?

    I want to create a photo book using any of the pre-defined Aperture photo book themes.
    My question is that I want to create a book in Portrait Layout (8.5 x 11") but the only available themes seem to be designed in Landscape Layout (11 x 8.5"). Are there any workarounds or additional themes allowing me to format in Portrait Layout while retaining the page / photo box options available in the included themes? BTW ... I will be printing the pages myself and not necessarily ordering through Apple's service
    Thanks

    You pretty much have to create that kind of layout yourself. You can check out some of the new book vendors and their templates but from what I have seen so far they are also somewhat limited.
    RB
    Ps. I have a few book related posts on my site. photo.rwboyer.com

  • Is it possible to create a custom photo layout when creating a photo book in iphoto?

    Is it possible to create a custom photo layout when creating a photobook in iphoto? How about adding text boxes?

    Yes and no
    You can not make a custom template nor can you modify one
    You can do a page in other software and then print to PDF using the send PDF to iPhoto option and place the resulting image as a full page photo - See Old Toad's tutorial No.19 for more information.
    LN

  • Can a completed Aperture photo book be placed on a website for viewing by friends?  I already had several copies successfully printed by Apple.

    Can a completed Aperture photo book be placed on a website for viewing by friends?  I already have several copies successsfully printed by Apple?  Thanks. Buzz22

    There is no direct web publishing of a book, sorry. But as a work-around: You can print your book to pdf - select it in the book in the Inspecktor panel and use "Print book".  Then select the "PDF" buttun in the print panel and save a pdf file. Upload the pdf to a server for sharing (ftp, Drop box) and send your friends a link or place a link to the file on a webpage.
    Regards
    Léonie

  • I am very new to Macs and iPhoto so this may be an idiot's question, but I have just created my first photo book and want to buy it, but the "buy book" button is not highlighted and when I click it nothing happens. Is there some step I am missing? Thanks!

    I am very new to Macs and iPhoto so this may be an idiot's question, but I have just created my first photo book and want to buy it, but the "buy book" button is not highlighted and when I click it nothing happens. Is there some step I am missing or some connection I need? I am on the internet. Thanks!

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • How to copy and paste text from one photo book page to another.

    hello,i downloaded this software 2days ago,and i've been having so much fun with it. pls i need help on how to copy and paste text from one photo book page to another. Secondly how to copy my completed photo book pages project to another laptop for printing. thanks
    This question was solved.
    View Solution.

    Hi DG.
    The easiest way to copy an HP Photo Creations project to another computer is to click the Share button. That will upload the project to the Web and give you a link you can paste into an email. Clicking the link on the other computer allows you to download the project and personalize it. This quick video shows the process. (The screen looks slightly different now, but the concept is the same.)
    Another way to share a project is copy the project folder to a thumb drive. Look in Documents/HP Photo Creations/My Things to find your saved projects.
    Our customer support team would be happy to walk you through the process. Contact them at [email protected]
    Hope this helps,
    RocketLife 
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • Creating Pages template from Photoshop layout

    I need to create a Pages template from a Photoshop layout. I don't have the time to create one myself and am looking to hire someone to do this. Is there a User group or some other place where I can find someone to do this for me?
    Thanks in advance for any help.

    Some iWork template sites:
    http://www.pagesuser.com/blog/
    http://mcb.berkeley.edu/labs/zusman/dave/svg2key/
    http://www.keynoteuser.com/links.html
    http://www.iworkcommunity.com/
    PowerBook G4   Mac OS X (10.4)  

  • How to create a complete custom portal logon page.

    Hi Frndz,
    I want to create a new logon page i.e completely customized(not to customize com.sap.portal.runtime.logon.par), this is to make my portal as  a EFP(Xternal facing portal).
    Regards
    Rajesh

    Hi,
    Yes i agree with that i have to use PAR for logon.
    Let assume that i have created PAR file called "MyLogon.par" in this i have JSP file "Welcome.jsp" .
    In this JSP when we click on Logon Button it should lunch the portal screen, which action i should place in FORM of JSP action.
    If u go to SAPs  "umLogPage.jsp" in the FORM attribute
    can i use same piece of code in my custom jsp , to logon to portal.
    Is there any another way to logon to portal.
    Regrds
    Rajesh.

  • How do I create a duplicate photo book?

    We are in the process of creating a photo book for one set of Grandparents and would like to duplicate that photo book once it's been created so that we can create a slightly revised photo book for the other set of grandparents. Is there anyway to create a duplicate/copy of the first photo book? We don't want to lose that book in case we want to print additional copies in the future. Thanks!

    Hello Curtis,
    Just select the Book you want to modify in the Library Inspector, and then choose
         File -> Duplicate Book
    from the main Aperture menu.
    That will create an exact copy of your book, and you can modify it, without changing the original book.
    Regards
    Léonie

  • Right in the middle of the process of creating a hardcover photo book, a message came up, telling me: This theme is no longer available in iPhoto. Please choose: Delete book / Cancel / Change Theme. No matter what I select. What`s the problem???

    No matter what option I select- iPhoto either crashes or the beachball starts spinning. Either way, I can`t access the photo book anymore.
    Is there anything I can do?
    The selected theme is definitely still available in iPhoto, so this can`t be the real problem...
    I have been sitting on the book work for days...
    Thanks for any help!
    Dennis

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    If that doesn't help   launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If it does then a reinstall of iPhoto is warrented.
    If the problem does not appear in the test library then your current library is damaged.  In that case make a temporary, backup copy (select the library and type Command+D) and  apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #1, followed by #3 and then #4.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Creating and ordering photo book

    I would like to use my ipad photos to create a photo book for my mother for Christmas. I need to have an app that walks me through this.  Last year I used my PC and Walgreens but this year I have no pc and Walgreens does not support nonflash.  What do I do?  Can anyone help? I looked at the iPhoto app but it talks about using a Mac and not Ipad.  My mother is 83 and needs to hold the book in her hands.  Thanks bunches!  Sallie

    Hi Dear Salt,
    You have lots of free apps for that.
    However you will have to put time and
    effort if you really want a cool result.....
    Here there is a small example of a video
    explaining how to create your desired album !!
    http://www.youtube.com/watch?v=knr3n4IRyiU
    really hope your Mum will enjoy your work - and Merry Christmas !!
    David Fruend

  • Workflow for building Photo book Page in Photoshop & Lightroom

    I am working on publishing a Photo Book using MyPublisher and will be laying out each page in Photoshop rather than using their templates.
    I need advice on the best workflow for accomplishing this task--here are some details:
    1. Images are Imported to Lightroom, are Flagged, and adjusted with Develop settings (Cropping, Basic Panel, Paintbrush etc.)
    2. I do add some capture sharepening to the image in Lightroom (not much).
    3. Use the EDIT IN Photoshop CS6 with 1 or more images from Lightroom as SMART OBJECTS.
    4. In Photoshop, I am changing the Image Size (sometimes upsizing for full page spreads) and resolution (everything goes to 300 DPI).
    5. Doing more intense Creative Sharpening for each image.
    6. I am using a variety of custom actions to layout pages with 1, 2, or 3 images plus text. I create a new document that is sized for the entire page (11.08 x 14.08 @ 300dpi for Deluxe Hardcover). I fill the background page with a custom pattern simulating textured paper and then layout the images for either a Left or Right Hand page.
    7. Saving page as a Photoshop File and re-importing into Lightroom
    8. Publishing the Photoshop Files as JPEGS with Medium Sharpening for Glossy Paper
    9. Importing the JPEG of the Page into My Publisher as a single image the sive of the entire page.

    I often use Photoshop to set photos in iPhoto books. I am not sure how Apple does the trimming of its books, but I have had no problems with edge trimming of pages whose photographs to go to the edge. There is no white to be seen. I haven't closely compared the original 11" x 8.5" photo with the one in the book, but generally the results look right.
    In terms of working out the gutter for two page spreads for a 11" x 8.5" book size. I measured an existing book and found the physical page width to be 11" exactly. I measured the gutter to be 0.25". So that means using Photoshop to create the image size of 10.75" x 8.5". It seems to work okay.
    Just interested if you have set a gutter, and if so, to what specification?

  • Photo book page designs

    Is it possible to export a page design from a keynote presentation to Aperture, to be used in photo books ? I think I've seen one tutorial like that, but I'm not sure ...
    And is it possible to share one photo book (with custom design) from Aperture to iPhoto ?
    Thanks,
    Simone

    I think you can export the Keynote pages as JPGs or PDFs and then import them into Aperture.
    And I know you can share Aperture designs, but I don't think you can use them in iPhoto because it doesn't allow for custom design as far as I know.

  • Is it possible to change the size of a text box on a photo book page

    I am a first-time user of the photo book application in iPhoto. I am wondering if it is possible to:
    1. change the size of a text box
    2. have more than one text box on a page
    3. move the text box around.
    Thanks, in advance, for any suggestions someone might have.
    newtongrammy

    I am a first-time user of the photo book application in iPhoto.
    I also was a first-time user, so I started using it. Exploring the possibilities, learning my way around.
    Thanks, in advance, for any suggestions someone might have.
    Click the ? icon
    Oops. Sorry, but you're in the wrong forum : iLife > iPhoto

  • Create a Custom Layout for page

    I'm trying following the example -> Example 7-4 Sample Code for the example.layout File
    [ http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14243/develop_ui_lookfeel.htm#i1045018 ]
    and in this way I create new Layout for my page
    <skeleton:control name="*table*" presentationContext="${layoutpc}" class="wlp-bighorn-layout"
    cellspacing="0" cellpadding="0" width="100%" >
    <c:set var="ph" value="${layoutpc.placeholders}"/>
    <c:set var="left" value="${ph[0]}"/>
    <c:set var="upper" value="${ph[1]}"/>
    <c:set var="lowerLeft" value="${ph[2]}"/>
    <c:set var="lowerRight" value="${ph[3]}"/>
    my problem now is that I'd like create new Layout with div without table
    because the requirement of my project is I can't use table for positioning portlet
    I can't foud document or example about it
    I'm looking forward to yearing from you soon, many thanks in advice

    I've found it's worthwhile spending time fiddling and adjusting Lightroom's templates and saving to Custom Pages but I haven't found a way of removing a custom page layout once I've finished using it or tweaked it some more. Can you say how to remove one, please, johnbeardy? I can put them in and out of Favourites but the Custom Pages list just gets too long.

Maybe you are looking for

  • Auromatic payment error: no valid payment method found

    Hi Expert, I have created an invoice for a foreign payment to a vendor. The payment method F (foreign bank transfer) is available in the vendor master data and in the line item of the vendor invoice. When I do afterwards an automatic payment run via

  • Having trouble uploading sub folders to Sharepoint online using PowerShell

    Hi there, I have been attempting to upload folders and files to a document library on Sharepoint Online. I can upload the top-level folder and the files in that folder but when i comes to the sub folders i get this message:  New-Object : Exception ca

  • How can i set password for my n8?

    I'm sure it's easy but i didn't know how....can you also tell me how can set my picture to be save on the Mass storage ..... Thank you Solved! Go to Solution.

  • A E-mail from my lost iphone4

    My iPhone4 with Apple Care has been stolen last month, but I got a mail from apple today. It told me that my lost iphone4 was repaired in Nov 10th. But when I call the apple, they can not help me to find it? What can i do now?

  • AGP vs PCI for 2nd display

    I am considering upgrading my set-up to include a 2nd 17" LCD display. Can anyone tell me how bad of a performance hit I'll get by getting my 2nd ADC port through a PCI card? Will I actually see a lag between the PCI-fed and the AGP-fed displays? Is