Bug 391987 - Cannot save grayscale tiff - unsupported
Summary: Cannot save grayscale tiff - unsupported
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 4.0.0-beta.1
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Tiar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-18 07:59 UTC by Bronson
Modified: 2019-06-20 10:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
(Video) (1.10 MB, video/mp4)
2018-03-18 09:22 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bronson 2018-03-18 07:59:26 UTC
Im working on a project which requires 16 and 32bit grayscale tiff images.

I can open the texture fine. I do my editing. However there is no way to save this data back out!

When I select save as and type .tiff I gives a warning error "Reason: " but no reason is given.

If i convert the data to RGBA it works, however I need to be able to save it back out as grayscale only!

To reproduce:
1. open supplied tiff
2. save as > tiff (or save)


Sample texture:
https://drive.google.com/open?id=193SbCxR3I74o16TsiPdgSBqD3SdKGSSB
Comment 1 mvowada 2018-03-18 09:22:01 UTC
Created attachment 111473 [details]
(Video)

Hi. I can confirm (see video) in "Krita 4.1.0-pre-alpha (git 97015cd)" appimage - Ubuntu.

    - Cannot export grayscale 16, 32 bit float as TIFF. 
    - No problem exporting grayscale 16 bit int as TIFF.

It happens also in Krita 3.3.3 but the warning message is more informative, explaining that Krita cannot export grayscale to 16(32) bit float.

Possibly related older report here: Bug 374958
Comment 2 Halla Rempt 2018-03-18 12:14:22 UTC
Setting to wish, since this simply hasn't been implemented. Someone will have to digg into the tiff standard and the code to implement saving floating point channel grayscale images.
Comment 3 Tiar 2019-06-18 08:53:59 UTC
Git commit d0c5d7697f2913e9913964d3407a564b90ebbcb5 by Agata Cacko.
Committed on 18/06/2019 at 08:53.
Pushed by tymond into branch 'master'.

Add support for more color spaces in tiff impex

This commit adds support for following color spaces/bit depths:
Export:
- laba i8, f32
- graya f16, f32
- cmykaf32
Import:
- cmyka f32
- laba f32, f16, i8
Related: bug 408177

M  +43   -9    plugins/impex/tiff/kis_tiff_converter.cc
M  +17   -9    plugins/impex/tiff/kis_tiff_writer_visitor.cpp

https://invent.kde.org/kde/krita/commit/d0c5d7697f2913e9913964d3407a564b90ebbcb5
Comment 4 Halla Rempt 2019-06-20 10:49:28 UTC
Git commit 52060c2c5ec2511f6fbbc8704e0bf8c43ae0a8a6 by Boudewijn Rempt, on behalf of Agata Cacko.
Committed on 20/06/2019 at 10:31.
Pushed by rempt into branch 'krita/4.2'.

Add support for more color spaces in tiff impex

This commit adds support for following color spaces/bit depths:
Export:
- laba i8, f32
- graya f16, f32
- cmykaf32
Import:
- cmyka f32
- laba f32, f16, i8
Related: bug 408177

M  +43   -9    plugins/impex/tiff/kis_tiff_converter.cc
M  +17   -9    plugins/impex/tiff/kis_tiff_writer_visitor.cpp

https://invent.kde.org/kde/krita/commit/52060c2c5ec2511f6fbbc8704e0bf8c43ae0a8a6