mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
remove tag
This commit is contained in:
parent
b2f1fa936e
commit
896afd02b8
@ -380,7 +380,7 @@ class ImgHandler(tornado.web.RequestHandler):
|
|||||||
robohash.save(fakefile,format='jpeg')
|
robohash.save(fakefile,format='jpeg')
|
||||||
fakefile.seek(0)
|
fakefile.seek(0)
|
||||||
data_uri = fakefile.read().encode("base64").replace("\n", "")
|
data_uri = fakefile.read().encode("base64").replace("\n", "")
|
||||||
self.write('<img alt="sample" src="data:image/png;base64,{0}">'.format(data_uri))
|
self.write("data:image/jpeg;base64," + data_uri)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user