avataaars-generator icon indicating copy to clipboard operation
avataaars-generator copied to clipboard

Force server to return svg file

Open tacman opened this issue 4 years ago • 0 comments

When I run the application locally, I can't embed svg images

{% set url = 'https://127.0.0.1:8007/?accessoriesType=Kurt&avatarStyle=Transparent&clotheColor=Gray02&clotheType=ShirtVNeck&eyeType=Side&eyebrowType=RaisedExcitedNatural&facialHairColor=Red&facialHairType=BeardLight&hairColor=Blonde&mouthType=Default&skinColor=Pale&topType=LongHairCurly' %}

<img src="{{ url }}" />

When I inspect what's returned, it's the html page, not the svg.

Is there a way to "trigger" an svg download, e.g. /myavatar.svg?accessoriesType=Kurt&avatarStyle=Transparent&clotheColor=Gray02&clotheType=ShirtVNeck

That might make caching easier, too.

tacman avatar May 04 '20 15:05 tacman