PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Using SVG with PHP-GTK2 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Using SVG with PHP-GTK2


#1118
beyonder (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Using SVG with PHP-GTK2 3 Years, 6 Months ago Karma: 0  
Hi everybody,
This is my first post so first of all I thank you all (especially kksou) for the great job you all are making here.


I've followed your tutorial here : http://www.kksou.com/php-gtk2/articles/display-svg-image-file.php
But still couldn't mage php-gtk2 recognize svg file formats.
I got this error :
Fatal error: Uncaught exception 'PhpGtkGErrorException' with message 'Couldn't recognize the image file format for file 'svg_example1.svg''
Stack trace: GdkPixbuf::new_from_file('svg_example1.svg' )


I'm using the latest php-gtk-2.0.1 version of php-gtk.

May anyone help me making it works with svg files?
 
  The administrator has disabled public write access.

#1119
kksou (Admin)
Admin
Posts: 1599
graph
User Online Now Click here to see the profile of this user
Re:Using SVG with PHP-GTK2 3 Years, 6 Months ago Karma: 23  
Hi,

Please refer to:

Tips on using the new PHP-GTK v2.0 release

svg does not work with PHP-GTK v2.0, yet.

If you want to try it first, you need PHP-GTK2 beta.

Regards,
/kksou
 
  The administrator has disabled public write access.

#1174
beyonder (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Using SVG with PHP-GTK2 3 Years, 6 Months ago Karma: 0  
Hi,
Thanks for your respond.
I did'nt succeed in making it works. Neither the beta version nor the v2.0 one.
Can you please make a zipped working version of php-gtk2 (which runs successfully with gtkhtml and svg) ?
I've already passed several days (in vain) making it works.
 
  The administrator has disabled public write access.
#1739
acolomb (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:Using SVG with PHP-GTK2 3 Years, 2 Months ago Karma: 0  
I just got it to work with the 2.0.0beta release. In case you still need the information: You need to copy
libcroco-0.6.3.dll and
libgsf-1-114.dll
from the archive at http://perisama.net/libs/gtk/gtk-2.10-runtime-full.zip
into your php-gtk2 directory.
Additionally, you will need a copy of bzip2.dll there. Version 1.0.3.1928 as reported by windows file properties works. You can get it from the Gimp 2.6 windows build for example. I've had no luck with newer (1.0.5) bzip2.dll libraries.

It also works with the 2.0.1 stable release but there are more files that need to be copied from the beta in addition to the above:
freetype6.dll
libfontconfig-1.dll
libexpat.dll
lib/gtk-2.0/2.10.0/loaders/libpixbufloader-svg.dll
etc/gtk-2.0/gdk-pixbuf.loaders

Hope this helps everybody trying to work with SVG and PHP-Gtk.

Regards, André
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2012. kksou.com. All Rights Reserved