Advertisement
metalx1000

Webp file conversion and information

Dec 11th, 2017
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.91 KB | None | 0 0
  1. #working with WebP image formats in Linux
  2.  
  3. #about
  4. #webp was developed by Google back in 2010
  5. #it's an open format
  6. #supports lossless and lossy compression
  7. #derivative of the VP8 video format, it is a sister project to the WebM multimedia container format
  8.  
  9. #chrome currently supports webp (Google, duh)
  10. #firefox does not, but plans on it.
  11.  
  12. #Display of imagemagick will display them
  13. display photo.webp
  14.  
  15. #so will gthumb
  16. gthumb photo.webp
  17.  
  18. #at this time GIMP out of the box doesn't
  19. #but there are plugins for it.
  20.  
  21. ####Converting webp to jpg/png
  22. #install webp package
  23. sudo apt install webp
  24.  
  25. #once the package is installed Imagemagick can now convert the files
  26. convert photo.webp photo.png
  27. #and back
  28. convert photo.png photo_1.webp
  29.  
  30. #or you can use the webp program
  31. #decoded to png
  32. dwebp photo.webp -o photo.jpg
  33.  
  34. #You can also view them with vwebp
  35. vwebp photo.webp
  36.  
  37. #more options with man
  38. man dwebp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement