convert: unrecognized option `-regard-warnings'

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
niko
Posts: 3
Joined: 2011-11-30T05:37:19-07:00
Authentication code: 8675308

convert: unrecognized option `-regard-warnings'

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
niko
Posts: 3
Joined: 2011-11-30T05:37:19-07:00
Authentication code: 8675308

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

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
niko
Posts: 3
Joined: 2011-11-30T05:37:19-07:00
Authentication code: 8675308

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply