Re: image gallery - no thubernails Posted by LittleDen 18 Feb 2004 05:50 UTC I have similar problem... I prepare images and thumbnails in other program. Try upload, point to image file and to thumbnail file. Press Upload — image uploads ok, but thumbnail — not. 😢
Posted by Maido 13 Apr 2004 13:27 UTC I think i've found at least a "hack" for this problem. Open the file lib/imagegals/imagegallib.php and find this lines: function get_image($id, $itype = 'o', $xsize = 0, $ysize = 0) { global $gal_use_db; global $gal_use_dir; $mid = ""; if ($itype == 't') { $galid = $this->get_gallery_from_image($id); $galinfo = $this->get_gallery_info($galid); $xsize = $galinfo%22thumbSizeX%22; $ysize = $galinfo%22thumbSizeY%22; } Now, comment out (adding "//" in front) the $xsize and $ysize lines, like this: function get_image($id, $itype = 'o', $xsize = 0, $ysize = 0) { global $gal_use_db; global $gal_use_dir; $mid = ""; if ($itype == 't') { $galid = $this->get_gallery_from_image($id); $galinfo = $this->get_gallery_info($galid); //$xsize = $galinfo%22thumbSizeX%22; //$ysize = $galinfo%22thumbSizeY%22; } This will prevent the following "if" statements, apparently causing the error. Everything works fine for me now, I hope this will solve the problem in your case as well 😉