# Webp width coming back as zero

**URL:** <https://forum.getkirby.com/t/webp-width-coming-back-as-zero/14951>\
**Category:** Questions\
**Tags:** v3\
**Created:** [July 16, 2019, 11:56am UTC](https://forum.getkirby.com/t/webp-width-coming-back-as-zero/14951 "2019-07-16T11:56:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [July 16, 2019, 11:56am UTC](https://forum.getkirby.com/t/webp-width-coming-back-as-zero/14951/1 "2019-07-16T11:56:58Z")

</div>

Width (and i’m guessing height as well ) does not work on WEBP images. But they are supported, and show up in the panel. The mime type is listed in the [source code](https://github.com/getkirby/kirby/blob/master/src/Toolkit/Mime.php#L99).

```auto
<?php var_dump($page->file('myfile.webp')->width()) ?>

```

Is this a bug or maybe something missing that allows them to be read? The jpg version of the file, of course, works fine.

I switched the thumbs driver to IM and got the same result.

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [July 16, 2019, 2:36pm UTC](https://forum.getkirby.com/t/webp-width-coming-back-as-zero/14951/2 "2019-07-16T14:36:07Z")

</div>

Seems the culprit is a missing mime type webp used to determine which files should work with dimensions.

Github Issue will be logged later.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [July 16, 2019, 2:42pm UTC](https://forum.getkirby.com/t/webp-width-coming-back-as-zero/14951/3 "2019-07-16T14:42:43Z")

</div>

I have created a PR.

> <https://github.com/getkirby/kirby/pull/1925>
