s0hv / rust-imgur-upload

Rust imgur uploader for use with the Discord Rich Presence foobar2000 plugin
MIT License
24 stars 1 forks source link

Imgur doesn't support WEBp files #9

Open Sky7734 opened 1 month ago

Sky7734 commented 1 month ago

I have a very niche scenario where I'm using the Youtube Source plugin to listen to songs more easily, and for the most part both the imgur uploader and Rich Presence plugin work great together! However, because of this setup, the thumbnail will occasionally be a WEBP. For some reason, Imgur doesn’t support WEBps, leading to an error whenever it tries to upload. My current work around is to just use the catbox uploader and so far that's working great! Although it would be nice to automatically convert WEBp to PNG specifically for imgur just in case some other poor soul has a similar issue.

s0hv commented 1 month ago

While this is a problem with the program, I feel like this kind of functionality would add quite a bit of bloat to the program. A simpler solution would be to use a custom script which first converts the image if it is in an unsupported format and then passes the new filename to the upload script. For example ffmpeg can be used for this if it is compiled with webp support ffmpeg -i "image.webp" "image.jpg" .

shirafukayayoi commented 3 weeks ago

I have a very niche scenario where I'm using the Youtube Source plugin to listen to songs more easily, and for the most part both the imgur uploader and Rich Presence plugin work great together! However, because of this setup, the thumbnail will occasionally be a WEBP. For some reason, Imgur doesn’t support WEBps, leading to an error whenever it tries to upload. My current work around is to just use the catbox uploader and so far that's working great! Although it would be nice to automatically convert WEBp to PNG specifically for imgur just in case some other poor soul has a similar issue.

Thanks to you, I was able to solve my problem as well! Thank you. Really, thank you.