wayshot icon indicating copy to clipboard operation
wayshot copied to clipboard

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

Open Shinyzenith opened this issue 11 months ago • 2 comments

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

Shinyzenith avatar Mar 23 '24 17:03 Shinyzenith

CC: @CheerfulPianissimo

Shinyzenith avatar Mar 23 '24 17:03 Shinyzenith

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.

CheerfulPianissimo avatar Mar 24 '24 05:03 CheerfulPianissimo