Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: http://isite.com:81/image.jpg 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

1 Answer 1

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 "www.example.com" to make this clear).

share|improve this answer
    
Will this url work for you? img.wallpaperstock.net:81/… –  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 img.wallpaperstock.net:81/…; command I got this result (that's an amazing and beautiful picture, by the way): img.wallpaperstock.net:81/… 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.