# HEIC uploaden: er is een fout opgetreden bij het converteren van PNG naar JPG

**URL:** https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733
**Category:** Bug
**Created:** [22 augustus 2020 om 06:52 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733 "2020-08-22T06:52:09Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [22 augustus 2020 om 06:52 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/1 "2020-08-22T06:52:09Z")

</div>

I’m getting a 422 error when uploading [this HEIC image](https://drive.google.com/file/d/1QtCk6cNLU-8e4p1GNNqFfU2RC88x9x3X/view?usp=sharing) in my forum:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/4/e4c66d43cd770cd210d909b39314489e68921420.png)

I just tried it here and the conversion happened correctly:

 ![example.HEIC](https://global.discourse-cdn.com/meta/original/3X/e/5/e52b9e02b62f55f70862c5e11fe6f125f7e9f106.jpeg)

I’m on the latest version (2.6.0.beta2 [aa815e41e7](https://github.com/discourse/discourse/commits/aa815e41e7ff4c488f79397d31e5d9083b239dca)) and these are the only plugins I have installed:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/5/957934fcc46e953d66d5ea00d87beb4088808faa.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [22 augustus 2020 om 17:12 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/2 "2020-08-22T17:12:28Z")

</div>

Interesting, any thoughts @pmusaraj?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [22 augustus 2020 om 17:17 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/3 "2020-08-22T17:17:57Z")

</div>

Do you know whether you rebuilt the site via the web UI? It’s possible you need a CLI rebuild so you can pull the latest image, and that latest image is built with HEIC support.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [22 augustus 2020 om 18:32 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/4 "2020-08-22T18:32:11Z")

</div>

I’ve always upgraded via the admin dashboard in the UI. I thought the end result would be the same 🤔

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [22 augustus 2020 om 19:15 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/5 "2020-08-22T19:15:45Z")

</div>

The admin dashboard upgrades everything except for the image.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [22 augustus 2020 om 20:28 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/6 "2020-08-22T20:28:02Z")

</div>

Yes, the HEIC feature depends on an update in the image and the UI update does not update the image. A rebuild from the console should solve the error you are seeing.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [23 augustus 2020 om 07:32 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/7 "2020-08-23T07:32:25Z")

</div>

Thanks for the help, Penar. I can confirm that it works after rebuilding. 👍

I’m still not 100% clear on the differences between upgrading via the UI and the CLI. Do you recommend always doing it via the CLI, only on specific releases or only when I find non-working functionality?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [24 augustus 2020 om 01:03 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/8 "2020-08-24T01:03:00Z")

</div>

Usually, when we have a big update in the base image, we mark that new image as required, and in the UI you get told to update via the CLI. I didn’t trigger that with the HEIC update because it didn’t feel essential enough. In fact, initially, the HEIC conversion feature was not enabled by default.

I think you can keep updating via the UI. Once in a while (about 1-2 times per year), it is good to run the update via CLI, you will be prompted to do that once in a while, anyway.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [25 augustus 2020 om 01:00 UTC](https://meta.discourse.org/t/uploading-heic-an-error-happened-when-converting-from-png-to-jpg/161733/9 "2020-08-25T01:00:05Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
