Projet

Général

Profil

Actions

evolution #7696

ouvert

GALERIE > Prendre en compte le format .heic des iphones avec sharpJS. Necessite un package supplémentaire à tester.

Ajouté par florian Lavazay il y a 16 jours.

Statut:
new
Priorité:
Majeur
Assigné à:
Début:
25/11/2025
Echéance:
% réalisé:

0%

Temps estimé:

Description

https://github.com/lovell/sharp/issues/4050

I used heic-decode library as workaround.

import decodeHeic from "heic-decode";

const decodedImage = await decodeHeic({
buffer: fileContent,
});

return sharp(decodedImage.data, {
...options,
raw: {
width: decodedImage.width,
height: decodedImage.height,
channels: 4,
},
});

Aucune donnée à afficher

Actions

Formats disponibles : Atom PDF