andre
andre

Reputation: 1680

How Does Image Previes in IOS determine resolution of an image?

I am under the impression that JPEGs cannot store resolution/DPI/density information. How is it possible that iOS Image Preview is able to provide resolution per image attached?

The reason I ask is that I need to alter the resolution to a specific number so that when I send the image to a 3rd party API, they know how many pixels per inch to print. I only allow image uploads in JPEG/PNG format.

Any solutions in javascript would be greatly appreciated

Thanks! enter image description here

Upvotes: 0

Views: 94

Answers (1)

Darsh K
Darsh K

Reputation: 41

You have to change the values from pixels to inches and then set the dimensions. The resolution for full hd images is 1024 or 720 pixels per inch

Upvotes: 0

Related Questions