[X] Choose Font Here

Image's width and height

PHP မွာ မိုက္တဲ့ function ေနာက္တစ္ခုေတြ႔လို႔ ေရးလိုက္ပါတယ္။ ဒီ function က image ရဲ႔ width,height and type

စတာေတြကို return ျပန္ေပးတာပါ။

 

Syntax:

list($width, $height, $type, $attr) = getimagesize("image_name.jpg");

 

Sample:

<?php

list($width, $height, $type, $attr) = getimagesize("image_name.jpg");

echo "Image width " .$width;
echo "<BR>";
echo "Image height " .$height;
echo "<BR>";
echo "Image type " .$type;
echo "<BR>";
echo "Attribute " .$attr;

?>

 

Output:

Image width 379
Image height 344
Image type 2
Image attribute width="379" height="344"

 

ဒီ function က image type ကို 1,2,3,... return ျပန္ေပးတာျဖစ္လို႔ အဲဒီ type ေတြကို သိခ်င္တယ္ ဆိုရင္ ေအာက္မွာ

ၾကည့္ႏိုင္ပါတယ္။

 

 

  Type of the image
1 = GIF 5 = PSD 9 = JPC 13 = SWC
2 = JPG 6 = BMP 10 = JP2 14 = IFF
3 = PNG 7 = TIFF(intel byte order) 11 = JPX 15 = WBMP
4 = SWF 8 = TIFF(motorola byte order) 12 = JB2 16 = XBM

 

 

တျခား PHP Post ေတြအားလုံး ကို ႏွစ္သက္ရာ ေရြးဖတ္ ခ်င္တယ္ဆိုရင္ ဒီ Link ေလးကို Click လိုက္ပါ။

 

 

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

Login Form

Categories Table View

JoomlaWatch Stats 1.2.9 by Matej Koval

Facebook Share

Share on facebook

Accordion FAQ

mod_joomtouch

Version Iphone

Version Iphone by JoomTouch