So I tried a few old pkpasses. And I found that my cinemy includes movie pictures as thumbnails. The files are marked with a .png extension, but are in real jpeg.
flatpak run me.sanchezrodriguez.passes
Traceback (most recent call last):
File "/app/share/passes/passes/main.py", line 127, in _on_file_chosen
pkpass = PassFactory.create(pkpass_file)
File "/app/share/passes/passes/digital_pass_factory.py", line 41, in create
digital_pass = this_class.create_pkpass(archive)
File "/app/share/passes/passes/digital_pass_factory.py", line 65, in create_pkpass
pixbuf = thisClass.create_pixbuf_from_filename(archive, file_name)
File "/app/share/passes/passes/digital_pass_factory.py", line 102, in create_pixbuf_from_filename
loader.write(image_data)
gi.repository.GLib.GError: gdk-pixbuf-error-quark: Fatal error reading PNG image file: Not a PNG file (0)
❯ unzip pass.pkpass
Archive: pass.pkpass
inflating: [email protected]
inflating: [email protected]
inflating: icon.png
inflating: [email protected]
inflating: [email protected]
inflating: background.png
inflating: [email protected]
inflating: logo.png
inflating: [email protected]
inflating: [email protected]
inflating: [email protected]
inflating: thumbnail.png
inflating: pass.json
inflating: manifest.json
inflating: signature
❯ file *.png
[email protected]: PNG image data, 720 x 880, 8-bit colormap, non-interlaced
[email protected]: PNG image data, 1080 x 1320, 8-bit colormap, non-interlaced
background.png: PNG image data, 360 x 440, 1-bit colormap, non-interlaced
[email protected]: PNG image data, 240 x 240, 8-bit/color RGB, non-interlaced
[email protected]: PNG image data, 360 x 360, 8-bit/color RGB, non-interlaced
icon.png: PNG image data, 120 x 120, 8-bit/color RGB, non-interlaced
[email protected]: PNG image data, 400 x 200, 8-bit gray+alpha, non-interlaced
[email protected]: PNG image data, 600 x 300, 8-bit gray+alpha, non-interlaced
logo.png: PNG image data, 200 x 100, 8-bit gray+alpha, non-interlaced
[email protected]: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, progressive, precision 8, 320x451, components 3
[email protected]: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, progressive, precision 8, 480x677, components 3
thumbnail.png: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, progressive, precision 8, 160x226, components 3