Colour Invert Filter removes part of image

General discussions about Inkscape.
Cas
Posts: 1
Joined: Wed Mar 23, 2011 1:41 pm

Colour Invert Filter removes part of image

Postby Cas » Wed Mar 23, 2011 1:50 pm

I have found this weird problem.

I have this svg image i would like to edit
redshift-status-off.svg
Original
(5.73 KiB) Downloaded 270 times

but when i use the Colour Invert Filter I get this strange cutoff section on the resulting image when viewed outwith inkscape
redshift-status-on.svg
Altered Version
(7.78 KiB) Downloaded 259 times


Inkscape 0.48.1 r9760 on Ubuntu 10.10

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Colour Invert Filter removes part of image

Postby ~suv » Thu Mar 24, 2011 3:35 pm

Cas wrote:when i use the Colour Invert Filter
The attached file uses a filter called 'Black Light' (which - as far as I can tell - is not part of Inkscape's stock preset filters) - not 'Filters > Color > Invert'. Do you have a sample screenshot what is to be the expected result when applying a filter called 'Black Light' to a path with a gray-to-white gradient fill?

Cas wrote: I get this strange cutoff section on the resulting image when viewed outwith inkscape
What application "outwith" Inkscape do you use? In my tests, Firefox 3.6, Opera 11 and Squiggle (Batik 1.8pre) render it the same as Inkscape on-canvas, Chromium 12.0 similar but with lighter shading, Safari 5.0 doesn't render SVG filter effects at all, and rsvg-view, display (ImageMagick) and GIMP 2.6.11 - i.e. viewers using librsvg for rendering SVG files - cut off the right and bottom edges.

To me this seems not an Inkscape problem, but more an issue with librsvg and its partial support of SVG filter effects and other SVG 1.1 features.

ivan louette
Posts: 215
Joined: Thu Aug 21, 2008 4:08 am
Location: Belgium

Re: Colour Invert Filter removes part of image

Postby ivan louette » Thu Mar 24, 2011 8:47 pm

~Suv, Black light is in the Color submenu (it replaces white with black) ;-)

And Cas I don't find clipping problems in these files. However you could try to increase the filter area in the General filters settings tab below the Filters editor.

ivan

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Colour Invert Filter removes part of image

Postby ~suv » Thu Mar 24, 2011 10:35 pm

ivan louette wrote:~Suv, Black light is in the Color submenu (it replaces white with black) ;-)
Oops - my bad! Thx :)

ivan louette wrote:And Cas I don't find clipping problems in these files.
All renderers I have installed which are based on librsvg (rsvg-view, ImageMagick, GIMP) clip the filtered object, like in this screenshot (with display, from ImageMagick 6.6.8-1):
cas-redshift-status-on-display-ImageMagick-screenshot.png
cas-redshift-status-on-display-ImageMagick-screenshot.png (10.97 KiB) Viewed 2493 times

Inkscape, Batik and most web-browsers however render it the same:
cas-redshift-status-on-Squiggle-Batik18pre-screenshot.png
cas-redshift-status-on-Squiggle-Batik18pre-screenshot.png (43.03 KiB) Viewed 2493 times


Return to “General Discussions”