[geeklog-cvs] geeklog-1.3/public_html/admin story.php,1.103,1.104
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Fri Sep 5 13:18:17 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory geeklog_prod:/tmp/cvs-serv21687/public_html/admin
Modified Files:
story.php
Log Message:
Added support for the GD library when uploading images.
Index: story.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/story.php,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -d -r1.103 -r1.104
*** story.php 4 Sep 2003 08:13:18 -0000 1.103
--- story.php 5 Sep 2003 17:18:15 -0000 1.104
***************
*** 851,858 ****
// Using imagemagick
$upload->setMogrifyPath ($_CONF['path_to_mogrify']);
} else {
! // must be using netPBM
! $upload->_pathToNetPBM= $_CONF['path_to_netpbm'];
! }
$upload->setAutomaticResize(true);
if ($_CONF['keep_unscaled_image'] == 1) {
--- 851,861 ----
// Using imagemagick
$upload->setMogrifyPath ($_CONF['path_to_mogrify']);
+ } elseif ($_CONF['image_lib'] == 'netpbm') {
+ // using netPBM
+ $upload->setNetPBM ($_CONF['path_to_netpbm']);
} else {
! // must be using the GD library
! $upload->setGDLib ();
! }
$upload->setAutomaticResize(true);
if ($_CONF['keep_unscaled_image'] == 1) {
More information about the geeklog-cvs
mailing list