php - Get Image Height and Width as integer values? -


I have tried to use the PHP function, but I want to extract image width and height as an integer value Was unable to.

How can I get it?

Try this way:

list ($ width, $ Height) = matching ('path_to_image');

Be sure to:

  1. You specify the correct image path there
  2. Read the image
  3. 755
Trying to preface the path also with help of $ _ server [DOCUMENT_ROOT] When you are unable to read the files


Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -