Page 1 of 1

Problem: ImageMagick very slow

Posted: 2007-07-17T13:29:14-07:00
by afilipi
I have installed the 16-bit version of ImageMagick on Win2000 and WinXP OSes. Doing

convert "M:\picture.JPG" -channel green -fx "u*1.03" -quality 100%% "M:\picture_edited.JPG"

takes up almost two minutes (picture.JPG is an 8 megapixel photo). The 8-bit version of IM is similarly slow. Boosting the green channel in Paint Shop takes about two seconds.

Why is IM so slow? Is this normal for a Windows installation? Am I doing something wrong? I have administrator rights.

Thanks,
Ales

Re: Problem: ImageMagick very slow

Posted: 2007-07-17T14:04:24-07:00
by el_supremo
Instead of using -fx try -evaluate:

Code: Select all

convert "M:\picture.JPG" -channel green -evaluate multiply 1.03 -quality 100%% "M:\picture_edited.JPG"
Pete

Re: Problem: ImageMagick very slow

Posted: 2007-07-17T14:29:14-07:00
by afilipi
Thanks, Pete! That did it. I guess I have to go over each and every IM option this weekend. For a person who has been using PaintShop/PhotoShop for the last decade, the transition is not easy.

Re: Problem: ImageMagick very slow

Posted: 2007-08-09T00:24:19-07:00
by anthony
Remember -fx is an interpereted option that is parsed once for every pixel and every
output channel for that pixel (normally 3).

-evaluate predates -fx by a couple of months and is ment to hard code simple single image math functions into IM. If a -fx function is thought useful it can be added 'built in' in a number of different general ways, depending on what it does and what input it needs.
See (especially the last part of the page)
http://www.imagemagick.org/Usage/transform/#fx