pyportal and image-formatter issue

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
colonwq2
 
Posts: 11
Joined: Sat Feb 21, 2015 8:27 pm

pyportal and image-formatter issue

Post by colonwq2 »

Is this possible:

I'm trying to get my pyportal to use the image-formatter to convert a png/jpg/gif generated from the Google Maps API.

I can use my Google API URL to download an image to my browser.
I can use the image-formatter to convert random images
When I try to combine the two, I get the following error message:
{"error":"request failed - failed to load and process image"}

Here is an example combined URL with lots of secrets removed:
https://io.adafruit.com/api/v2/MYNAME/i ... YGOOGLEKEY


Thanks for any help.

User avatar
siddacious
 
Posts: 407
Joined: Fri Apr 21, 2017 3:09 pm

Re: pyportal and image-formatter issue

Post by siddacious »

I don't think that the image formatter can handle the complex URLs returned by google maps. Additionally since the request would be coming from the adafruit.io servers or whatever the image-formatter is backed by, there is a good chance google doesn't like the request.

I would try sideloading the image to a another service like imgur, dropbox, or some other service that allows plain direct links to the image.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”