is it possible to calculate container width given the metadata and aspect ratio?
Opened this issue · 0 comments
shredmaster commented
I need to crop the image on the server side. is it possible to calculate the width/height given the metadata?
{
"startX": -481.01767040691396,
"startY": -850.3240346381334,
"scale": 9.13560412659178,
"orientation": 1
}
const ratio = 9/16
const imgWidth = 200
const imgHeight = 201