Sharex: Add WebP support

Created on 5 Jul 2015  路  15Comments  路  Source: ShareX/ShareX

As in the title. It's more efficient than JPEG and whatever else, and it'd be pretty cool to be the first screenshot app with this format's support.

Enhancement

Most helpful comment

That's a pretty good fix for now, and I'll use it for the time being, but I still think there should be official support. Command line tools aren't really user-friendly after all, most people probably wouldn't even try.

All 15 comments

When none of the browsers support it what is point.

It's getting there, Chromium has got it working, that means default Android browsers since 4.1, Opera & Opera Mini, Chrome 31 and up. http://caniuse.com/#feat=webp
Would there be a possibility to make it as a plugin for ShareX?

And what about Firefox or other browser users they won't see anything? Is it acceptable for them to not see anything?

Then why there's BMP or TIFF in the options? These formats aren't too widely acceptable for online storage.

Both bmp and tiff openable by default in Windows. WebP not.
Also adding bmp and tiff support is like 5 seconds job. If WebP was easy like this I would add it too ofc.

@Jaex @anijatsu I started working on WebP support for ShareX, using Jose M. Pi帽eiro's light-weight WebP wrapper (GPL v3).

Right now, you can select it as an image format for capturing WebP files that can be saved to file or uploaded to an image host that accepts WebP. The "JPEG quality" setting is reused for lossy encoding quality right now. Lossless encoding is supported, but no setting exists for it yet.

gimp-2 9_2018-02-04_13-38-38

Main issue right now is that there are multiple methods for loading and saving image files/streams in ShareX's code base, and each needs different handling for WebP files (so for example, previews don't work and the different tools that allow loading and saving images don't support the format).

But it definitely is possible and could be fully integrated into the program with a bit more work! :)

Sorry but I'm trying to decrease external dependencies in ShareX, not add more.

With the ability to record animated WebPs, will we see the option to take static WebP screenshots as well?

I _really_ want static WebP support. At this point every major browser supports WebP, except for IE (which is dead) and Safari (which apple is... _courageous_). I'm attempting to switch to WebP as much as I can for images, and ShareX is somewhat limiting that. I think at this point it's worth the effort, considering the now wide support and large benefits of the format. I'd also love to see additional options for stuff like alpha compression, near lossless, and compression time like with cwebp.

Technically you can still use WebP output using Actions feature and CLI app which can convert lossless PNG to WebP.

That's a pretty good fix for now, and I'll use it for the time being, but I still think there should be official support. Command line tools aren't really user-friendly after all, most people probably wouldn't even try.

@Jaex So will this be added? not sure why it was closed as support was evidently going to increase over time. Now Safari also supports WebP so the only incompatible browser is IE.

@Jaex All modern browsers support WebP now. Even large image sharing sites such as gfycat now use it everywhere. There's almost no reason to use animated gifs anymore.

BUMP! We're reaching the point where all browsers support WebP now; Safari is the only browser that doesn't but it will very soon with version 14. Discord also fully supports embedding WebP images.

I have slow upload bandwidth (3mbps) so PNG screenshots of games and photographic stuff like that take a long time to upload. JPEG uploads _much_ faster but it doesn't support transparency which I need for the shadow effect applied to my screenshot. As I mainly post them on Discord I set the background color to match discord to work-around it but this isn't ideal. It would be very useful to have a format that supports both lossy compression _and_ transparency. While also being even more efficient with size, helping images upload even faster. And WebP may also be a significant upgrade over GIFs, which are terribly efficient with file size, although platforms like discord don't support them yet.

I really think it's time to implement WebP support.

Will you be adding WebP support?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sparxz picture sparxz  路  4Comments

nickodemos picture nickodemos  路  3Comments

WebFreak001 picture WebFreak001  路  3Comments

notesplaymyheart picture notesplaymyheart  路  3Comments

skygate2012 picture skygate2012  路  3Comments