rust-imgur-upload icon indicating copy to clipboard operation
rust-imgur-upload copied to clipboard

Imgur doesn't support WEBp files

Open Sky7734 opened this issue 1 year ago • 2 comments

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.

Sky7734 avatar Jul 16 '24 08:07 Sky7734

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" .

s0hv avatar Jul 19 '24 11:07 s0hv

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.

shirafukayayoi avatar Aug 17 '24 15:08 shirafukayayoi