~ubuntu-branches/debian/stretch/phatch/stretch

« back to all changes in this revision

Viewing changes to phatch/actions/fit.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski, Stani M, Piotr Ożarowski
  • Date: 2008-03-06 20:09:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080306200911-4w5f664fx4fg6jun
Tags: 0.1.1-1
* New upstream release 

[ Stani M ]
* Short and long description updated

[ Piotr Ożarowski ]
* Add myself to Uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    __doc__     = _t('Downsize and crop image with fixed ratio')
45
45
    
46
46
    def interface(self,fields):
47
 
        fields[_t('Width')]            = self.PixelField('100px')
48
 
        fields[_t('Height')]           = self.PixelField('100px')
49
 
        fields[_t('Resolution')]       = self.DpiField('<%s>'%_t('dpi'))
 
47
        fields[_t('Width')]            = self.PixelField('100px',
 
48
                                                choices=self.PIXELS)
 
49
        fields[_t('Height')]           = self.PixelField('100px',
 
50
                                                choices=self.PIXELS)
 
51
        fields[_t('Resolution')]       = self.DpiField(choices=self.DPIS)
50
52
        fields[_t('Align Horizontal')] = self.SliderField(50,0,100)
51
53
        fields[_t('Align Vertical')]   = self.SliderField(50,0,100)
52
54
        fields[_t('Bleed')]            = self.SliderField(0,0,100)