Transparency on SVG images is not applied when specified.
Steps to reproduce:
- go to openstreetmap.org and export a part of a city by using the "share" button in the upper right corner using svg format and the rectangle-selection tool (so that you use a similar structured svg as I had) - my file had a size of about 3MB
- create a new document in LibreOffice Writer and insert this image using the menu; resize the image to fill the entire page
- right click on the image and choose "properties", click on the transparency tab, set it to 50% (fix) and proceed by clicking "ok"
- The image should be half transparent now.
- nothing has changed, transparency is ignored
workaround (for simple colored background):
- draw a new rectangle which overlays the image
- choose background color (e.g. white) as fill color
- set transparency of this rectangle according to your needs
I get a 504 Gateway Timeout error when I try to save a SVG file from the page.
Could you please provide one?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Created attachment 131944 [details]
SVG with external transparency
I think, that there is no error. With the transparency in the image properties dialog you define the background behind the image. If the image itself is totally opaque, you will not see this background. In file format that is the attribute draw:opacity for a solid transparency and draw:opacity-name for a gradient transparency. The SVG picture in the attachment has a solid green background with a gradient transparency.
To see this background, the image itself needs some transparency. That can be parts of the image by e.g. alpha channel, or you set the whole image to some transparency. That is done by the transparency field in the general picture dialog (the dialog with the color filters and gamma setting and effects like "Pop Art"). In file format it is the attribute draw:image-opacity.
The SVG in the attachment has a draw:image-opacity of 40% (=60% transparency). That makes it background visible and you can see, that the background has the filling which I described above.
That feature is not specific for SVG but exists for raster images too.
Ok, I understand.
But I wonder why images are handled in a different way, compared to other drawing objects (like e.g. a filled rectangle)... So I would suggest a new option for images to switch transparency applying between "transparent background" (as it is seen today) and "complete picture" (as it is done with drawing objects). This would make application behavior more ... transparent. ;)
See bug 80421 about having the image transparency in the properties dialog transparency tab in addition.
(In reply to Regina Henschel from comment #5)
> See bug 80421 about having the image transparency in the properties dialog
> transparency tab in addition.
Should this report be closed as duplicate of 80421, then?
Ok, marked as duplicate.
*** This bug has been marked as a duplicate of bug 80421 ***