Skip to content
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

Feature request: skip urldecode (optional) #89

Open
jan-dh opened this issue Mar 21, 2017 · 0 comments
Open

Feature request: skip urldecode (optional) #89

jan-dh opened this issue Mar 21, 2017 · 0 comments

Comments

@jan-dh
Copy link

jan-dh commented Mar 21, 2017

I was wondering, would it be possible to add an extra option to an image transform to ignore the urldecode? I'm using imager to get some static images from Mapbox with a png marker on.

Mapbox requires the url for those images in the following format:

curl "https://api.mapbox.com/styles/v1/mapbox/streets-v10/static/url-https%3A%2F%2Fmapbox.com%2Fimg%2Frocket.png(-76.9,38.9)/-76.9,38.9,15/1000x1000?access_token=your-access-token"

However, the urldecode in _downloadFile cleans this up and makes it into:

curl "https://api.mapbox.com/styles/v1/mapbox/streets-v10/static/url-https://mapbox.com/img/rocket.png(-76.9,38.9)/-76.9,38.9,15/1000x1000?access_token=your-access-token"

making it unable to find the image. Image caching of those mapbox images would be a big deal.

@jan-dh jan-dh changed the title urldecode Feature request: urldecode Mar 21, 2017
@jan-dh jan-dh changed the title Feature request: urldecode Feature request: skip urldecode (optional) Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants