码迷,mamicode.com
首页 > 其他好文 > 详细

修改libpng库源码解决libpng warning: iCCP: known incorrect

时间:2019-02-03 11:06:03      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:编译   profile   eva   rgb   ken   .net   ble   problems   for   

下载libpng源码
wget https://sourceforge.net/projects/libpng/files/libpng16/1.6.36/libpng-1.6.36.tar.xz

修改png.c文件

if (png_sRGB_checks[i].is_broken != 0)
{
     /* These profiles are known to have bad data that may cause
        * problems if they are used, therefore attempt to
        * discourage their use, skip the ‘have_md5‘ warning below,
        * which is made irrelevant by this error.
        */
     // 注释掉下边这两行代码
     // png_chunk_report(png_ptr, "known incorrect sRGB profile",
     //     PNG_CHUNK_ERROR);
}

编译安装

sudo apt install zlib* -y
sudo apt install gcc make cmake -y
./configure && make -j && sudo make install

修改libpng库源码解决libpng warning: iCCP: known incorrect

标签:编译   profile   eva   rgb   ken   .net   ble   problems   for   

原文地址:http://blog.51cto.com/xvjunjie/2348645

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!