forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: raetsche on February 24, 2004, 05:45:18 pm

Title: batch resize tool doesn't work without fullsize pictures
Post by: raetsche on February 24, 2004, 05:45:18 pm
Hi!

I have a problem with the batch resize tool. I just changed the size of my thumbnails. Now i want to resize the old thumbnails to the new size.
The problem is, the batch resize tool written for this purpose doesn't work. It shows the following error message:

Code: [Select]
Warning: getimagesize(albums/userpics/P1160008.jpg): failed to open stream: No such file or directory in D:\wampp2\htdocs\cpg\include\picmgmt.inc.php on line 99
FEHLER beim erzeugen von:$thumb


I know why this message appears. The program can't find the pictures in original size because i deleted them. In my photo album it's only possible to view intermediate sized pictures. Full sizes pictures take too much webspace and therefor i delete them.

Now my question, is it possible to change the batch tool, that it takes the intermediate pictures as source for resizing the thumbnails?

Thanks in advance for your help

Greetz
Frank
Title: batch resize tool doesn't work without fullsize pictures
Post by: hyperion on February 24, 2004, 06:26:51 pm
This has not been tested, but you could try replacing

Code: [Select]

$image = $CONFIG['fullpath'] . mysql_result($result, $i, "filepath") . mysql_result($result, $i, "filename");



near line 157 of util.php with

Code: [Select]

$image = $CONFIG['fullpath'] . mysql_result($result, $i, "filepath") . $CONFIG['normal_pfx'] . mysql_result($result, $i, "filename");


As always, backup the appropriate files, etc. before testing.
Title: batch resize tool doesn't work without fullsize pictures
Post by: raetsche on February 25, 2004, 05:19:13 pm
thanks, it works fine!
In my case i could of course just test resizing thumbnails because original sized pictures aren't available.