batch resize tool doesn't work without fullsize pictures batch resize tool doesn't work without fullsize pictures
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

batch resize tool doesn't work without fullsize pictures

Started by raetsche, February 24, 2004, 05:45:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raetsche

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:

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

hyperion

This has not been tested, but you could try replacing


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



near line 157 of util.php with


$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.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

raetsche

thanks, it works fine!
In my case i could of course just test resizing thumbnails because original sized pictures aren't available.