[gimp] Issue #2209: HEIF: Invalid input: No 'ftyp' box.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #2209: HEIF: Invalid input: No 'ftyp' box.
- Date: Fri, 14 Sep 2018 16:02:15 +0000 (UTC)
commit d738d2f645abe16457311389b8827ecd80ca71da
Author: Jehan <jehan girinstud io>
Date: Fri Sep 14 17:30:14 2018 +0200
Issue #2209: HEIF: Invalid input: No 'ftyp' box.
Adding a magic number for HEIC/HEIF, which would allow to discard
obvious non-HEIC images even with the wrong extension.
Note: it looks like this magic number would also match more generically
other ISO base media file format (ISOBMFF) formats, like .mov or .mp4
files. I am enquiring for better magic but for now, this is better than
nothing.
plug-ins/common/file-heif.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index 7db746c560..617013dda8 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -120,6 +120,10 @@ query (void)
gimp_register_load_handler (LOAD_PROC, "heic,heif", "");
gimp_register_file_handler_mime (LOAD_PROC, "image/heif");
gimp_register_file_handler_uri (LOAD_PROC);
+ gimp_register_magic_load_handler (LOAD_PROC,
+ "heif,heic",
+ "",
+ "4,string,ftyp");
gimp_install_procedure (SAVE_PROC,
_("Exports HEIF images"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]