I have an .webp image that I want to use in my Latex document. However, I can't really find how to use it or is it simply not possible with Latex?


1 Answer 1


You probably need to convert the image to png. A freely available convertor precompiled for windows/linux/mac is available from



dwebp image.webp -o image.png

should produce a usable file.

  • 1
    The link suggests it's a conversion tool to .webp. Does it also convert from .webp?
    – Werner
    Nov 29, 2012 at 19:00
  • 5
    Well, I was hoping Latex would support it or that there would be a package available to add this function.
    – Aaron
    Nov 29, 2012 at 19:01
  • 1
    well if you want latex to do it on the fly you could enable shell escape and set up a graphics rule for .webp such that it executes the conversion (a lot of people do this for eps/pdf conversion in pdftex) but really it's simpler just to convert it once and include the png directly unless it is changing all the time. Nov 29, 2012 at 19:03
  • Mac users: brew install webp.
    – jvriesem
    Aug 21, 2022 at 19:09
  • 2
    @PatrickT but unless the pdf format is changed to support webp, including them in latex will necesarily be slower and not have smaller final pdf as each webp will need to be converted to a form that can be included Jun 19, 2023 at 18:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .