Comment 2 for bug 951816

Revision history for this message
su_v (suv-lp) wrote :

> Wouldn't it be possible that inkscape had a feature that flattened transparencies in SVG

Besides JazzyNico's hint (basic feature already exists within the dropper tool context): Why would one want flatten for example the attached SVG file while keeping the SVG file format and the content as vector? (Note: the checkerboard pattern is only to visualize the effect of using combinations of object-, fill- and stroke-opacity - it's on a separate layer and can be hidden easily. The task to flatten transparency remains complex with or without the pattern).

Flattening the transparency would require to duplicate all stroked objects, convert the strokes to paths, and create complex path intersections to -in the end- have each region of the overlapping semi-transparent regions as individual closed paths which can then have a solid fill color matching the result of the composited semi-transparent regions.

Note that this would also require to convert the text to path and split it into hundreds or more individual paths.

I don't see a useful scenario for such complex transformations while keeping the file format as SVG (the different types and levels of opacity are inherent to the SVG specification).

Possibly you are requesting this for a specific (narrow) use case / task: export to vector formats which do not support transparency at all (PostScript)?