https://bugs.kde.org/show_bug.cgi?id=415719

--- Comment #22 from caulier.gil...@gmail.com ---
Tim,

My failback to 8 bits color depth under Windows 10 work as expected here. I
just tested with the Windows installer generated today. I just created an HEIC
from a JPEG file :

https://i.imgur.com/1TuUbku.png

The DebugView trace :

[3020] digikam.general: >>>>>>>>>face rect before: 1659 830 678 680
[3020] digikam.general: startSavingAs called
[3020] digikam.general: Writing file to 
QUrl("file:///C:/Users/gilles/Pictures/METADATA/pict0149 with photoshop
metada.heic")
[3020] digikam.widgets: Trying to discover format based on filename ' "pict0149
with photoshop metada.heic" ', fallback =  0
[3020] digikam.widgets: Discovered format:  6
[3020] digikam.widgets: Format selected:  "pict0149 with photoshop metada.heic"
[3020] digikam.widgets: Trying to discover format based on filename ' "pict0149
with photoshop metada.heic" ', fallback =  0
[3020] digikam.widgets: Discovered format:  6
[3020] digikam.general: Trying to find a saving format from targetUrl = 
QUrl("file:///C:/Users/gilles/Pictures/METADATA/pict0149 with photoshop
metada.heic")
[3020] digikam.general: Qt Offered types:  "*.bmp *.bw *.cur *.icns *.ico *.pbm
*.pcx *.pgm *.pic *.png *.ppm *.rgb *.rgba *.sgi *.tga *.wbmp *.webp *.xbm
*.xpm *.tiff *.tif *.jpg *.jpeg *.jpe *.jp2 *.j2k *.jpx *.pgx *.pgf *.heic
*.heif"
[3020] digikam.general: Writable formats:  ("bmp", "bw", "cur", "icns", "ico",
"pbm", "pcx", "pgm", "pic", "png", "ppm", "rgb", "rgba", "sgi", "tga", "wbmp",
"webp", "xbm", "xpm", "tiff", "tif", "jpg", "jpeg", "jpe", "jp2", "j2k", "jpx",
"pgx", "pgf", "heic", "heif")
[3020] digikam.general: Possible format from local file:  "heic"
[3020] digikam.general: Using format from target url  "heic"
[3020] digikam.geoiface: ----
[3020] digikam.general: Saving to :
"C:/Users/gilles/Pictures/METADATA/EditorWindow-rTewTZ.digikamtempfile.heic" (
"heic" )
[3020] digikam.general: Saving file
"C:/Users/gilles/Pictures/METADATA/EditorWindow-rTewTZ.digikamtempfile.heic" at
-1
[3020] digikam.dimg: Prepare Metadata to save for
"C:/Users/gilles/Pictures/METADATA/pict0149 with photoshop metada.heic"
[3020] digikam.metaengine: JPEG image preview size: ( 1280 x 852 ) pixels -
104767 bytes
[3020] digikam.dimg: Saving to 
"C:/Users/gilles/Pictures/METADATA/EditorWindow-rTewTZ.digikamtempfile.heic" 
with format:  "heic"
[3020] HEVC encoder max bit depth: -2076301825
[3020] HEVC encoder max bits depth: 8 (default failback value)
[3020] HEVC encoder setup...
[3020] HEIF set color profile...
[3020] Stored HEIF color profile size: 6924
[3020] HEIF setup data plane...
[3020] HEIF data container: 0x2229f070040
[3020] HEIF bytes per line: 9056
[3020] HEIF output bytes per color: 3
[3020] HEIF 16 to 8 bits coeff.   : 8
[3020] HEIF 8 to 16 bits coeff.   : 0
[3020] HEIF master image encoding...
[3020] HEIF preview storage in thumbnail chunk...
[3020] HEIF metadata storage...
[3020] Stored HEIF Exif data size: 4148
[3020] Stored HEIF Iptc data size: 105334
[3020] Stored HEIF Xmp data size: 146931
[3020] HEIF flush to file...

No crash, no dysfunction, target HEIC image can be open as well...

As you can see, with this line :

[3020] HEVC encoder max bit depth: -2076301825

The max bit depth reported by libx265 is a mess, but forcing to use the default
8 bits color depth work like a charm...

Note: i tried to export as HEIC in lossless mode or in lossy mode, and in both
i generate a valid HEIC file.

Please try again with this installer version:

https://files.kde.org/digikam/digiKam-7.0.0-beta1-20200102T060110-Win64.exe.mirrorlist

Note2: I agree that something wrong as not expected with libx265 library under
Windows about the max bit depth supported. Reporting this problem to libx265
project can be a good idea. About Gimp, i don't know how it work to export HEIC
files.

So, if you can reproduce the problem on your windows 10 with the pointed DK
windows installer, please share on the cloud the original image that you try to
export.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to