Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not opening png images #176

Open
MalcolmReed-ent opened this issue Aug 7, 2024 · 9 comments
Open

Not opening png images #176

MalcolmReed-ent opened this issue Aug 7, 2024 · 9 comments

Comments

@MalcolmReed-ent
Copy link

System Information:

OS: Debian GNU/Linux Trixie (trixie/sid) x86_64
Kernel: Linux 6.10.3-amd64
Version: swayimg version 3.0

Issue Description: I am experiencing an issue with launching PNG images using swayimg. When I attempt to open an image file through a GUI file manager with the swayimg.desktop file, all image types open correctly except for PNG files. Additionally, when I try to view a PNG image from the terminal, the application hangs indefinitely, until i Ctrl+c it.

@artemsen
Copy link
Owner

artemsen commented Aug 7, 2024

Could you please attach a sample PNG?

@MalcolmReed-ent
Copy link
Author

Greek-Prometheus

@MalcolmReed-ent
Copy link
Author

This is one of the images I was trying to open, but just wouldnt work.

@artemsen
Copy link
Owner

artemsen commented Aug 7, 2024

Debian Trixie has swayimg 2.5. Did you compile swayimg yourself?

@MalcolmReed-ent
Copy link
Author

Im on Debian Sid, im using

swayimg/unstable,now 3.0-1 amd64 [installed]
image viewer for Sway/Wayland

@artemsen
Copy link
Owner

artemsen commented Aug 7, 2024

Looks like something wrong with libpng. I cant reproduce the bug in my system.
Could you build swayimg from source to check?

meson setup _build_dir
meson compile -C _build_dir
_build_dir/swayimg test.png

@MalcolmReed-ent
Copy link
Author

When i compiled the git version and running the distro's version, I noticed that PNGs work correctly on certain type of pngs. However, when using swayimg with both the compiled and repository versions on this image file 'swayimg/extra/icon_128.png', it works fine, but not for other PNG images. Down below is where i 'exiftool' both images, the first being the working one.

[malcolm@enterprise extra]$ exiftool icon_128.png
ExifTool Version Number : 12.76
File Name : icon_128.png
Directory : .
File Size : 24 kB
File Modification Date/Time : 2024:08:07 14:01:59-04:00
File Access Date/Time : 2024:08:07 14:02:21-04:00
File Inode Change Date/Time : 2024:08:07 14:01:59-04:00
File Permissions : -rw-rw-r--
File Type : PNG
File Type Extension : png
MIME Type : image/png
Image Width : 128
Image Height : 128
Bit Depth : 8
Color Type : RGB with Alpha
Compression : Deflate/Inflate
Filter : Adaptive
Interlace : Noninterlaced
Gamma : 2.2
SRGB Rendering : Relative Colorimetric
White Point X : 0.3127
White Point Y : 0.329
Red X : 0.64
Red Y : 0.33
Green X : 0.3
Green Y : 0.6
Blue X : 0.15
Blue Y : 0.06
Image Size : 128x128
Megapixels : 0.016

[malcolm@enterprise ~]$ exiftool Greek-Prometheus.png
ExifTool Version Number : 12.76
File Name : Greek-Prometheus.png
Directory : .
File Size : 331 kB
File Modification Date/Time : 2024:08:07 14:35:00-04:00
File Access Date/Time : 2024:08:07 14:35:00-04:00
File Inode Change Date/Time : 2024:08:07 14:35:00-04:00
File Permissions : -rw-rw-r--
File Type : PNG
File Type Extension : png
MIME Type : image/png
Image Width : 1919
Image Height : 1080
Bit Depth : 8
Color Type : RGB
Compression : Deflate/Inflate
Filter : Adaptive
Interlace : Noninterlaced
Pixels Per Unit X : 0
Pixels Per Unit Y : 1
Pixel Units : Unknown
Image Size : 1919x1080
Megapixels : 2.1

@artemsen
Copy link
Owner

artemsen commented Aug 8, 2024

I am not sure, but may be github converted the image from #176 (comment)
Could you archive couple of problem images and attache the archive?

@artemsen
Copy link
Owner

artemsen commented Aug 8, 2024

I have installed Debian trixie/sid in QEMU VM.
Swayimg works as expected, at least this image opens fine.
So either github is converting the attachment or there is some problem on your local machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants