Jump to content

GD Library Help


heminfotech

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.