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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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