I made a function to handle jpg and png files, but i get error when trying to upload a png file.
this is the function:
function createImg ($type, $src, $
What value are you using for the quality setting? imagepng() uses values 0-9, whereas imagejpeg() uses 0-100.