Hello,
I’m now using imagejpeg to output images at 100% quality level. However, this increases the filesize beyond the original filesize of the original image by a lot.
For example, I have image.jpg:
1. image.jpg optimized for web in Photoshop at JPEG High 70% -> creates a file at around 125kb
2. Runs through the following script:
[code=php]
$imagepath = http://site.com/path/to/image.jpg;
$image = imagecreatefromjpeg($imagepath);
header(‘Content-Type: image/jpeg’);
imagejpeg($image, NULL, 100);
3. Outputs image.jpg at a filesize of 600kb
After reading through some tutorials online, I understand that it’s not supposed to be possible to increase quality beyond its original source…so how is this possible?
Any help would be greatly appreciated. Thanks!!