diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-14 11:34:31 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 15:30:21 -0700 |
commit | d4380b52b6e49cb0fc1942e77dc8662f38f48ed6 (patch) | |
tree | 79b7be3ed232c45d9f7bb865e21e9a72ff429961 | |
parent | 96109a58dab80fc66310d40f0fdeb83fc8c5a5d0 (diff) | |
download | mediagoblin-d4380b52b6e49cb0fc1942e77dc8662f38f48ed6.tar.lz mediagoblin-d4380b52b6e49cb0fc1942e77dc8662f38f48ed6.tar.xz mediagoblin-d4380b52b6e49cb0fc1942e77dc8662f38f48ed6.zip |
include '.png' in filename
-rw-r--r-- | mediagoblin/media_types/pdf/processing.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mediagoblin/media_types/pdf/processing.py b/mediagoblin/media_types/pdf/processing.py index 906be436..c7c85e20 100644 --- a/mediagoblin/media_types/pdf/processing.py +++ b/mediagoblin/media_types/pdf/processing.py @@ -281,7 +281,9 @@ class CommonPdfProcessor(MediaProcessor): _log.debug('calling {0}'.format(repr(' '.join(args)))) Popen(executable=executable, args=args).wait() - store_public(self.entry, 'thumb', thumb_filename, + # since pdftocairo added '.png', we need to include it with the + # filename + store_public(self.entry, 'thumb', thumb_filename + '.png', self.name_builder.fill('{basename}.thumbnail.png')) def _generate_pdf(self): @@ -324,7 +326,9 @@ class CommonPdfProcessor(MediaProcessor): _log.debug('calling {0}'.format(repr(' '.join(args)))) Popen(executable=executable, args=args).wait() - store_public(self.entry, 'thumb', filename, + # since pdftocairo added '.png', we need to include it with the + # filename + store_public(self.entry, 'thumb', filename + '.png', self.name_builder.fill('{basename}.medium.png')) |