Bug 138339 - svg file not rendered properly on karbon and kdesktop
Summary: svg file not rendered properly on karbon and kdesktop
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdesktop
Classification: Miscellaneous
Component: general (show other bugs)
Version: 3.5
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: needs_verification
Depends on:
Blocks:
 
Reported: 2006-12-04 12:02 UTC by Fathi Boudra
Modified: 2018-09-04 20:02 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test case 1 (22.05 KB, image/svg+xml)
2006-12-04 12:04 UTC, Fathi Boudra
Details
test case 2 (108.99 KB, image/svg+xml)
2006-12-04 12:05 UTC, Fathi Boudra
Details
screenshots pack (690.25 KB, application/x-tgz)
2006-12-04 23:34 UTC, Fathi Boudra
Details
svg wallpaper 1 (51.55 KB, image/png)
2006-12-05 11:14 UTC, Fathi Boudra
Details
svg wallpaper 2 (225.25 KB, image/png)
2006-12-05 11:15 UTC, Fathi Boudra
Details
1st quick preview -> correct (130.61 KB, image/png)
2006-12-05 12:18 UTC, Fathi Boudra
Details
2nd quick preview -> wrong (59.43 KB, image/png)
2006-12-05 12:18 UTC, Fathi Boudra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fathi Boudra 2006-12-04 12:02:59 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

hi :)

i've got an svg wallpaper rendered correctly with inkscape or krita but not with karbon or kdesktop.

cheers,

Fathi
Comment 1 Fathi Boudra 2006-12-04 12:04:00 UTC
Created attachment 18776 [details]
test case 1

this is my test case
Comment 2 Fathi Boudra 2006-12-04 12:05:39 UTC
Created attachment 18777 [details]
test case 2

This is my test case 2
Comment 3 Jan Hambrecht 2006-12-04 12:11:46 UTC
Can you please add which version of karbon you are running?
Comment 4 Fathi Boudra 2006-12-04 12:15:22 UTC
karbon 1.6.1
Comment 5 Fathi Boudra 2006-12-04 12:28:07 UTC
Some additional informations:
ksvg / svgdisplay rendering is incorrect too and it seems ksvg kpart is used in konqueror for viewing svg file.
Comment 6 Jan Hambrecht 2006-12-04 22:53:24 UTC
Ok i checked your testcases just now. The first one looks fine here, e.g. the same as in inkscape. The second one has some missing transparency on the spiral. Is that what you mean or have you other issues. Would be good if you can describe what you feel is wrong or if you can attach a screenshot showing the incorrect rendering.
Comment 7 Fathi Boudra 2006-12-04 23:34:11 UTC
Created attachment 18788 [details]
screenshots pack

Screenshots pack. It contains:
inkscape
karbon
konqueror
svgdisplay
Comment 8 Fathi Boudra 2006-12-04 23:37:08 UTC
In the screenshots pack, you'll see that i have only a correct (and complete) svg in inkscape. Have you tried to use both files as kdesktop wallpapers ?
test case 1 has wrong gradient and test case 2 is incomplete.
Comment 9 Jan Hambrecht 2006-12-05 00:04:50 UTC
Well i think your drawing is simply too big. If you use the zoom in karbon you will see that all geometry is there. Displaying at 100% shows that the drawing is much bigger than the screen and i am here at 1280x1024.
Comment 10 Fathi Boudra 2006-12-05 00:53:49 UTC
You are right, using karbon zoom display the image completely. Anyway, if you take a look at my karbon screenshot, you'll see that the scrollbars aren't set correctly if the image can be displayed fully.

Not karbon related, but have you tried to use these svg as kdesktop wallpapers ? Because, it was my primary problem. i wasn't able to view them properly. Then i tried to see them with karbon to confirm bad behavior with svg files ...

How can you explain svgdisplay and konqueror view ? maybe it become off topic and i must forward this bug to kdesktop :)
Comment 11 Jan Hambrecht 2006-12-05 01:04:57 UTC
Thats because the size defined inside the scg files says it is 1024x768 big, but the actual drawing is bigger. Karbon zooms to the page size of the drawing, us can see that if you make the hide the layer. Just resize the drawing that it fits the shown page or adjust the page size to be the same as the drawing.
Comment 12 Fathi Boudra 2006-12-05 10:52:06 UTC
ok, karbon part can be closed :) Now kdesktop part ;)
Comment 13 Jan Hambrecht 2006-12-05 10:59:31 UTC
I think the whole bug can be closed. If you change the size of the page of your svg document, kdesktop shows the wallpaper just fine. I've done that yesterday and it worked.
Comment 14 Fathi Boudra 2006-12-05 11:13:52 UTC
for test case 1, the gradient is wrong. changing the size resolve nothing.
for test case 2, i changed it to 1600x1200 and kdesktop doesn't show the wallpaper fine. I expect when i select "adapt" position, it scale the svg to fit my desktop like a bitmap ?

i joined 2 other screenshot of the desktop.
Comment 15 Fathi Boudra 2006-12-05 11:14:41 UTC
Created attachment 18792 [details]
svg wallpaper 1
Comment 16 Fathi Boudra 2006-12-05 11:15:21 UTC
Created attachment 18793 [details]
svg wallpaper 2
Comment 17 Fathi Boudra 2006-12-05 11:41:09 UTC
welcome back jaham ;)

i played with x/y coordinate and width/height values on test case 2. i was able to fix the image. It is a bit annoying that "adapt" position doesn't put properly the svg (it seems that on GNOME it works properly) but why not ..., i have an explanation. Now, test case 1 to solve ...
Comment 18 Jan Hambrecht 2006-12-05 11:57:31 UTC
I agree that the gradients of the first testcase are not rendered correctly. But that is a bug for ksvg as i suppose kdesktop uses that to render svg files.
Regarding the positioning of the wallpapers. I had not to fiddle with these values yesterday. I admit i only checked for the second test case. I just changed the size of the document to match the drawing and then simply set the resulting file as wallpaper by using the right mouse clock menu in konqi. I think showing the wallpaper centered would be the right choice.
Comment 19 Fathi Boudra 2006-12-05 12:17:14 UTC
I'm not sure it is ksvg. If you use svgdisplay/konqueror, the gradient is correct. When you select in kdesktop the wallpaper, the quick preview is correct too, the problem occurs just after the selection of the file.
Another set of screenshots ...
Comment 20 Fathi Boudra 2006-12-05 12:18:10 UTC
Created attachment 18794 [details]
1st quick preview -> correct
Comment 21 Fathi Boudra 2006-12-05 12:18:51 UTC
Created attachment 18795 [details]
2nd quick preview -> wrong
Comment 22 Fathi Boudra 2006-12-05 12:52:28 UTC
I've done a small test:
* open test case 1 with karbon
* export it as a new svg
* result: size decrease from 22Kb to 12Kb and is correct under kdesktop

Unfortunately, generated svg is completely different from inkscape.
Doing same test with inkscape, the resulting svg is like original: same size (22Kb) and incorrect as kdesktop wallpaper.

At least, a workaround. 
Comment 23 Jan Hambrecht 2006-12-05 13:34:17 UTC
You should try not to save in inkscape svg from inskscape but use plain svg. Maybe that makes a difference.
Comment 24 Fathi Boudra 2006-12-05 14:01:55 UTC
No diff.
Comment 25 Jeroen Tietema 2007-05-14 23:09:41 UTC
i have the same problem with the TribalWolf wallpaper
You can get it here:
http://www.kde-look.org/content/show.php/Tribal+Wolf?content=30547

The transparancy doesn't show up correctly
Comment 26 FiNeX 2008-12-10 02:57:52 UTC
What is the status of karbon right now?
Comment 27 Jan Hambrecht 2008-12-12 00:06:13 UTC
Karbon is in beta for the KOffice 2.0 release now. Unfortunately the shape opacity property is not yet implemented, so these svg images look not 100 percent correct. Other than that its starting to become usable. :-)
Comment 28 FiNeX 2009-12-06 00:11:00 UTC
Moved in "WAITINGFORINFO" status.
Comment 29 Andrew Crouthamel 2018-09-04 20:02:05 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I will be closing this bug.