You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.
just #52 shows,I changed to those following:
`
@app.route('/large/path:path')
def static_file_large(path):
try:
return open("ui/large/" + path).read()
except:
base_dir =os.getcwd()
print('here %s'%("ui/large/" + path))
image = Image.open(os.path.join(base_dir,"ui","large" , path),mode='r')
imgByteArr = BytesIO()
image.save(imgByteArr,format='PNG')
return imgByteArr
#return send_file(imgByteArr, mimetype="image/jpeg")#"ui/large/" + path
#return send_file("ui/large/" + path, mimetype='image/gif')#Image.open("ui/large/" + path)
`
but when i oepn the browser,there is nothing showed.The sceen is full of blank,what should i do
The text was updated successfully, but these errors were encountered: