Skip to content

mix-blend-mode ignored in rasterization? #14

@IsaacWallis

Description

@IsaacWallis

Sorry if this is a bit of a dumb question, I'm newish, but, if I use this dali code:

(def blend                                                                                                                                  
    [:dali/page                                                                                                                                            
        [:defs                                                                                                                                                 
            (s/css                                                                                                                                                
                (str "rect {stroke: black; mix-blend-mode: difference;}\n"))]                                                                                        
        [:rect {:fill :pink} [80 60] [250 250]]                                                                                                                
        [:rect {:fill :blue} [140 120] [250 250] 80]                                                                                                           
        [:rect {:fill :turquoise} [180 180] [250 250]]])

then do (d/render-svg blend "diff1.svg") browsers and OSes show me an image like this:
image

which is correct (I think).

Then if I do (d/render-png blend "diff1.png") I get this:
image

It seems like the blend mode is being ignored in rasterization? Perhaps this is another batik bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions