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

AI-generated summary

A user, Nacho_Caballero, reported a 422 error when uploading a HEIC image, despite the conversion working correctly in a test environment. The issue was traced to the site’s Docker image not being updated to include HEIC support, which is not handled by the admin UI upgrade process. pmusaraj explained that UI upgrades only update the codebase, not the underlying image — HEIC support requires a CLI rebuild to pull the latest image. After rebuilding via CLI, Nacho_Caballero confirmed the issue was resolved. He asked for clarification on when to use CLI vs UI updates; pmusaraj clarified that CLI rebuilds are typically needed only when the base image changes significantly — usually 1–2 times per year — and users are prompted via the UI when required. The HEIC feature was initially optional and not marked as essential, so no CLI prompt was triggered. For most cases, UI upgrades are sufficient, but occasional CLI rebuilds are recommended to ensure full feature compatibility.

I’m getting a 422 error when uploading this HEIC image in my forum:

I just tried it here and the conversion happened correctly:

I’m on the latest version (2.6.0.beta2 aa815e41e7 ) and these are the only plugins I have installed:

5 likes

Interesting, any thoughts @pmusaraj?

2 likes

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.

3 likes

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

3 likes

The admin dashboard upgrades everything except for the image.

3 likes

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.

4 likes

Thanks for the help, Penar. I can confirm that it works after rebuilding. :+1:

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?

3 likes

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.

4 likes

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