Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Error on run_demo.py #56

Open
xixiU opened this issue Apr 13, 2019 · 0 comments
Open

Error on run_demo.py #56

xixiU opened this issue Apr 13, 2019 · 0 comments

Comments

@xixiU
Copy link

xixiU commented Apr 13, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant