Jump to content
Xisto Corporation
Sign in to follow this  

calculate image resolution Php Resolution Detection?

Recommended Posts

calculate image resolutionPhp Resolution Detection?

Hi ,I am use this script, but I have one problem when I am upload the image can I calculate the resolution of that image because I have a condition if resolution is less than 72 dpi image is reject to crop else if it is greater than 72 dpi image will go to crop.Here is a problem to how to calculate directly resolution of image. I am use formula for resolution is pixels/inches. But is failed to some cases.Please suggest me to how to get resolution of image if you have input as image size only .


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.