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 Fri 25 May 2018, 18:59
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Tahr 6.0.2 svg wrapper
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Geoffrey


Joined: 30 May 2010
Posts: 2346
Location: Queensland

PostPosted: Thu 12 Mar 2015, 20:22    Post subject:  Tahr 6.0.2 svg wrapper
Subject description: unable to view images wrapped with svg
 

There is a problem with viewing images wrapped with a svg, this code should work,
Code:
<svg width="640" height="480">
   <image xlink:href="./goofy.16.png"
   width="640" height="480" />
   <text x="50%" y="50%"
     style="text-anchor: middle; fill: #000000; font-weight: bold; font-family: serif; font-size: 30px;">
       You Should See a png image behind this text     
</text>
</svg>
save as test.svg, if run in /usr/share/backgounds then goofy.16.png should show behind the text using a image viewer, this should also work with gtkdialog
Code:
<pixmap><input file>/path/to/test.svg</input></pixmap>

but don't, I can however convert to a pdf which shows the png using this code

Code:
rsvg-convert -f pdf -o test.pdf test.svg


I came across this when trying to run a application I've been working on which works in other pups.
test_pdf.jpg
 Description   
 Filesize   46.24 KB
 Viewed   298 Time(s)

test_pdf.jpg


_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2346
Location: Queensland

PostPosted: Thu 12 Mar 2015, 21:49    Post subject:  

I've tried it in racy and slacko, it dont show in the image viewers so I may be on the wrong track, but it does show in slacko and racy gtkdialog with this code
Code:
#!/bin/sh
export test='
<window>
 <vbox>
    <pixmap>
    <input file>./test.svg</input>
    </pixmap>
 </vbox>
</window>'
gtkdialog --program=test


I'll continue to try and track down the culprate.
racy-gtkdialog.jpg
 Description   
 Filesize   69.78 KB
 Viewed   270 Time(s)

racy-gtkdialog.jpg


_________________
Carolina: Recent Repository Additions


Last edited by Geoffrey on Fri 13 Mar 2015, 19:06; edited 1 time in total
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2346
Location: Queensland

PostPosted: Fri 13 Mar 2015, 09:18    Post subject:  

I can't find any clues to the problem, but I can work around it with rsvg, so it's not urgent.
_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1515
Location: Japan

PostPosted: Sat 14 Mar 2015, 22:12    Post subject:  

Everything is fine as long as you use absolute paths for your image. Relative paths seem to work only in browsers. Inkscape has the same limitation. Hardly a "bug", and definitely not a Tahr issue.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
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.0309s ][ Queries: 13 (0.0056s) ][ GZIP on ]