Notch on Cygwin -Bug report
-
- Posts: 14
- Joined: 2010-06-15T12:55:03-07:00
- Authentication code: 8675308
- Location: Malmö, Sweden
Notch on Cygwin -Bug report
Probably needs confirmation but the -R and -B parameters seem broken. Acts as if all -L -R -B -U parameters are at 0. -L and -U work as expecterd individually and in combination however.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Notch on Cygwin -Bug report
There was a typo for -R (right) that I have now fixed. On quick review, I do not see anything else obviously wrong. I do not have time this morning to test further, but I will try to look at it later today. In the mean time, download the updated version and try it again and let me know what you find. If possible provide a link to the image you are testing, so I can test with it also, if needed.
-
- Posts: 14
- Joined: 2010-06-15T12:55:03-07:00
- Authentication code: 8675308
- Location: Malmö, Sweden
Re: Notch on Cygwin -Bug report
That was quick!
Unfortunately I see the same behaviour with the updated script.
Unfortunately I see the same behaviour with the updated script.
Re: Notch on Cygwin -Bug report
Code: Select all
if [ "$right" != "0" ]; then
right=`convert xc: -format "%[fx:2*$right]" info:`
masking="-strokewidth $right -draw \"line $lastcol,0 $lastcol,$lastrow\""
fi
if [ "$bottom" != "0" ]; then
bottom=`convert xc: -format "%[fx:2*$bottom]" info:`
masking="-strokewidth $bottom -draw \"line 0,$lastrow $lastcol,$lastrow\""
fi
Code: Select all
if [ "$right" != "0" ]; then
right=`convert xc: -format "%[fx:2*$right]" info:`
masking="$masking -strokewidth $right -draw \"line $lastcol,0 $lastcol,$lastrow\""
fi
if [ "$bottom" != "0" ]; then
bottom=`convert xc: -format "%[fx:2*$bottom]" info:`
masking="$masking -strokewidth $bottom -draw \"line 0,$lastrow $lastcol,$lastrow\""
fi
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Notch on Cygwin -Bug report
Thanks dlemstra! I missed that earlier this morning on my quick review before I had to go out. You have a good eye.dlemstra wrote: $masking is missing, it should be:
[/code]
I have made the fix and uploaded it. Sorry for the errors.
Let me know if that fixes it. If not I will look further.
Fred
-
- Posts: 14
- Joined: 2010-06-15T12:55:03-07:00
- Authentication code: 8675308
- Location: Malmö, Sweden
Re: Notch on Cygwin -Bug report
Works fine!
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Notch on Cygwin -Bug report
Great! Thanks for notifying me and thanks to dlemstra for catching what I had missed.markanini wrote:Works fine!