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.
$cmd .= 'jpegtopnm ' . $cmd_end . 'pnmtojpeg > ' . $tmpfile;
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;
13
10
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