Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:22 pm EST

Geeklog Forums

JPEG image resize and upload.class.php


Status: offline

larry

Forum User
Newbie
Registered: 08/06/04
Posts: 2
I was having troubles getting JPEGs to resize. The fix was to change ppmtojpeg to pnmtojpeg.

At sourcefordge it says that "ppmtojpeg was replaced in Netpbm 9.19 (September 2001) by pnmtojpeg."

I replaced line 507 from gl 1.3.9 (shown commented below) with the uncommented line and now things work smoothly.


Text Formatted Code
//$cmd .= 'jpegtopnm ' . $cmd_end . 'ppmtojpeg > ' . $tmpfile;
$cmd .= 'jpegtopnm ' . $cmd_end . 'pnmtojpeg > ' . $tmpfile;

 
 Quote

Status: offline

vinny

Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
Could you submit this as a bug (see the resources block on the left hand side of the site).

Thanks,
Vinny
 Quote

All times are EST. The time is now 08:22 pm.

  • 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