Technology Programming

How to Get Image Height & Width in PHP

  • 1). Open your PHP file using a PHP, HTML or text editor.

  • 2). Type the following code:

    list($img_width, $img_height, $img_type, $attrs)=getimagesize("images/myimage.jpg");

    The "$img_width" variable returns the width value in pixels, while "$img_height" returns the height of the image named in the "getimagesize" function.

  • 3). Save the file and upload it to your server to test the code.

Related posts "Technology : Programming"

The Importance Of Having a WordPress Business Theme

Programming

Website Design Is Necessary For Your Website

Programming

The Most effective On line Paid Survey Evaluation

Programming

Adelaide SEO - Links And Keywords, How Should They Be Used

Programming

C Programming Compilers for Microcontrollers

Programming

How Should A DJ Make Music Logo That Is Distinct And Cool?

Programming

Call to Action Concepts for Small Businesses

Programming

Microsoft Access Databases in Office 365

Programming

Why web design is crucial for producing world class websites

Programming

Leave a Comment