On Thu, 03 Sep 2009 23:29:37 -0700
Glenn Linderman <[email protected]> wrote:

| convert -size 787x300 xc:white -stroke black -fill white -tile 
| pattern:checkerboard -draw "rectangle 0,0 787,300" -threshold 50 rect.tif
| 
| produces a strange dark line near the right edge of the image.
| 
| One could speculate that it has something to do with the stroke, which 
| is otherwise invisible, except that it isn't quite at the end, where the 
| stroke should be.  I couldn't think of any other speculative reasons, so 
| here's this email!
| 

Looking closer...

I had to remove the -threshold 50 as it comes out all white otherwise.
Sure you did not means 50%???

Replaceing the threshold and the save to the TIF file replace with....

    -rotate 180 -crop 20x20+0+0 -scale 1000% show:

I can see the very slight darkening.

The stroke draws a line just outside the image.  You can make that stroke 
visioble by doing...

-draw "rectangle 0,0 786,299"

instead.   However the very very very slight darkening I will vanish
if I move the rectangle border further away.

-draw "rectangle 0,0 788,301

The default width for stroke is 1 pixel, but it is a floating point
number so it could overflow the pixel boundary very very slightly.
If you don't want this use   +anti-alias  to turn of aliasing effects.

Also if instead of adjustingthe -draw I add -strokewidth 0.9  before
the draw the slight darkening will also reduce in amount, to where it
is barely noticable unless you look at actual color values.

I would say -strokewidth is slightly too wide.  But only very very
slightly, and not really much of a real problem.


If you thing it is a problem, start a topic on the Discussion forum 'Bugs'
section.http://www.imagemagick.org/discourse-server/viewforum.php?f=3

  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
   Writing software takes twice as long as you expect it will take...
                  Even if you keep this in mind!
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to