diff options
Diffstat (limited to 'apps/photos/retriever.py')
-rw-r--r-- | apps/photos/retriever.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/photos/retriever.py b/apps/photos/retriever.py index 137fe9f..f7114fd 100644 --- a/apps/photos/retriever.py +++ b/apps/photos/retriever.py @@ -173,6 +173,10 @@ def slideshow_image(photo): else: filename = '%s/%s.jpg' %(slide_dir, photo.flickr_id) img.save(filename) + photo.slideshowimage_width = photo.get_width + photo.slideshowimage_height = photo.get_height + photo.slideshowimage_margintop = photo.get_margin_top + photo.slideshowimage_marginleft = photo.get_margin_left def make_local_copies(photo): orig_dir = settings.IMAGES_ROOT + '/flickr/full/'+ photo.pub_date.strftime("%Y") @@ -206,6 +210,7 @@ def make_local_copies(photo): local_med = '%s/%s.jpg' %(med_dir, photo.flickr_id) img.save(local_med) + def make_gallery_thumb(photo,set): crop_dir = settings.IMAGES_ROOT + '/gallery_thumbs/' |