tau tau - 3 months ago 87
PHP Question

Remove EXIF data from JPG using PHP

Is there any way to remove the EXIF data from a JPG using PHP? I have heard of PEL, but I'm hoping there's a simpler way. I am uploading images that will be displayed online and would like the EXIF data removed.

Thanks!

EDIT: I don't/can't install ImageMagick.

Answer

Use gd to recreate the graphical part of the image in a new one, that you save with another name.

See PHP gd