mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
Enable saving HEIF/HEIC when supported by 3rd party plug-ins (#3110)
This commit is contained in:
@@ -67,9 +67,11 @@ QString ShowSaveFileDialog(const QString& title, const QString& directory)
|
||||
// Build string list of supported image formats
|
||||
QStringList mimeTypeList;
|
||||
foreach (auto mimeType, QImageWriter::supportedMimeTypes()) {
|
||||
// HEIF is meant for videos and it causes a glitch on MacOS
|
||||
// because the native dialog lumps together heic and heif
|
||||
if (mimeType != "image/heif") {
|
||||
// image/heif has several aliases and they cause glitch in save dialog
|
||||
// It is necessary to keep the image/heif (otherwise HEIF plug-in from
|
||||
// kimageformats will not work) but the aliases could be filtered out.
|
||||
if (mimeType != "image/heic" && mimeType != "image/heic-sequence" &&
|
||||
mimeType != "image/heif-sequence") {
|
||||
mimeTypeList.append(mimeType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user