From e54edf13bdb04c390b31cb0de5503eb8e9637669 Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Mon, 30 Jun 2025 16:03:02 +0800 Subject: [PATCH] unsupport gif encode Signed-off-by: zhaona45 Change-Id: I83b8734655ad3e07ddf14f2cd376fbf1092d572f --- frameworks/innerkitsimpl/codec/src/image_packer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frameworks/innerkitsimpl/codec/src/image_packer.cpp b/frameworks/innerkitsimpl/codec/src/image_packer.cpp index e90e735ca..4d14187ae 100644 --- a/frameworks/innerkitsimpl/codec/src/image_packer.cpp +++ b/frameworks/innerkitsimpl/codec/src/image_packer.cpp @@ -108,6 +108,9 @@ uint32_t ImagePacker::GetSupportedFormats(std::set &formats) IMAGE_LOGE("attr data get format failed."); continue; } + if (format == "image/gif") { + continue; + } std::vector splitedVector; SplitStr(format, ",", splitedVector); for (std::string item : splitedVector) { -- Gitee