Skip to content

Enable HEIF/HEIC via kimageformats #3106

@novomesk

Description

@novomesk

Feature Description

Hello,

kimageformats package contains optional support of HEIF/HEIC format.

However, following piece of code prevents to use it:

if (mimeType != "image/heif") {

I understand what is the intention. Macheif plug-in from Qt declare it supports both image/heic and image/heif mime types.

Technically the image/heic is the same (alias) as image/heif and it leads in glitch in save dialog, because the entry is doubled.

For this reason, the plugin from kimageformats declares support only for image/heif and not for the alias. Unfortunately, the image/heif mime type is filtered out by the flameshot code in screenshotsaver.cpp and the plugin from kimageformats is not used as result.

I guess it would be better to filter image/heic alias instead of image/heif

BTW, there is also another HEIF plug-in for Qt. It uses also other aliases: https://github.com/jakar/qt-heif-image-plugin/blob/master/src/heif.json

I suggest to filter aliases (image/heic, image/heic-sequence, image/heif-sequence) but to leave main image/heif unfiltered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementFeature requests and code enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions