A new version of PortraiMatic was published yesterday evening.
As usual, let's see what's new.
Layout
The Source Code of PortraiMatic is continually being refactored , that is, parts of it are rewritten to make it more readable or easier to evolve, without adding any new feature. I actually factorised the part which computes the layout of portraits on a sheet, this code being only slightly different for sheets "to save" and sheets "to print".
I thought it was a good occasion to add a few fatures while my mind was still on it:
Sheets to save

- The Orientation can now be set to Horizontal or Vertical. In the Auto mode, PortraiMatic adopts the orientation to fit the more portraits. Previous versions used to be in the Auto mode all the time.
- The margin of the edges can be set. If I had not included this feature sooner, that it is because, it is in fact a bad idea to have this margin smaller than 3 mm, because of the cutting machines of photo labs. PortraiMatic now offers this possibility (try it), but you are warned.
- The margin between portraits can be set. To be true, I find a margin smaller than 3 mm ugly, but some users wanted eight 35x45 mm portraits to fit on a single sheet.
None of these settings are saved. It is left to do in a next version.
Sheets to print
Only the margin between portraits can be set. Here is a tip: this margin can be as wide as 50 mm. This is a good way to save ink, until PortraiMatic offers a more appropriate way to choose the number of portraits on a sheet.
Colour Adjustments
Being able to adjust exposure, contrast and brightness of a photo has being requested since version 1.0. Here it is at last!

Adjusting is done thanks to a histogram. This tool is not as complex as it looks at first. I won't go into details of its function here, as it is well described in the Help.
If we had an average consumer approach here, we would have placed a Brightness slider and a Contrast slider; these two concepts are well understood by users, but has a major drawback: adjusting exposure with these sliders is really hard.
Yet, exposure — which is a concept that casual photographers do not necessarily understand — matters the most, and a histogram is a great way to adjust it precisely.
The real difficulty in this feature was to make it run fast: computing a histogram is a heavy calculation. I'm rather satisfied with the result. It was also necessary to change how a portrait is displayed. Indeed, the portrait template should not show while the photo is being adjusted, which would be disturbing. Hence, the template only shows when the mouse cursor hovers above the portrait, or when adjusting the scale. At rest, a white frame provides a good idea of the final portrait.
That is all for this version. As usual, don't hesitate to drop us a line if you have any suggestion.