[Python-apps-team] Bug#757247: phatch fails to edit and save jpg
ben
spamwall at quantentunnel.de
Wed Aug 6 15:51:57 UTC 2014
Package: phatch
Version: 0.2.7.1-3
Severity: normal
Dear Maintainer,
* What led up to the situation?
Jessie/testing phatch: edit some pictures with "scale", "watermark", "save"
with the added actionlist.
* What was the outcome of this action?
Loading the images works as expected, but editing and saving fails because of a
new definition(?) within python-pillow
I searched the error output and found this:
https://github.com/radarhere/Pillow/commit/1aee9bfdef1d73007d8e35ab883c8c936c1da602
After editing Image.py as shown there (i.e. adding the lines
+ if self.__class__.__name__ != other.__class__.__name__:
+ return False
after the
def __eq__(self, other):
)
phatch worked as expected. I don't know if any other application will get
problems because of this patch but for phatch it will be a good choice
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (100,
'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.14-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages phatch depends on:
ii phatch-cli 0.2.7.1-3
ii python-wxgtk2.8 2.8.12.1+dfsg2-1
ii python-wxversion 2.8.12.1+dfsg2-1
pn python:any <none>
ii xdg-utils 1.1.0~rc1+git20111210-7.1
phatch recommends no packages.
Versions of packages phatch suggests:
pn blender <none>
ii inkscape 0.48.5-1
-- no debconf information
*** /home/ben/.local/share/phatch/actionlists/test.phatch
{'actions': [{'fields': {'Canvas Height': u'64 %',
'Canvas Width': u'64 %',
'Constrain Proportions': 'yes',
'Resample Image': 'automatic',
'Resolution': u'72',
'Scale Down Only': 'no',
'__enabled__': 'yes'},
'label': 'Scale'},
{'fields': {'Horizontal Justification': 'Left',
'Horizontal Offset': u'5 %',
'Mark': u'/home/ben/Images/ebay/watermark.png',
'Method': u'By Offset',
'Offset': u'5 %',
'Opacity': u'100',
'Orientation': u'Normal',
'Position': u'Bottom Left',
'Vertical Justification': 'Bottom',
'Vertical Offset': u'-5 %',
'__enabled__': 'yes'},
'label': 'Watermark'},
{'fields': {'As': u'jpg',
'File Name': u'EBAY<###index>',
'In': u'<folder>/<subfolder>',
'JPEG Quality': u'85',
'JPEG Size Maximum': '0 kb',
'JPEG Size Tolerance': '10 kb',
'Metadata': 'yes',
'PNG Optimize': 'no',
'Resolution': u'72',
'Show Type Options': 'no',
'TIFF Compression': u'<compression>',
'__enabled__': 'yes'},
'version': '0.2.7'}
More information about the Python-apps-team
mailing list