Associate
- Joined
- 31 Oct 2005
- Posts
- 746
- Location
- South-West
Can I have that as a sig?
I had one verry similar before but it got taken away?
too big
just crop it, mspaint 4tw.
<?php
$image = './image.jpg';
if((!file_exists($image)) || (time() - filemtime($image) > 21600)) {
$old_image = imagecreatefrompng('http://tickers.baby-gaga.com/p/dev196pb___.png');
$old_width = imagesx($old_image);
$old_height = imagesy($old_image);
$new_width = 400;
$new_height = 75;
$new_image = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($new_image, $old_image, 0, 0, 0, 0, $new_width, $new_height, $old_width, $old_height);
imagejpeg($new_image, $image);
imagedestroy($old_image);
imagedestroy($new_image);
}
header("Content-Type: image/jpg");
readfile($image);
?>