gd2 in php-gtk
| From: | kksou | Date: | Tue, 28 Nov 2006 05:38:00 +0000 |
| Subject: | gd2 in php-gtk | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7482@lists.php.net to get a copy of this message | ||
Hi,
Was trying to create a number of tutorials to showcase php-gtk2 in
processing digital photos.
- a simple drag and drop image viewer:
http://www.kksou.com/php-gtk2/articles/create-a-simple-drag-and-drop-image-viewer.php
- adjust window size to fit image
http://www.kksou.com/php-gtk2/articles/get-image-size.php
- scaling an image (creating thumbnails)
http://www.kksou.com/php-gtk2/articles/scale-an-image.php
Would like to do come out with more examples, such as rotating an image,
adding dates to the bottom right-hand corner of the photo, etc. Thought this
would be a good use for php-gtk.
Since php-gtk does not have much image processing functions, tried using GD2
instead:
$img_gd = imagecreatefromjpeg($img_file);
$pixbuf=GdkPixbuf::new_from_gd($img_gd);
And got the error: "PHP-GTK was not compiled against PHP with bundled GD
library"
(yes, have put in the php_gd2.dll and added gd2 extension in php.ini)
Any particular reason why GD2 library was not included in the php-gtk2
compilation of Gnope Installer?
Since GD2 has quite a number of useful image processing functions that's
missing in php-gtk2, if the php-gtk2 core team could bundle gd2 library in
the Gnope Installer, that would be really great!
Regards,
/kksou
--
View this message in context: http://www.nabble.com/gd2-in-php-gtk-tf2716413.html#a7573677
Sent from the Php - GTK - General mailing list archive at Nabble.com.