使用FFmpeg转换苹果CgBI格式PNG为标准PNG失败求助
使用FFmpeg转换苹果CgBI格式PNG为标准PNG失败求助
我从IPA包里导出了一张PNG图片,结果用Windows Photos打开的时候所有颜色都反转了,一开始就猜这可能是苹果专属的格式,后来验证果然没错:
$ file AppIcon29x29.png AppIcon29x29.png: PNG image data (CgBI), 29 x 29, 8-bit/color RGBA, non-interlaced
于是我尝试用FFmpeg把它转换成标准格式的PNG,但没成功:
$ ffmpeg -i AppIcon29x29.png out.png ffmpeg version N-116015-g23531c9776-20240625 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14.1.0 (crosstool-NG 1.26.0.93_a87bf7f) configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-fontc...
有没有大佬知道怎么解决这个问题呀?
备注:内容来源于stack exchange,提问作者HGStyle
相关产品推荐
相关产品推荐

