Page 1 of 1

convert: unrecognized option `-regard-warnings'

Posted: 2011-11-30T05:48:38-07:00
by niko
Hello,

I want to use the script of autolevel.
Ref: http://www.fmwconcepts.com/imagemagick/ ... /index.php

When i run the script, I am getting below error message
convert: unrecognized option `-regard-warnings'.
--- FILE image.jpg DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAS ZERO SIZE ---

I am using below version:
Version: ImageMagick 6.2.8 10/20/10 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html

Please guide, how should I get rid of this error message.

Thanks and waiting for reply.

- Niko

Re: convert: unrecognized option `-regard-warnings'

Posted: 2011-11-30T19:20:28-07:00
by fmw42
IM 6.2.8 is too old. I only started writing scripts after IM 6.3.5.0. You can edit the script and try to remove that command. It should work if that is the only thing your have that is too old.

Re: convert: unrecognized option `-regard-warnings'

Posted: 2012-01-18T05:04:55-07:00
by niko
Thanks for the reply.
It's working fine for me.

I want to use just autocolor effect for my site and I need just 50% effect of autocolor script.
So my question is:
-> Is it possible through autocolor script that i can get just 50% effect of script?

If possible, Please let me know how can I do that?

Thanks,
- Niko.

Re: convert: unrecognized option `-regard-warnings'

Posted: 2012-01-18T12:51:18-07:00
by fmw42
niko wrote:Thanks for the reply.
It's working fine for me.

I want to use just autocolor effect for my site and I need just 50% effect of autocolor script.
So my question is:
-> Is it possible through autocolor script that i can get just 50% effect of script?

If possible, Please let me know how can I do that?

Thanks,
- Niko.

I am not sure what you mean by 50%. My guess is that what you want to do is process your image with the script, then do a 50,50% blend composite with the result and the original image.

see
http://www.imagemagick.org/Usage/compose/#blend

Re: convert: unrecognized option `-regard-warnings'

Posted: 2012-01-18T22:29:57-07:00
by niko
Hello,

Sorry for my bad English.

What I mean is :

Original Image :
Image

Processed image using autocolor script:
Image

Question:
When I run autocolor script on "Original Image", It will be converted in to "Processed Image".
So script will convert original image to processed image 100%.
What I want is :
"Balance the colour values something like 50% original / 50% processed"

So is it possible through autocolor script ?

If possible, please let me know, how can I do that.

Thanks,
- Niko

Re: convert: unrecognized option `-regard-warnings'

Posted: 2012-01-18T22:40:28-07:00
by fmw42
Not directly in the autocolor script, but you can process the image with the script and then do a 50% blend composite with the original to get what I think you want.

see
http://www.imagemagick.org/Usage/compose/#blend

autocolor arguments image_orig image_processed_by_script
convert image_orig image_processed_by_script -compose blend -define compose:args=50,50 -composite result50pct

or

autocolor arguments image_orig miff:- |\
convert image_orig - -compose blend -define compose:args=50,50 -composite result50pct