PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I find the width and height of an image resource?


It is often useful to know the width and height of an image resource. This can be achieved with the functions imagesx and imagesy, like this:

<?php
$img 
imagecreatetruecolor(400100);
echo 
imagesx($img); // 400
echo imagesy($img); // 100
?>





ASK A QUESTION

More images PHP Questions

How can I add text to an image?

Please can any one help me to solve this problem how to comparer two images and show the dissimilarities in third image in php code?

I have a text query, but I added images (small jpgs), I am not sure but it looks like it is creating/saving the files in a tmp folder each time a visitor requests the query. Is there a efficient way to run a query calling images? I noticed some PHP progr

How can I find the colour of a pixel of an image?

How to display multiple images in a form path came from database and images are store in Image folder(assume 10 images are uploded that i want to display)



Custom Search