We can easily extract image information from the Image URL using PHP’s predefined function called
I Use this function whenever I need to know image HEIGHT and WIDTH, this function returns an array with 5 items, first, two are image Height and width, 3rd one is image type(png/jpg…etc, ) find more image types list below.. etc
We can use this function to get image height and width while uploading images
Type of 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|
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.
I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.