Iuri de Silvio

Results 88 comments of Iuri de Silvio

Just to add a data point. I think I reached this deadlock yesterday in production. My uwsgi hanged after trying recycle workers that reached `max-worker-lifetime`. I changed my production setup...

Code to do it with .png: http://stackoverflow.com/questions/8032642/how-to-obtain-image-size-using-standard-python-class-without-using-external-lib You have to read only some file headers.

Also, PIL does not load the image to memory on `.open`. http://stackoverflow.com/a/19034942/617395

I don't have much experience with GAE, but looks like googlecloudstorage is the way to go. The all-in-memory is possible with GAE? It will use a lot of memory and...

Yes, makes sense even outside GAE. A backend abstraction is the first thing to be done. :+1:

You have to pull request your extension is Flask Extensions Registry. Flask has some docs about how to approve the extension. http://flask.pocoo.org/docs/extensiondev/#approved-extensions

I copied the guidelines to approved extensions in the issue to make it happen. You can add it to the registry even without it, but it will not have the...

So, you just have to publish the docs. All other requirements are ok.

You missed the URL scheme, probably http or https. ``` src="{{resized_img_src('http://www.example.com/pics/mypicture.jpg') }} ```

Yes! Windows is the problem! From Python docs (https://docs.python.org/2/library/os.path.html#os.path.normpath): > Normalize a pathname by collapsing redundant separators and up-level references so that A//B, A/B/, A/./B and A/foo/../B all become A/B....