Add support for `zoom` param
roborourke opened this issue · comments
The zoom
query parameter is part of the Photon API and makes it easy to get bigger images for high DPI displays. zoom=2
for example gives an image 2x bigger than the result of fit
, resize
, w
or crop
.
In terms of the implementation we'd factor this in to any calculated pixel dimensions (except those used for a crop) and multiply them by zoom
.
Might not be a good idea but we could potentially use the zoom
number as a factor to reduce the quality by to keep performance up. Images shown at half their actual size don't need to be as high quality.