Have to put files in static_dir but need to read them afterwards
Posted
by
SanjamX
on Stack Overflow
See other posts from Stack Overflow
or by SanjamX
Published on 2013-10-19T15:42:23Z
Indexed on
2013/10/19
15:54 UTC
Read the original article
Hit count: 207
I just started using google app engine. In order to use templates, I'm using jinja2. I want to add images dynamically after I set the width and height of the img tag. I used PIL in order to read the image size and put the one I want.
However when I open the image with PIL, I need it not to be in a static_dir and to put the image in the img tag, I need it to be in the static_dir.
As a testing solution I've copied the folder to see if I get results and I did. But as you can see having each image saved twice is kind of bad.
© Stack Overflow or respective owner