New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported filetype for valid image using geturl.php #108
Comments
are you using the docker container or did you install it yourself? If it's the latter it looks like you're missing some libraries.. does the server have the |
Its using shtripok's docker (necessary for arm compatibility too I think). My
Did you test this one out? edit: I also forgot to mention, that most urls work, its just some don't. |
Actually the latest official docker images detect the architecture and should work on ARM without a problem But it seems that the site you're using is checking some sessions or something because when I open your image in the browser it works But when I download it with curl It's answering with <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>401 Unauthorized - missing signature</title>
</head>
<body>
<h1>Error 401 Unauthorized - missing signature</h1>
<p>Unauthorized - missing signature</p>
<h3>Guru Mediation:</h3>
<p>Details: cache-vie21641-VIE 1582891201 3100362804</p>
<hr>
<p>Varnish cache server</p>
</body>
</html> So it's not a problem with Pictshare, it's the caching server that required some headers probably |
Hrm this is strange... when I run that exact same curl command on my local machine, it does download the picture fine. What curl you on?
|
Sorry I copied the link after I put it in my browser. when you curl with the original link you posted
You'll get the error. It seems one of the variables attached to the image is a session ID that's not available for long |
That one is different than the link I posted at the top, it seems to have a lot of extra slashes. This command is correctly downloading the image: |
Did you rawurlencode the URL before attaching it to
Pictshare would only see if you rawurlencode it to and attach it encoded to the api, it works on my end
returns {
"status": "ok",
"hash": "o5x75s.jpg",
"url": "https://pictshare.net/o5x75s.jpg",
"filetype": "jpeg",
"delete_code": "z11o0dyzgwdg6oqz08zrx4h18d0vvw",
"delete_url": "https://pictshare.net/delete_z11yzgwdg6oqz08zigrx4h18d0vvw/o5x75s.jpg"
} |
That did it, thanks! |
Could you help me test this seemingly valid image with geturl.php?
https://MY_PICTSHARE.com/pictshare/api/geturl.php?url=https://i.guim.co.uk/img/media/4d908693e566fdd7f8cdeac559f6375b739887a3/356_37_3264_1958/master/3264.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctZGVmYXVsdC5wbmc&enable=upscale&s=3a70177dcc60673c606302d96fcbd9bc
Error:
The text was updated successfully, but these errors were encountered: