Koozali.org: home of the SME Server

tif- and eps-files in "Gallery"

Thomas Ihlebek

tif- and eps-files in "Gallery"
« on: May 28, 2003, 09:35:27 PM »
OK folks! Yet another problem with tif and so on...

Uploading jpg and gif works fine, but with tif I got this error (even when uploading "tiny" tif's):

"Error: Invalid image"


...however, this is in the "util.php":

function acceptableImageList() {
return array('jpg', 'gif', 'png', 'tif', 'eps');

...and this:

function valid_image($file) {
if (($type = getimagesize($file)) == FALSE)
return 0;

switch($type[2])
{
case 1: // GIF
case 2: // JPEG
case 3: // PNG
case 4: // TIF
case 5: // EPS
return 1;
break;
default:
return 0;
break;

I've installed:

Gallery 1.3.3

ImageMagick-5.4.9-1.i386.rpm
ImageMagick-perl-5.4.9-1.i386.rpm

libtiff-3.5.7-2.i386.rpm
libungif-4.1.0-10.i386.rpm

XFree86-libs-4.2.0-8.i386.rpm

netpbm-9.24-3.i386.rpm
netpbm-progs-9.24-3.i386.rpm

And running php 4.1.2

Thomas

Gaspar Raposo

Re: tif- and eps-files in "Gallery"
« Reply #1 on: June 13, 2003, 06:20:48 AM »
hey there,

Do all of those rpm's work fine for you? Can you please provide me with the information of where you got the rpms from? Please. I am having a problem with my gallery and i just cannot get any of the images to display. i just see a red X.

Let me know if there is anything you can do to help.

Gaspar