waycrate / wayshot

Mirrored at https://git.sr.ht/~shinyzenith/wayshot | screenshot tool for wlroots based compositors implementing zwlr_screencopy_v1
https://crates.io/crates/wayshot
BSD 2-Clause "Simplified" License
108 stars 18 forks source link

Bug: Clipboard MIMEType autodectection not functional for formats apart from JPEG/PNG #107

Open Shinyzenith opened 3 months ago

Shinyzenith commented 3 months ago

This could potentially be an issue with wl-clipboard-rs and should be reported upstream after further investigation.

Shinyzenith commented 3 months ago

CC: @CheerfulPianissimo

CheerfulPianissimo commented 3 months ago

On further investigation, it appears that every encoding but .ppm is successfully detected. This is likely an issue with tree_magic_mini, the library used for mimetype autodetection which gives "application/octet-stream" for those.

Also to be noted that using the ppm encoding actually creates a .pam file and not a ppm image. They belong to the same family but are slightly different.