The initial image scale is 1, but when resizing the image using Toucan, the image scale is changed to 2, so when I convert the image to Data and send it to server, the image size is double than the size I used to resize the image.
// Image scale was 1
let resizedImage = Toucan.Resize.resizeImage(image, size: CGSize(width: 500, height: 500))
// Image scale becomes 2
// Convert image to Data
let imageData = UIImageJPEGRepresentation(resizedImage, 0.8)!
// Send to server via HTTP
Is it possible for Toucan to maintain the original image scale?
The initial image scale is 1, but when resizing the image using Toucan, the image scale is changed to 2, so when I convert the image to Data and send it to server, the image size is double than the size I used to resize the image.
Is it possible for Toucan to maintain the original image scale?
Snitram