Comments (3)
It is indeed a bug when imagemagick version is >= 6.8.9-8. Thanks for feedback.
I will explain the reson of this bug detailedly.
First, to use multi-thread features I added some trick codes in main.c
:
ExceptionInfo *exception=AcquireExceptionInfo();
MagickInfo *jpeg_info = (MagickInfo *)GetMagickInfo("JPEG", exception);
if(jpeg_info->thread_support != MagickTrue)
LOG_PRINT(LOG_DEBUG, "thread_support != MagickTrue");
jpeg_info->thread_support = MagickTrue;
if(jpeg_info->thread_support != MagickTrue)
LOG_PRINT(LOG_DEBUG, "thread_support != MagickTrue");
MagickInfo *jpg_info = (MagickInfo *)GetMagickInfo("JPG", exception);
jpg_info->thread_support = MagickTrue;
These codes make jpeg and jpg images use multi-thread features, but they are not legal. So when imagemagick release v6.8.9-8, these codes doesn't work and display magick/semaphore.c:346: LockSemaphoreInfo: failed
error. The low versions have not this bug.
Now I have removed these codes and tested successfully. I'm trying to find other ways to improve performance of zimg. Just pull the latest code and have a try.
from zimg.
Thanks for replying to my question immediately. It makes me admire your professionalism . I used the low versions and it runs ok! I likes zimg . I am building a server which is about imgs . I have some questions When using zimg . The following are my questions :
-
Our img server will store many imgs .The zimg has 3 mode .The 1st is store on local disk. So I use Memcached for caching imgs.I find zimg store imgs in Memcached automatically, Where could I set the Cache strategy?And how I make the memcached have enough memory?
-
Local Disk and The other Storage methods(beansDb and SSD) ,which one has the best performance ?How could I make it as the enterprise image server I have no idears about Storage Imgs,Could you give me some suggestions ?
-
I am a developer about Java in Beijing.I Like your Zimg. Could I make friends with you? Could you tell me your QQ or Email? My QQ :475641706 and Email: [email protected]
Thanks again for your good job!
from zimg.
Q1. Cache control config is a little simple:
--cache config
--是否启用memcached缓存
cache = 1
--缓存服务器IP
mc_ip = '127.0.0.1'
--缓存服务器端口
mc_port = 11211
Set memcached memory size when you start mc:
memcached -h
-m <num> max memory to use for items in megabytes (default: 64 MB)
Q2. Local disk mode is fastest, but not reliable. I suggest you using beansdb.
Q3. My Email is public: [email protected]
.
from zimg.
Related Issues (20)
- 如何返回base64的图片格式?
- 图片显示不完整
- 官网文档里的很多链接都失效了,辛苦维护一下吧
- 怎么删除图片呢 HOT 1
- zimg 进程异常退出,提示内存越界 HOT 2
- how zimg restart after change config?
- PNG image uploaded successfully, but cannot be accessed HOT 1
- 官方文档wget libevent安装cloud.github.com域名无法解析问题
- 各位大佬 能不能把小视频也集成进来?支持图片和视频 HOT 1
- info 接口获取图片信息很慢,请问可以通过什么参数做优化吗 HOT 1
- 基于centos 8.0 及以上 安装 有问题
- make error HOT 2
- 出现大量 Error from accept() call: Too many open files 错误 HOT 1
- [Building error]: /usr/bin/ld: CMakeFiles/zimg.dir/zaccess.c.o:(.bss+0x0): multiple definition of `settings'; CMakeFiles/zimg.dir/main.c.o:(.bss+0x20): first defined here HOT 2
- make error HOT 1
- 请问zimg硬盘写满了会怎么办,会删除历史数据吗 HOT 2
- centos7 需要安装依赖 HOT 1
- 请求图片导致服务异常退出 HOT 1
- using MinIO or AWS S3 API standard compatible components as the optional Storage replacement? HOT 1
- How does libgsl.a compile into libzimg.a? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zimg.