OpenData-NC / columbus-county-nc

OpenRural installation for Columbus County, NC
http://columbusco.openrural.org/
6 stars 1 forks source link

Resize home photos #76

Closed rtburg closed 12 years ago

rtburg commented 12 years ago

In order to reduce page weight, would it be possible for us to resize the jpgs of the photos before posting them?

sarahdooley commented 12 years ago

@rebecca-caktus how much time would you estimate for this task?

ghost commented 12 years ago

Using sorl-thumbnail fixes this issue easily! Unfortunately, the template tags of this app conflict with easy_thumbnails, which is used in OpenBlock. We get away with using sorl because 1) we put it in INSTALLED_APPS first, so that Django sees it first, and 2) OpenBlock never uses the template tags of easy_thumbnails, so there is nothing existing to overwrite. Until further functionality is needed, this is probably an acceptable solution.

Photos aren't showing up on staging right now because it isn't configured to serve media files (#106).

kmtracey commented 12 years ago

106 is fixed now. The nginx config is set up to serve media files, but it assumes their url path starts with /media/. For some reason default openblock settings change media url to /uploads/. I changed our settings to override this openblock default and put media files back at /media/, now nginx will serve them.