Hi,

thanks for reporting this.
It looks like you running PhotoFilmStrip from source. Whats your environment you running it on? Especially python version and wxPython version? As a quick fix you might edit the file "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py" on line 675.
Change the line:
img = self._wxImg.Scale(width, height)
to
img = self._wxImg.Scale(int(round(width)), int(round(height)))

I have a look at the issue myself and try to publish a fix.

Regards,
Jens








Zitat von Gravis <noreply+debian.reportbug.photofilmst...@adaptivetime.com> (So 29 Mai 2022 13:31:37 CEST):

Package: photofilmstrip
Version: 3.7.3-2
Severity: important
X-Debbugs-Cc: noreply+debian.reportbug.photofilmst...@adaptivetime.com

Dear Maintainer,

   * What led up to the situation?
Run program (GUI mode), create new project, add picture.

   * What was the outcome of this action?
Program throws an uncaught exception before hanging:

File "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py", line 481, in
OnResize
    self.__Scale()
  File "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py", line 122,
in __Scale
    self._imgProxy.Scale(newWidth, newHeight)
  File "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py", line 675,
in Scale
    img = self._wxImg.Scale(width, height)
TypeError: Image.Scale(): argument 1 has unexpected type 'float'


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages photofilmstrip depends on:
ii  gstreamer1.0-libav  1.20.2-1
ii  libjs-sphinxdoc     4.5.0-3
ii  python3             3.10.4-1+b1
ii  python3-gst-1.0     1.20.2-1
ii  python3-pil         9.1.0-1
ii  python3-wxgtk4.0    4.0.7+dfsg-13

photofilmstrip recommends no packages.

photofilmstrip suggests no packages.

Reply via email to