buaazp / zimg

A lightweight and high performance image storage and processing system.
http://zimg.buaa.us
BSD 3-Clause "New" or "Revised" License
2.69k stars 401 forks source link

png图片上传显示404 #230

Open gouhan opened 5 years ago

gouhan commented 5 years ago

上传了2种图片:jpeg和png,都是上传成功的。但是预览时,png的图片显示404.

gouhan commented 5 years ago

加上p=0,是可以显示原图的 看了历史的Issue,有对应的解决方法。但是照着试了几遍,依然没有正常显示。 我的libpng是用apt-get方式安装的,看了一下路径是在/usr/bin下,但是有两个版本一个是libpng-config,另外一个是 libpng12-config. 我分别试了配置PKG_CONFIG_PATH为两种路径,也把ImageMagick卸载重装了,还是没有修复。 不知道和ImageMagick版本有关系吗?

fisherwangcn commented 5 years ago

我和你的情况是一样的,请问解决了吗?谢谢

fisherwangcn commented 5 years ago

我用shell :convert *.png dep.png 是可以的,但是zimg里面就不行

dehim commented 5 years ago

这个问题是由于libpng没有打上透明图层补丁引起,用源码打上补丁,再编译安装,问题能解决。 这里有对应补丁:http://ftp.lfs-matrix.net/pub/blfs/conglomeration/libpng/

chenhaoliang1 commented 4 years ago

这个问题是由于libpng没有打上透明图层补丁引起,用源码打上补丁,再编译安装,问题能解决。 这里有对应补丁:http://ftp.lfs-matrix.net/pub/blfs/conglomeration/libpng/

打了补丁也没用啊 [难受]