When a property is first uploaded PIL creates all the different sized
thumbnails from any accompanying images. They are placed in the upload
folder with filenames added to the db like any other form uploaded
file. The files are fetched by a customised download function that
builds the path, adds a few headers, and streams the file. A "last-
modified" header helps with caching:

response.headers['Last-Modified'] = time.strftime("%a, %d %b %Y %H:%M:
%S +0000", time.localtime(os.path.getmtime(filename)))

Nothing special on the server config side. Hardware is a single slice
VPS.


On Jun 1, 5:10 pm, pbreit <pbreitenb...@gmail.com> wrote:
> Are you doing anything special in regards to how images are uploaded,
> cropped and saved?

Reply via email to