We ended up going with Google+ for hosting images (long laborious story, don't ask ;). Mappers add image tags to associated OSM objects. There are multiple images per school, so multiple tags ("image:classroom", "image:compound", "image:outside", "image:other"). data/sync.py now copies these down to a local cache, and resizes; and constructs the "osm:images" property to be links to the local cache of these files. Right now, it's only creating a "med" image. This turns out to be a nice generic way of handling images anywhere, at least.
I placed the cache in content/images. Only committed the resized versions, otherwise too huge and unnecessary for git. Added a subroutine to manage.py that simply copies the images over to build/data/images. Before I did a pull request ... what do you think? Better place / method?
Next up, I may create a couple sizes, one for initial display, and one for lightbox when clicked on (rather than opening the image directly). May also make the top image area taller, give them a little more prominence.
Phil
I've just been working on image caching. https://github.com/mikelmaron/map-kibera-schools/commit/b336000f2ed127e37f997b3eee21a9b367b6c416
We ended up going with Google+ for hosting images (long laborious story, don't ask ;). Mappers add image tags to associated OSM objects. There are multiple images per school, so multiple tags ("image:classroom", "image:compound", "image:outside", "image:other"). data/sync.py now copies these down to a local cache, and resizes; and constructs the "osm:images" property to be links to the local cache of these files. Right now, it's only creating a "med" image. This turns out to be a nice generic way of handling images anywhere, at least.
I placed the cache in content/images. Only committed the resized versions, otherwise too huge and unnecessary for git. Added a subroutine to manage.py that simply copies the images over to build/data/images. Before I did a pull request ... what do you think? Better place / method?
Next up, I may create a couple sizes, one for initial display, and one for lightbox when clicked on (rather than opening the image directly). May also make the top image area taller, give them a little more prominence.
-Mikel