I need some help, other than mentally. 😉 I am trying to redo the way I view my pictures. Currently I have php extract links from mySQL and then in a (while) thinger it exports the images. As we know, each image is still loaded with however big it is in size. This method takes forever and is slow. Well it worked at the time. Now I am trying to redo it with the GD stuff in the new PHP version. I've come up with this:
<?php
$photo= "./pictures/graal/graal-2.JPG";
//print "$photo";
$im_location = "$photo";
$im_size = GetImageSize($im_location);
$im_width = $im_size[0];
$im_height = $im_size[1];
$im2 = ImageCreateFromJPEG($im_location);
$im = imageCreateTrueColor("85", "64");
ImageCopyResized ($im,$im2, 0, 0, 0, 0, 85, 64, $im_width, $im_height);
Header("Content-type: image/jpeg");
//Imagejpeg($im,'',"80");
ImageDestroy($im);
ImageDestroy($im2);
Imagejpeg($im,'',"80");
?>
Well it doesn't work. Care to help? (The first vars im_locatation and photo are doubles. Extra code not needed. I only used that because I replaced the mySQL with the acatual path to the photo and didnt care to shorten it up)