v1.2.0
Themes now get each photo from Total CMS ImageWorks at the size and crop they draw it, and Collection list photos are sized for the screen.
Added
- Theme photos at the size the theme draws them: a theme's Twig can ask ImageWorks for its own size, crop and format with p.image.url({w: 600, h: 400, fit: 'crop'}), or a whole
with a srcset, width, height and alt text with p.image.tag(…). voxel.img() and voxel.imgTag() do the same and also take a theme's demo photo address
- Images are never made bigger than the upload, and the shape asked for is kept
- Photos drawn the new ways can still be double-clicked on the canvas to change them
Changed
- Theme photo settings still print as a 1400 px address, so themes made before 1.2.0 look the same
- Collection list photos come with a srcset, so cards and list rows load a photo sized for the screen instead of always 800 px (list rows now load 224 px)
- An all-extensions licence key is read as one. Voxel Pro still needs it activated for the site, or its SW2 key, like any Voxel key
Nothing to do after updating: your pages and themes look the same. Theme makers can now ask for each photo at the size their design draws it, which makes pages lighter and faster.