png origination php (is opposite gif jpg?)


i have settlement upload form should take settlement forms (png, jpeg, gif), resize following save path.



for reason i can't png record forms work, works glorious jpeg/gif record copied looks it's something i'm formulating png.



does png origination php need opposite parameters options? illustration formula lines settlement creation:



$src = imagecreatefrompng($uploadedfile);
imagecreatetruecolor($newwidth,$newheight)
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
imagepng($tmp,$destinationpath."/".$destinationfile,100);


the same commands work jpg gif.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?