New API image filenames #224
Replies: 3 comments 3 replies
-
That's a really good idea. 👍 I have built it in directly. |
Beta Was this translation helpful? Give feedback.
-
And crashed the API directly with it, I see. I' m on it. |
Beta Was this translation helpful? Give feedback.
-
Very nice! I see that the filename is the It also doesn't work when used as Gravatar default images unfortunately, since it seems they don't forward the header when serving the image. Not a huge deal though in any case. |
Beta Was this translation helpful? Give feedback.
-
With the new API (#179), if you save an image the filename given by default is the last segment in the path (at least in Chrome). For example:
The old/current API works well in this regard because the last segment in the URL is a filename:
Could the new API output a nicer filename, or is it not possible to add HTTP headers to the CDN file?
content-disposition: inline; filename="<seed>.<format>"
Alternatively, the seed could always be the last segment of the URL:
But perhaps the tradeoffs of this simply aren't worth the minor benefit of having nicer filenames 🤷♂️
Beta Was this translation helpful? Give feedback.
All reactions