Qt:解决使用png图片时,报错libpng warning: iCCP: known incorrect sRGB profile的问题
在Qt中,如果使用某些格式png图片,可能会报警告libpng warning: iCCP: known incorrect sRGB profile,虽然没什么影响,但是看到这个警告非常的烦。
网上搜索了一下,这个警告貌似是和png图片的格式有关。是在png中嵌入了什么导致的。
而解决方法其实非常简单。
就是用QImage读取一下,然后直接保存回去就可以了。
做了一个小工程解决这个问题,直接导入图片目录,点击下载
Qt:解决使用png图片时,报错libpng warning: iCCP: known incorrect sRGB profile的问题相关推荐
- 运行python程序总是报警告“libpng warning: iCCP: known incorrect sRGB profile”,解决方案:将Anaconda中的libpng版本替换即可
参考链接 win10快速解决警告:libpng warning: iCCP: known incorrect sRGB profile 步骤: 找到Anaconda安装该路径:.\Anaconda3\ ...
- 关于libpng warning: iCCP: known incorrect sRGB profile 报错的解决
关于libpng warning: iCCP: known incorrect sRGB profile 报错的解决 最近在学习pygame,运行代码时遇到了这个警告,在Qt中,如果使用某些格式png ...
- 调用png格式图片时“libpng warning: iCCP: known incorrect sRGB profile”警告
这两天在写Python小游戏的时候,因为调用了png格式的图片,所以总会出现以下警告: 然而程序能正常运行,没有丝毫影响,但是这一堆红色的警告就是看着不顺心 心里默默地抵触它. 于是我某度了为什么在调 ...
- pygame: libpng warning: iCCP: known incorrect sRGB profile 报错
这两天在写Python小飞机的时候,运行的时候很正常,但是当点击关闭程序的时候总会出现以下警告: 那就查查看吧. 问题原因: 原因就是这个因为libpng 1.6,太敏感了,1.6及以上版本增强了IC ...
- libpng warning: iCCP: known incorrect sRGB profile 报错
libpng warning: iCCP: known incorrect sRGB profile 警告,问题解决 目录 libpng warning: iCCP: known incorrect ...
- Qt去除libpng warning: iCCP: known incorrect sRGB profile警告
使用Qt开发使用某些格式的png图片时,可能会报libpng warning: iCCP: known incorrect sRGB profile的警告,虽然并不影响程序的运行,但是看起来烦,而且影 ...
- 已解决libpng warning: iccp: known incorrect sRGB profile
已解决AttributeError: module 'pygame.time' has no attribute 'sleep' libpng warning: iccp: known incorre ...
- pycharm跑代码时警告libpng warning: iCCP: known incorrect sRGB profile
pycharm跑代码时警告libpng warning: iCCP: known incorrect sRGB profile 这是由于自己下载的qq输入法导致的,程序规定按Q退出,但是可能无法识别Q ...
- 解决libpng warning: iCCP: known incorrect sRGB profile
解决libpng warning: iCCP: known incorrect sRGB profile 出现这个警告是因为png格式不正确,解决这个问题只需要用QImage重新保存下png图片就可以 ...
最新文章
- 关于Centos下Clamv反病毒软件包更新问题
- Citrix策略处理与优先级
- 微信数据分析包准备(Python)
- c语言全国二级考试全对,全国计算机c语言二级考试通用复习资料.doc
- Curator实现分布式锁的基本原理-InterProcessMutex.internalLock
- C语言深度剖析书籍学习记录 第七章 文件结构
- 按钮交互loading ---- 转圈圈 加载
- LeetCode 1760. 袋子里最少数目的球(二分查找)
- springboot 之Spring Web Mvc Framework
- 【报告分享】阿里达摩院:2022十大科技趋势.pdf(附下载链接)
- Scalable Web Architectures: Common Patterns and Approaches
- 治理软件供应链安全要打“团体赛” 共同建立供应链安全体系
- 医院耗材管理系统开发_0
- ansys经典界面分析工字钢_ANSYS教程,ANSYS经典界面与WORKBENCH的区别
- English语法_分词用法-作名词
- 安规的XY电容器件作用
- matlab中dstep与step,DINT和DWORD的区别
- 编译祁大神的iguana,大神就是大神.
- Log4j2 日志 依赖 jar包 缺失 导致启动报错 解决方法
- Shift + 0 不能打出右括号 )打不出来