You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2010/06/19 13:48:20 UTC

DO NOT REPLY [Bug 49467] New: Clipped shape is aliased

https://issues.apache.org/bugzilla/show_bug.cgi?id=49467

           Summary: Clipped shape is aliased
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: SVG Rasterizer
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: jfhren@yahoo.fr


Created an attachment (id=25617)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25617)
Clipped vs Masked

When a shape is clipped, the rasterized clipped shape is aliased. If the same
shape is masked, the masked shape is not aliased.

svg example in attachment done with Inkscape 0.46

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 49467] Clipped shape is aliased

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49467

Thomas Deweese <de...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Thomas Deweese <de...@apache.org> 2010-08-22 21:48:24 EDT ---
(In reply to comment #0)
> Created an attachment (id=25617)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25617) [details]
> Clipped vs Masked
> 
> When a shape is clipped, the rasterized clipped shape is aliased. If the same
> shape is masked, the masked shape is not aliased.
> 
> svg example in attachment done with Inkscape 0.46

   The SVG spec allows for hard edged and/or antialiased clipping.
Batik supports both through the use of the shape-rendering="geometricPrecision"
rendering hint on the clipPath element.

   The advantage of this is that hard edged clipping is typically much faster
than anti-aliased.

   See samples/test/spec/masking/clipQuality.svg for an example.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 49467] Clipped shape is aliased

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49467

Helder Magalhães <he...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.7                         |1.8
         OS/Version|Linux                       |All
           Severity|major                       |enhancement

--- Comment #1 from Helder Magalhães <he...@gmail.com> 2010-08-22 13:21:25 EDT ---
The SVG spec. states that:

"A clipping path can be thought of as a mask wherein those pixels outside the
clipping path are black with an alpha value of zero and those pixels inside the
clipping path are white with an alpha value of one (with the possible exception
of anti-aliasing along the edge of the silhouette)" [1]

So, although it made sense, IMHO, that Batik would apply "anti-aliasing along
the edge of the silhouette" (given that it supports anti-aliasing), AFAIK it is
not nonconforming behavior. Lowering severity to "enhancement", as it is what
it should be (please correct me if I'm wrong!).

Confirm this still reproduces in 1.8-pre using the current trunk code, using
Oracle's JDK 1.6.0_21.

[1] http://www.w3.org/TR/SVG11/masking.html#ClippingPaths

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org