Development #75090
assurer le mode RGB pour la mise en vignette
Début:
03 mars 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
Sur une image jpeg en cmyk, on aurait :
/usr/lib/python3/dist-packages/wcs/qommon/misc.py in get_thumbnail(filepath, content_type) 765 image_thumb_fp = io.BytesIO() --> 766 image.save(image_thumb_fp, "PNG") 767 except OSError: /usr/lib/python3/dist-packages/PIL/Image.py in save(self, fp, format, **params) 2163 try: -> 2164 save_handler(self, fp, filename) 2165 finally: /usr/lib/python3/dist-packages/PIL/PngImagePlugin.py in _save(im, fp, filename, chunk, save_all) 1219 except KeyError as e: -> 1220 raise OSError(f"cannot write mode {mode} as PNG") from e 1221 OSError: cannot write mode CMYK as PNG
(qui se trouve ensuite attrapée et ça donne une 404).
faie genre image.convert('RGB').save(...)
Révisions associées
Historique
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à Solution proposée
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/144
- Titre : misc: force thumbnails to be rendered as RGB (#75090)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/144/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Thomas NOËL (tnoel) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/144
- Titre : misc: force thumbnails to be rendered as RGB (#75090)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/144/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
misc: force thumbnails to be rendered as RGB (#75090)