Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Apr 2019, 10:38
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
[Viewnior 1.6] .svg file : black
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
fabrice_035


Joined: 28 Apr 2014
Posts: 617
Location: Bretagne / France

PostPosted: Thu 21 Mar 2019, 02:23    Post subject:  [Viewnior 1.6] .svg file : black
Subject description: which formats SVG are supported ?
 

Hello,

I try to use pygal from Python, very nice tools to generate charts and many others graph.

http://www.pygal.org/en/stable/documentation/first_steps.html

The first example create a Fibonacci charts. I can see the resultat after generating the graph if i open the file in my browser (firefox) or if i send the file into a online SVG viewer/editor.
But Viewnior can't show the graph, no error displayed, just view a black picture (rox preview too)
Is that a bug? which svg viewer for Puppy ?

(file attach : Fibonacci charts )

Regard.
bar_chart.svg.gz
Description  remove fake extension, it's a .svg file.
gz

 Download 
Filename  bar_chart.svg.gz 
Filesize  21.99 KB 
Downloaded  31 Time(s) 

_________________
xenialpup 7.5 / Linux Kernel: 4.4.95 / Window Manager: JWM v2.3.7
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3292
Location: The Blue Marble

PostPosted: Thu 21 Mar 2019, 09:29    Post subject:  

Because the file contains javascript and advanced styling (CSS) that are ignored by common SVG renderer (other than web browser). If you take out the javascript and these CSS styling, the browser will also show a black rectangle.
_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 617
Location: Bretagne / France

PostPosted: Thu 21 Mar 2019, 12:13    Post subject:  

Ok thanks, I just looked at that famous pygal yesterday quickly. so it's a shame and exporting to a png image requires a more recent python version.
...to be continued...

Regard.

_________________
xenialpup 7.5 / Linux Kernel: 4.4.95 / Window Manager: JWM v2.3.7
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5316
Location: Ontario

PostPosted: Thu 21 Mar 2019, 20:17    Post subject:  

mtpaint will act as a viewer of svg format if the right library is used in your distro.
______________________________________________________
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 617
Location: Bretagne / France

PostPosted: Fri 22 Mar 2019, 02:02    Post subject:  

My svg file contain and advanced styling (look jamesbond response) Mtpaint not able to read that. Inkscape (puppy's version) neither.
_________________
xenialpup 7.5 / Linux Kernel: 4.4.95 / Window Manager: JWM v2.3.7
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0416s ][ Queries: 13 (0.0075s) ][ GZIP on ]