SME
5.5
[root@e-smith
]# rpm -Uvh ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/freetype-2.0.3-7.i386.rpm
SME
5.6
[root@e-smith
]# rpm -Uvh ftp://rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/freetype-2.0.9-2.i386.rpm
Then
install/update the GD graphics library
[root@e-smith
]# rpm -Uvh ftp://rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/gd-1.8.4-4.i386.rpm
Then create an ibay
to hold your pictures
Information bay name: Yappa
Description: Online Photo Album
Information bay name: Yappa
Description: Online Photo Album
Group: everyone
User access: Write=group, Read=everyone
Public access: (As you like it)
Execution of dynamic content: enabled
Now download the Yappa package
from SourceForge.Net (http://sourceforge.net/projects/yappa/) and Unzip in the
HTML directoryUser access: Write=group, Read=everyone
Public access: (As you like it)
Execution of dynamic content: enabled
Now edit the config.inc.php file so that the Photo_root variable is set to the path of the images.
/* directory where album dirs are stored */ "photo_root" => "/home/e-smith/files/ibays/yappa/html/photos", |
/* Image module: Magick, gd */ "image_module" => 'gd', |
Change the line as indicated below (the ImageCreateTruecolor and ImageCopyResampled are part of the GD version 2 which is not yet available and functional on SME 5.5.
function ImageUtil(&$config)
{
// $this->_can_truecolor = (function_exists("ImageCreateTruecolor") && function_exists("ImageCopyResampled")) ? 1 : 0;
$this->_can_truecolor = 0;
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น