22

I've converted some images from jpeg to google's WebP image format, which reduces my images' size by about 90%!

The big problem is that WebP images can only be viewed with a web browser, not with nautilus (the thumbnails) and/or any photo program at all. It seems that at this moment there is only a codec for Windows.

Does anyone know if this is also possible in Ubuntu?

Zanna
  • 69,223
  • 56
  • 216
  • 327
Kapé
  • 335
  • 2
  • 7
  • 1
    Update: I've posted a bug report here: https://bugzilla.gnome.org/show_bug.cgi?id=659291 – Kapé Sep 23 '11 at 14:53
  • Is this old ? Actually the last version is 0.2 for cwebp in WebP Project. – glococo Sep 01 '12 at 15:09
  • 1
    for nautilus, check [this answer](http://askubuntu.com/a/617068/46437), there is also [this script](http://sourceforge.net/p/scriptechocolor/git/ci/master/tree/ScriptEchoColor/bin.extras/secWebpPreview.sh) – Aquarius Power Jun 08 '15 at 23:27

3 Answers3

11

Up to 14.04

There is a plugin for the GIMP, written by Nathan Osman.

You can add this plugin from his webptools PPA:

sudo apt-add-repository ppa:george-edison55/webp

Then install the required package: gimp-webp Install gimp-webp

sudo apt-get install gimp-webp

As for thumbnails in nautilus, this seems to be a bug with MIME, as apparently (so I was told) Nautilus already "supports" the webp format, but the thumbnails do not show up as they should.

Pablo Bianchi
  • 14,308
  • 4
  • 74
  • 117
RolandiXor
  • 51,091
  • 31
  • 161
  • 256
  • Thanks for the info, I did not know that there was a ppa for that. I installed it and there are indeed no thumbnails in Nautilus. As for the thumbnails: that's the most annoying part. I hope this will be solved soon so I can use WebP properly. Now it's still hard to use if you have to open image by image in the web browser... – Kapé Sep 17 '11 at 13:37
  • there seems to have no package for 14.04? any idea if an older may work? – Aquarius Power Aug 11 '14 at 21:10
  • I tried [this method](http://stackoverflow.com/a/14112645/1422630) to try to create the thumbnail manually but nautilus ignored the the thumbnail I created for the '.webp', could you give it a try? a bit help on it: `dwebp filename.webp -o "$HOME/.cache/thumbnails/normal/md5summedResult.png" -scale 100 100` – Aquarius Power Aug 11 '14 at 22:06
  • 1
    @AquariusPower packages have now been updated for 14.04. – Nathan Osman Jun 07 '15 at 06:34
9

Since 16.04

display image.webp

or for thumbnails

display 'vid:*.webp'

Imagemagick does support webp now, although it uses webp, so you need to install webp

sudo apt-get install webp
Janghou
  • 5,499
  • 6
  • 43
  • 59
6

Since 14.04 [universe] there is the vwebp command in the webp package:

sudo apt install webp

Then:

vwebp imagefile.webp

To get thumbnails in Nautilus see this answer (like Aquarius Power said above).