gpt4 book ai didi

c++ - 加载png文件时的Imagemagick问题

转载 作者:搜寻专家 更新时间:2023-10-31 01:23:27 25 4
gpt4 key购买 nike

我已经为 mac 编译了最新版本的 imagemagick,当我加载一个特定的 png 文件时,我得到了下面的断言。这有点麻烦,因为它会使程序在 Debug模式下崩溃。有人见过这个吗?有什么解决方法吗?


Assertion failed: (quantum_info->signature == MagickSignature),
function DestroyQuantumInfo, file magick/quantum.c, line 215.

最佳答案

来自 "A Basic Introduction to PNG Features" - Integrity Checks -

PNG supports three main types of integrity-checking to help avoid problems with file transfers and the like. The first and simplest is the eight-byte magic signature at the beginning of every PNG image. It will detect the most common type of file corruption: that due to the transfer of a binary file in text. On most systems, line-endings in text files are flagged by either a carriage-return character (CR), a line-feed character (LF), or both. Macintoshes use CRs; Unix systems use LFs; and all non-Unix PC systems (DOS, Windows 3.x/95/NT, OS/2) use CR/LF pairs.

关于c++ - 加载png文件时的Imagemagick问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1366365/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com