Bug 54607 - darktable: некорректно отображается TIFF с RGBPalette, 8 bits per sample
Summary: darktable: некорректно отображается TIFF с RGBPalette, 8 bits per sample
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: darktable (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Yuri N. Sedunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-02 17:02 MSK by Artem Varaksa
Modified: 2025-06-02 17:06 MSK (History)
1 user (show)

See Also:


Attachments
smurf.hpgl.magenta.tiff (181.81 KB, image/tiff)
2025-06-02 17:02 MSK, Artem Varaksa
no flags Details
Скриншот darktable (144.15 KB, image/png)
2025-06-02 17:02 MSK, Artem Varaksa
no flags Details
Скриншот darktable (p11) (190.71 KB, image/png)
2025-06-02 17:05 MSK, Artem Varaksa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2025-06-02 17:02:17 MSK
Created attachment 18683 [details]
smurf.hpgl.magenta.tiff

Шаги
====

1. Открыть прикреплённое изображение в darktable.

(Изображение сделано с помощью `$ hp2xx smurf.hpgl -m tiff -c 6 -m 2` из файла https://github.com/spustlik/plotr/blob/7792e9fd45fca4e11f452dc0a7b2c0a8b85bfb58/Plotr/Samples/smurf.hpgl)

$ file smurf.hpgl.magenta.tiff
smurf.hpgl.magenta.tiff: TIFF image data, little-endian, direntries=13, height=595, bps=8, compression=none, PhotometricInterpretation=RGB Palette, width=310

Фактический результат
=====================

Изображение открывается и немного виден контур, но оно ч/б вместо magenta, инвертировано (см. скришнот).

Ожидаемый результат
===================

Корректное отображение изображения.

Изображение корректно отображается в других программах, например в p11 в:

gimp-3.0.2-alt1.x86_64
papers-47.4-alt1.x86_64
gimagereader-gtk-3.4.2-alt2.x86_64

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Workstation 11.0 x86_64
darktable-5.0.1-alt1.x86_64

[p11] ALT Workstation 11.0 x86_64
darktable-4.8.1-alt1.x86_64
Comment 1 Artem Varaksa 2025-06-02 17:02:40 MSK
Created attachment 18684 [details]
Скриншот darktable
Comment 2 Artem Varaksa 2025-06-02 17:05:50 MSK
Created attachment 18685 [details]
Скриншот darktable (p11)

В p11 на реальной машине виден контур, на ВМ нет OpenCL, поэтому там и его не видно.