php - Will imagedestroy() delete from disc -



php - Will imagedestroy() delete from disc -

function png2jpg($originalfile, $outputfile, $quality) { $image = imagecreatefrompng($originalfile); imagejpeg($image, $outputfile.'.jpg', $quality); imagedestroy($image); }

i'm using image compression, maintain finding file save deleted. imagedestroy() cause save memory or delete output file.

no in memory.

from manual

imagedestroy() frees memory associated image image.

use unlink() delete file

php image compression gd

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -