thoas / picfit

An image resizing server written in Go
http://bit.ly/1E7rSoi
MIT License
2.14k stars 177 forks source link

Can I load images not public from Google cloud storage not include "https://storage.googleapis.com" in url #158

Closed windy-itus closed 1 year ago

windy-itus commented 1 year ago

I can load image from gcs with url like "http://localhost:3001/display?url=https://storage.googleapis.com/{{BUCKET_NAME}}/static-files/avatar/af50dcd1-670b-49b9-a1f2-0945b6fd161b.jpeg&w=180&h=180&op=resize"

but i want to load image from gcs with url like "http://localhost:3001/display?url=/static-files/avatar/af50dcd1-670b-49b9-a1f2-0945b6fd161b.jpeg&w=180&h=180&op=resize" because I have already setup src with gcs in picfit config file.

Currently, Does the picfit support it?