Page 1 of 1
Unable to open file on specific URL
Posted: 2015-04-23T03:16:21-07:00
by kicks77
I have the following image:
http://www.tapcoffee.co.uk/images/bg1.jpg
I am trying to process it with ImageMagick, but receiving an error
Code: Select all
unable to open file /tmp/magick/xxxx
I have tried uploading to imgur and that also fails, what is wrong with this specific image?
Re: Unable to open file on specific URL
Posted: 2015-04-23T04:41:31-07:00
by snibgo
bg1.jpg converts for me with no problem, IM v6.9.1-0. What version of IM are you using? What is the exact command?
Re: Unable to open file on specific URL
Posted: 2015-04-23T10:01:38-07:00
by kicks77
Ive tested with latest and im having issues (PHP). Ive done some investigating and found that the URL is sending Content-Type: text/html; charset=utf-8, is it possible to tell ImageMagick that it is an image?
Re: Unable to open file on specific URL
Posted: 2015-04-23T10:20:45-07:00
by Bonzo
Works OK for me using php but it is very slow.
Re: Unable to open file on specific URL
Posted: 2015-04-23T13:26:16-07:00
by snibgo
kicks77 wrote:Ive tested with latest and im having issues (PHP). Ive done some investigating and found that the URL is sending Content-Type: text/html; charset=utf-8, is it possible to tell ImageMagick that it is an image?
From this, I guess your command was something like:
Code: Select all
convert http://www.tapcoffee.co.uk/images/bg1.jpg c.png
No, you can't tell IM that it is an image. Because it isn't. If you wget that address, and cat (Unix) or type (Windows) the file, you will see something like this:
Code: Select all
<html><head><title>Request Rejected</title></head><body>The requested URL was rejected. If you think this is an error, please contact the webmaster. <br><br>Your support ID is: 15891905563042779399</body></html>