How to install YAPPA Photo Album

Contributed by: based on contribution from Eric Womack
Created/Updated: februar 09, 2004

 


First install the Freetype package (check rpmfind.net for updates)

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

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 directory

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",

Also make sure to set the Image_Module to use the GD package with is already installed on the SME 5.5

 /* Image module: Magick, gd */
    "image_module" => 'gd',

In order to use the latest version 1.7 you need to alter a line in the "image-gd.class.php" file or you will not have auto generated thumbnails.

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;
}