francesco fantoni wrote: >I'm working on a modified version of scribalbum.py, tailored to produce >a 6x9 in phot-book to be printed using Lulu POD service. >It takes 2 pictures each page, sees if they're landscape or portrait >oriented, check if you're in a left or right page and puts the frames >into the page following a pre-determined scheme, reads original image >size and resizes the pictures to fit into the frames. >it works quite well at a first test, but i still have to had pictures >labels. When it first displays the resulting document, pictures are not >displayed with the correct size, but as it's actually as it is supposed >to be, if you save and reopen the file everything appears ok. >Do some of you know if it is possible to make the frame fit picture size >using the python api? >i attach the alpha version of my script >(the size of the paper is larger than 6x9 to give some bleed, according >to lulu staff suggestion) >francesco > > Yes, I should have looked at lulu.py before I replied. You are using scaleImage() instead of scaleImageToFrame(). I would think that if you are using a set page format you really want to use scaleImageToFrame(). That would allow you to crop pictures and still get what you want.
Greg
