PT Photo Gallery Photo Size Types
The Photo Size element provides a field for the size type to be defined. This establishes a relationship between the other photo size records that have the same type defined.
In the Photo Category selections for the initial size, multiple required sizes can be selected. If a size is selected with a defined type, then this will only process the resize sizes selections that match that defined type.
For example, I have the following 4 photo sizes:
- Large Portrait with the type portrait
- Large Landscape with the type landscape
- Small Portrait with the type portrait
- Small Landscape with the type landscape
When a photo is uploaded that matches the initial size requirements for Large Portrait only the Small Portrait resize will be created. The Small Landscape will not be created because the type is not portrait.
This enables the photo manager to control the resizing without creating multiple categories for the different photo size types.