-limit option ignored when converting to webp
Posted: 2016-04-12T12:17:08-07:00
My ImageMagick version (convert):
It appears convert does not respect the -limit options when converting images to webp format. I'm just using valgrind to get a rough idea of memory usage (and monitoring via htop):
I'm using this sample image: https://upload.wikimedia.org/wikipedia/ ... t_10MB.jpg
These are my default resource limits:
Usage without limits:
which allocate
Usage with limits:
which allocate
My goal is to impose absolute limits on convert and I'm only interested in converting to webp. Is this possible? Thanks
Code: Select all
Version: ImageMagick 6.9.3-2 Q16 x86_64 2016-01-22 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype fpx gslib jng jpeg lcms ltdl lzma pangocairo png ps tiff webp wmf x xml zlib
I'm using this sample image: https://upload.wikimedia.org/wikipedia/ ... t_10MB.jpg
These are my default resource limits:
Code: Select all
Resource limits:
Width: 214.7MP
Height: 214.7MP
Area: 2.0825GP
Memory: 993MiB
Map: 1.9395GiB
Disk: unlimited
File: 768
Thread: 1
Throttle: 0
Time: unlimited
Code: Select all
convert -quality 1 Pizigani_1367_Chart_10MB.jpg jpg:chart.jpg
convert -quality 1 Pizigani_1367_Chart_10MB.jpg png:chart.png
convert -quality 1 Pizigani_1367_Chart_10MB.jpg webp:chart.webp
- 801,414,828 bytes
583,358,754 bytes
1,372,146,502 bytes
Usage with limits:
Code: Select all
convert -limit memory 80MB -limit map 80MB -quality 1 Pizigani_1367_Chart_10MB.jpg jpg:chart.jpg
convert -limit memory 80MB -limit map 80MB -quality 1 Pizigani_1367_Chart_10MB.jpg png:chart.png
convert -limit memory 80MB -limit map 80MB -quality 1 Pizigani_1367_Chart_10MB.jpg webp:chart.webp
- 2,641,707 bytes
2,967,726 bytes
791,755,902 bytes
My goal is to impose absolute limits on convert and I'm only interested in converting to webp. Is this possible? Thanks