[Last Call] Learn how to a build a cloud-first strategyRegister Now


how can i get the size of an image that not on my server using this command imagesx  ?

Posted on 2008-11-07
Medium Priority
Last Modified: 2012-05-05
how can i get the size of an image that not on my server using this command imagesx  ?
Question by:mgtm3
LVL 39

Accepted Solution

Roger Baklund earned 1000 total points
ID: 22910195
Why do you have to use imagesx? That would require that you first load the image into php, using for instance imagecreatefromjpeg(), if it is a jpeg. It's easier to use getimagesize():

LVL 13

Assisted Solution

marchent earned 1000 total points
ID: 22911615
Use the example code from the provided link.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month17 days, 22 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question