Ok, I seem to be having an underlying issue. It keeps creating a large size png file, instead of using the jpg file.
These are what I have on the server:
http://i158.photobucket.com/albums/t89/Fire_Marshal/sigissue.jpg
28kb file size
jpg:
Codehttp://stiffler.hostei.com/sig/as.jpg
http://stiffler.hostei.com/sig/as.jpg
I link to the php5 sig file and here is what it turns out as:
98kb file size
png:
Codehttp://stiffler.hostei.com/sig/stiffler.png
http://stiffler.hostei.com/sig/stiffler.png
what am I doing wrong?
Code<?php
Header ('Content-type: image/jpeg');
Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
Header('Pragma: no-cache');
/******************************************************
* BASICS *
******************************************************/
// set some dimensions for future use
$expbar_width = 100;
$expbar_height = 25;
// create the image from a background jpg
$image = imagecreatefromjpeg('as.jpg');
// set some colours for future use
$cool = imagecolorallocate($image, 81, 86, 96);
$red = imagecolorallocate($image, 255, 0, 0);
$yellow = imagecolorallocate($image, 255, 181, 53);
$color1 = imagecolorallocate($image, 172, 117, 146);
// set the background colour
// number or is top left pixel x, top left pixel y, bottom right pixel x, bottom right pixel y
// set the font and print text
$font = '/NEUROPOL.TTF';