I have a weird bug.
When I create a thumb from a png image with transparent background, the thumb filesize is larger (173,56 KB 500×339 px) than original (64,98 KB 600x407 px). I think you should see this code to understand.
Is php-gd library bugged?