[docs] [issue25959] tkinter - PhotoImage.zoom() causes segfault

Serhiy Storchaka report at bugs.python.org
Sun Dec 27 11:09:59 EST 2015


Serhiy Storchaka added the comment:

Arguments for PhotoImage.zoom() are zoom factors, not the dimension of the result. In you case you are trying to create an image with size 54000x29964 pixels. This is over 1.6 gigapixels.

Here is pure Tcl equivalent of Python example. It should reproduce the crash.

There is a documentation bug in Tkinter. PhotoImage.zoom() docstring is not clear. This can and should be fixed.

There is a bug in Tk. It shouldn't crash processing image even if the result has incredible size. But we can't do anything with this bug besides reporting to mainstream.

Requalified this issue as easy documentation issue.

----------
assignee:  -> docs at python
components: +Documentation
keywords: +easy
nosy: +docs at python
stage:  -> needs patch
type: crash -> enhancement
versions: +Python 3.5, Python 3.6 -Python 3.4
Added file: http://bugs.python.org/file41433/test_issue25959.tcl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25959>
_______________________________________


More information about the docs mailing list