Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:27 am EST

Geeklog Forums

problem uploading story images that need resizing


Status: offline

thechad

Forum User
Newbie
Registered: 08/05/04
Posts: 5
I keep getting an error when doing this, if I resize the images to 800x600 it works fine. Seems to not matter if I'm on localhost or remote.

Example:

Photo:
R:specialBike Related
size = 180 KB (184,975 bytes)
resolution = 944x706

Geeklog settings:
// Story image settings
$_CONF['max_image_width'] = 800; // In pixels
$_CONF['max_image_height'] = 600; // In pixels
$_CONF['max_image_size'] = 20000000;

Error:
Text Formatted Code

Warning: copy(d:/data/web/geeklog/public_html/images/articles/tmp.jpg) [function.copy]: failed to open stream: No such file or directory in d:\Data\Web\geeklog\system\classes\upload.class.php on line 532
Couldn't copy d:/data/web/geeklog/public_html/images/articles/tmp.jpg to d:/data/web/geeklog/public_html/images/articles/20040820113116216_1.jpg. You'll need remove both files


 

Aftermath:
no file named tmp.jpg exists, but
20040820113116216_1.jpg and 20040820113116216_1_original exist and are both full size.


Code:

Text Formatted Code
                // Move tmp file to actual file
                if (!copy($tmpfile,$filename)) {
                    $this->_addError("Couldn't copy $tmpfile to $filename.  You'll need remove both files");
                    $this->printErrors();
                    exit;

 

 Quote

Status: offline

thechad

Forum User
Newbie
Registered: 08/05/04
Posts: 5
May have found the answer here

Checking netpbm paths
 Quote

Status: offline

thechad

Forum User
Newbie
Registered: 08/05/04
Posts: 5
Hmm paths SEEM ok?

Original config.php file:
Text Formatted Code

//$_CONF['path_to_netpbm']        = '/path/to/netpbm/';

 


Mine:
Text Formatted Code

$_CONF['path_to_netpbm']        = 'd:/data/web/gallery/netpbm/';


 


Contents of directory:
Text Formatted Code

D:\Data\Web\gallery\netpbm>dir
 Volume in drive D is MURPHY_2
 Volume Serial Number is 3E2E-E48F

 Directory of D:\Data\Web\gallery\netpbm

06/07/2003  01:38a      <DIR>          .
06/07/2003  01:38a      <DIR>          ..
06/07/2003  02:03a      <DIR>          doc
03/08/2002  10:33p              17,920 giftopnm.exe
15/09/2002  05:55p              90,112 jhead.exe
03/08/2002  10:33p              24,576 jpegtopnm.exe
07/03/2001  10:55a             135,971 libjpeg.dll
08/07/2002  07:11p             229,282 libpng.dll
03/08/2002  09:53p             140,243 netpbm.dll
03/08/2002  10:33p              21,504 pngtopnm.exe
03/08/2002  10:34p              11,776 pnmcut.exe
03/08/2002  10:34p               8,192 pnmfile.exe
03/08/2002  10:34p              10,752 pnmflip.exe
03/08/2002  10:34p              12,288 pnmrotate.exe
03/08/2002  10:34p              15,360 pnmscale.exe
03/08/2002  10:33p              30,208 pnmtopng.exe
03/08/2002  10:34p              14,336 ppmquant.exe
03/08/2002  10:33p              17,408 ppmtogif.exe
03/08/2002  07:49p              17,408 ppmtojpeg.exe
11/03/2002  10:19p              63,827 zlib.dll
              17 File(s)        861,163 bytes
               3 Dir(s)     850,558,976 bytes free

D:\Data\Web\gallery\netpbm>


 
 Quote

All times are EST. The time is now 04:27 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content