diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-11-08 11:22:48 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-11-08 11:22:48 -0600 |
commit | 7ec0a978e0d8ba602abfe48a06c8d654bd9cc9de (patch) | |
tree | 95b282e5a62f860d75edf0d846c6a03a430a790c | |
parent | 02993c9daa7340661296ed79105f702c99c77b38 (diff) | |
download | mediagoblin-7ec0a978e0d8ba602abfe48a06c8d654bd9cc9de.tar.lz mediagoblin-7ec0a978e0d8ba602abfe48a06c8d654bd9cc9de.tar.xz mediagoblin-7ec0a978e0d8ba602abfe48a06c8d654bd9cc9de.zip |
Fixing the ascii art media type. There was an ordering issue in the code.
Moved set_file_metadata till after the thumb file was created!
This commit sponsored by Samat Jain. Thank you!
-rw-r--r-- | mediagoblin/media_types/ascii/processing.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mediagoblin/media_types/ascii/processing.py b/mediagoblin/media_types/ascii/processing.py index b3c2a298..f8983550 100644 --- a/mediagoblin/media_types/ascii/processing.py +++ b/mediagoblin/media_types/ascii/processing.py @@ -151,12 +151,13 @@ class CommonAsciiProcessor(MediaProcessor): 'width': thumb_size[0], 'height': thumb_size[1]} - self.entry.set_file_metadata('thumb', **thumb_info) - _log.debug('Copying local file to public storage') store_public(self.entry, 'thumb', tmp_thumb, self.name_builder.fill('{basename}.thumbnail.jpg')) + self.entry.set_file_metadata('thumb', **thumb_info) + + def _skip_resizing(self, font, thumb_size): thumb_info = self.entry.get_file_metadata('thumb') |