Results 11 to 12 of 12
-
13th Jul 2011, 09:44 PM #11OPBannedWebsite's:
WarezRelease.org ThatHosting.cook this works:
PHP Code:$fulluploadlPath = ($uploadDir . '/' . $name);
echo $fulluploadlPath;
exit();
notice $fulluploadlPath = ($uploadDir . '/' . $name); i added (), when i remove the echo i get;
The connection to the server was reset while the page was loading.
-
14th Jul 2011, 02:37 PM #12OPBannedWebsite's:
WarezRelease.org ThatHosting.cook the above code is use less and dont work, 4 me anyway...
ive re written it, here we go:
PHP Code:include"imagecfg.php";
//Make a 90x90px thumbnail......
$fileURL = ($uploadDir . '/' . $name);
// echo $fileURL;
if ($type == "image/pjpeg" || $type == "image/jpeg") { $newThumbImg = imagecreatefromjpeg($fileURL); }
if ($type == "image/x-png" || $type == "image/png") { $newThumbImg = imagecreatefrompng($fileURL); }
if ($type == "image/gif") { $newThumbImg = imagecreatefromgif($fileURL); }
$ratio = $width / $height; // calculate the ratio
if ($ratio > 1 ) {
$newW = $thumbPixels;
$newH = $thumbPixels / $ratio;
} else {
$newH = $thumbPixels;
$newW = $thumbPixels * $ratio;
}
//function for resize image.
if (function_exists(imagecreatetruecolor)){
$newImg = imagecreatetruecolor($newW, $newH);
} else {
die("Error: Please make sure you have GD library ver 2+");
}
//the resizing is going on here!
imagecopyresized($newImg, $newThumbImg, 0, 0, 0, 0, $newW, $newH, $width, $height);
//finally, save the image
[B] ImageJpeg ($newImg $thumbDir "$newThumbImg");[/B]
ImageDestroy ($newImg);
ImageDestroy ($newThumbImg);
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Resize Image
By cyb3r in forum Graphics AreaReplies: 1Last Post: 15th Sep 2011, 02:50 PM -
Looking for some new Image resize mod
By Spartan in forum phpBBReplies: 1Last Post: 27th May 2011, 08:58 AM -
Image resize in DLE
By John in forum Webmaster DiscussionReplies: 1Last Post: 30th Dec 2010, 01:31 AM -
PHP Resize?
By bxflow in forum Web Application/Script SupportReplies: 5Last Post: 7th Sep 2010, 03:36 PM -
how to resize image in DL
By loverhaker in forum Forum and DDL DiscussionReplies: 0Last Post: 28th Aug 2010, 01:48 AM
themaCreator - create posts from...
Version 3.55 released. Open older version (or...