Hi,
I'm running ImageMagick version 6.8.8-10 Q16 x86_64 2015-08-14 on Debian GNU/Linux 7 (Wheezy).
Resizing some PNG images takes too long.
For example,
* this image takes almost 2.5 minutes: http://img04.deviantart.net/49f6/i/2015 ... 9izg8o.png
* this image takes around 4 minutes: http://img08.deviantart.net/b9ae/i/2015 ... 8zqaj2.png
Other images are processed fine.
Is there something wrong with the images or why is it taking so long?
Thanks,
Dusan
Conversion taking too long for some PNG images
-
- Posts: 1
- Joined: 2016-03-07T02:25:19-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Conversion taking too long for some PNG images
What is your exact command?
With your first image, IM v 6.9.2-5, ...
... takes my laptop about 1 second.
With your first image, IM v 6.9.2-5, ...
Code: Select all
convert __parishilton___by_allleee-d9izg8o.png -resize 100x100 p.png
snibgo's IM pages: im.snibgo.com
- GeeMack
- Posts: 718
- Joined: 2015-12-01T22:09:46-07:00
- Authentication code: 1151
- Location: Central Illinois, USA
Re: Conversion taking too long for some PNG images
I'm using "ImageMagick 6.9.3-6 Q16 x64 2016-02-28" on Windows 7 64, and when I run this command...dusan.rychnovsky wrote:Is there something wrong with the images or why is it taking so long?
Code: Select all
magick psd_dl_by_xxcaramellchanxx-d8zqaj2.png test.png
Code: Select all
magick: zTXt: truncated `psd_dl_by_xxcaramellchanxx-d8zqaj2.png' @ warning/png.c/MagickPNGWarningHandler/1683.
The "psd_dl_by_xxcaramellchanxx-d8zqaj2.png" image is only 400x400 pixels, but "identify" show it as 3.042MB.
The "__parishilton___by_allleee-d9izg8o.png" image is only 700x450 pixels, and "identify" shows it as 2.891MB.
When I do this...
Code: Select all
convert __parishilton___by_allleee-d9izg8o.png test1.png
When I run this command...
Code: Select all
convert psd_dl_by_xxcaramellchanxx-d8zqaj2.png test2.png
My somewhat educated guess is both of your images have some sort of problem.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Conversion taking too long for some PNG images
I believe the command "magick" is only for IM 7.I'm using "ImageMagick 6.9.3-6 Q16 x64 2016-02-28" on Windows 7 64, and when I run this command...
magick psd_dl_by_xxcaramellchanxx-d8zqaj2.png test.png
What version of libpng are you using? Is it current?
convert -list format
should tell you the version of libpng.
Using your second image on IM 6.9.3.7 Q16 Mac OSX with libpng 1.6.20
Code: Select all
time convert psd_dl_by_xxcaramellchanxx-d8zqaj2.png -resize 100x100 test.png
convert: zTXt: truncated `psd_dl_by_xxcaramellchanxx-d8zqaj2.png' @ warning/png.c/MagickPNGWarningHandler/1656.
real 0m0.127s
- GeeMack
- Posts: 718
- Joined: 2015-12-01T22:09:46-07:00
- Authentication code: 1151
- Location: Central Illinois, USA
Re: Conversion taking too long for some PNG images
Yep, my mistake. I was working those sample images for the opening poster. I tried them using IM6 and IM7 and got the same results with each. I mentioned my IM6 version and pasted my IM7 command. Sorry about the confusion.fmw42 wrote:I believe the command "magick" is only for IM 7.
Re: Conversion taking too long for some PNG images
Both of the images from deviantart contain huge (3-4MB) zTXt chunks containing 8BIM and XMP profiles.