# Custom share card partial not accounting for webp conversion

**URL:** <https://discourse.gohugo.io/t/custom-share-card-partial-not-accounting-for-webp-conversion/42496>\
**Category:** support\
**Created:** [January 19, 2023, 2:11am UTC](https://discourse.gohugo.io/t/custom-share-card-partial-not-accounting-for-webp-conversion/42496 "2023-01-19T02:11:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![genebean](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/genebean/32/10882_2.png) [@genebean](https://discourse.gohugo.io/u/genebean)\
**Post date:** [January 19, 2023, 2:11am UTC](https://discourse.gohugo.io/t/custom-share-card-partial-not-accounting-for-webp-conversion/42496/1 "2023-01-19T02:11:09Z")

</div>

It seems building a site causes files like `assets/images/foo.png` to be converted to webp but the templates for twitter:image and og:image linked below don’t account for this. Instead, they are looking for `/images/foo.png`, which 404’s. I am not sure if this partial should be looking for the webp version or if the png really should be being copied to the final site, but I am hopeful someone here knows.

> <https://github.com/statichunt/iwriter-hugo/blob/main/layouts/partials/datasets/twitter-card.html>

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 19, 2023, 4:28am UTC](https://discourse.gohugo.io/t/custom-share-card-partial-not-accounting-for-webp-conversion/42496/2 "2023-01-19T04:28:31Z")

</div>

It looks like you’ve already raised this issue with the theme author:  
[https://github.com/statichunt/iwriter-hugo/issues/12](https://github.com/statichunt/iwriter-hugo/issues/12)

---

<div class="post-metadata">

**Author:** ![genebean](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/genebean/32/10882_2.png) [@genebean](https://discourse.gohugo.io/u/genebean)\
**Post date:** [January 19, 2023, 1:23pm UTC](https://discourse.gohugo.io/t/custom-share-card-partial-not-accounting-for-webp-conversion/42496/3 "2023-01-19T13:23:40Z")

</div>

I had, but I was hoping to learn and put up a PR like I have done with several other things. As it turns out, the theme just released v2 and the author says this was addressed there. That said, I’m still interested in learning why this didn’t work originally.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 19, 2023, 4:47pm UTC](https://discourse.gohugo.io/t/custom-share-card-partial-not-accounting-for-webp-conversion/42496/4 "2023-01-19T16:47:58Z")

</div>

> [@genebean](#):
>
> just released v2

Which is broken, missing many of the required partials. Maybe I’m missing something, but it looks like it was released without any testing. I don’t have much confidence in this theme.
