class ssukssukee(object):
def generate_ssukssukee(request):
svg='''<?xml version="1.0" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body_1" width="900" height="600">
<g transform="matrix(1.3333334 0 0 1.3333334 0 0)">
<rect xmlns="http://www.w3.org/2000/svg" width="350" height="170" rx="10" ry="10" class="background"/>
<text font-size="68" font-family="Chango" stroke="#000" stroke-width="1.5" >
<tspan x="120" y="165">SVG Text</tspan>
</text>
</g>
</svg>
'''
response = HttpResponse(content=svg)
response['Content-Type'] = 'image/svg+xml'
response['Cache-Control'] = 'no-cache'
return response
소스코드는 보시는 바와 같이 매우 단순합니다.
svg 이미지만을 첨부한 상태입니다.
웹페이지를 실행시키면 다음과 같은 페이지가 로딩됩니다(아직 시험용이라 이미지는 양해부탁드립니다.)
그런데 정작 깃허브 리드미에 이미지URL을 적으면 엑박이 뜹니다.
혹시 원인을 알 수 있을까요??ㅠㅠ