~ubuntu-branches/debian/jessie/phatch/jessie

« back to all changes in this revision

Viewing changes to phatch/actions/lossless_jpeg.py

  • Committer: Bazaar Package Importer
  • Author(s): Stani M
  • Date: 2009-10-01 05:36:09 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20091001053609-wvy9yu0u3i6fuv4t
Tags: 0.2.2-1
* Upstream bugfix release (Closes LP: #236548, #436595, #437161, 
 #437376, #437852, #439108, #439359, #440273, #440956)
* debian/control: Dropped dependency python-wxgtk2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        if format == 'JPEG':
75
75
            super(JpegUtility, self).execute(photo)
76
76
        else:
77
 
            raise Exception('%s:\n%s' \
 
77
            raise Exception('%s\n%s' \
78
78
                % (LOSSLESS_JPEG_FORMAT_ERROR%format, info['path']))
79
79
 
80
80
class Exiftran(JpegUtility):
270
270
    """This has to work on the source file immediately, otherwise
271
271
    it makes no sense."""
272
272
    def call(self,photo, info, utility):
 
273
        format = info['format']
 
274
        if format == 'JPEG':
 
275
            super(JpegUtility, self).execute(photo)
 
276
        else:
 
277
            raise Exception('%s:\n%s' \
 
278
                % (LOSSLESS_JPEG_FORMAT_ERROR%format, info['path']))
 
279
 
273
280
        system.call(utility.get_command_line(self,photo, info['path'],
274
281
            self.get_lossless_filename(photo,info)))
275
282