Image resize increment file size
===

I have a PHP script that use [PhpThumb][1] to make a thumbnail of an uploaded picture. It's work with GD library and basically under the save function there is imagejpeg, imagegif and imagepng.

When I save a picture with quality 100 I have the file result with a size bigger than the original one!

For example, the original is an image 1024x768px with 163 Kb of size, and the resized image at 1024x682px have a size of 268 Kb!

Before use this library i was doing all by myself, using the same imagejpeg, imagegif and imagepng function and making the thumb with imagecreatefromjpeg as similar function, but the result in size was the same!

So, do you know a way to resolve this problem? I think is not possible that an image smaller than the original one is heavier than the original!

Thank in advise for the help!!


  [1]: http://phpthumb.gxdlabs.com/