Imager-Craft
Imager-Craft copied to clipboard
Feature request: skip urldecode (optional)
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.