Jump to content

Recommended Posts

Hi Guys

 

 

I would like to know that is there any function or way so that I can find out ht megapixel of images. I will be obliged if someone can help me on this I have searched a lot in GD library & i am not able to find any function related to it. And its urgent very urgent

 

Thanks & Regards

Heminfotech

Link to comment
https://forums.phpfreaks.com/topic/50657-gd-library-help/
Share on other sites

as in the image size??

 

save that php document, then on a new one use

 

$sizes = getimagesize("url");

$width = $sizes[0];

$height = $sizes[1];

 

http://nl2.php.net/getimagesize

 

I have this values and this is pixel sizes I need some consolidated megapixel. I have also heard first time. But it is not same as height or width

Link to comment
https://forums.phpfreaks.com/topic/50657-gd-library-help/#findComment-249013
Share on other sites

as in the image size??

 

save that php document, then on a new one use

 

$sizes = getimagesize("url");

$width = $sizes[0];

$height = $sizes[1];

 

http://nl2.php.net/getimagesize

 

 

I have this above values. This are pixel sizes. I need megapixel. does it make some sense if not then let me know I will try to explain it again.

 

In very short I need megapixel of any image.

 

 

Link to comment
https://forums.phpfreaks.com/topic/50657-gd-library-help/#findComment-249020
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

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.