Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having trouble using exec identify on a remote image with imagemagick if the url contains a port number. So the url appears like this: If I remove the :81 it works. What can I do? Either fixing this issue with imagemagick or removing the port number is fine. I tried using PHP's parse_url function to remove the port, however I cannot reconstruct the url afterwards because http_build_url() function is not available on my server and I cannot install it.

share|improve this question

Make sure you're using at least this version: ImageMagick 6.6.3-1 2010-07-26 Q16

This is the version I have on one of my computers, and if I specify TCP port 80 (the default anyway) it works just fine.

Also, the site you referenced is down right now, so make sure that it's up and running before you attempt this again (if it was an example, then you should have used the RFC-compliant "" to make this clear).

share|improve this answer
Will this url work for you?… – Mike Apr 8 '11 at 23:14
I am using ImageMagick 6.6.7-7 2011-02-19 Q16 – Mike Apr 9 '11 at 3:56
When using the "identify.exe…; command I got this result (that's an amazing and beautiful picture, by the way):… JPEG 1600x1200 1600x1200+0+0 8-bit DirectClass 220KB 0.000u 0:00.002 – Randolf Richardson Apr 12 '11 at 16:47
So if you're running this straight from the command-line, it should work for you. From within PHP, however, may be a different matter if PHP is altering your command before shelling out to execute it. – Randolf Richardson Apr 12 '11 at 16:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .