I'm trying out the -contrast_stretch option like this:
convert paysage3.jpg -contrast-stretch 15%x60% paysage4.jpg
The result is indeed a more contrasted image, but I always obtain the same image when I change the percentages. I've tried out all sorts of absurd and extreme pairs of percentages.
I'm using version 6.4.9-8 on XP. What am I doing wrong?
contrast-stretch
Re: contrast-stretch
I am not sure but I think you will need to escape the % on windows with another %
Try:
I can not find the relavent section on Anthony's site at the moment.
Try:
Code: Select all
convert paysage3.jpg -contrast-stretch 15%%x60%% paysage4.jpg
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: contrast-stretch
Bonzo wrote:I am not sure but I think you will need to escape the % on windows with another %
Try:I can not find the relavent section on Anthony's site at the moment.Code: Select all
convert paysage3.jpg -contrast-stretch 15%%x60%% paysage4.jpg
see http://www.imagemagick.org/Usage/api/#windows
Re: contrast-stretch
This works fine with %%. Thanks.
But if this is not documented, imagemagick should at least display an error
message when I type something wrong!
But if this is not documented, imagemagick should at least display an error
message when I type something wrong!
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: contrast-stretch
Im is not seeing anything wrong. DOS is screwing it up before IM sees it!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/