Remove EXIF data from JPG using PHP

前端 未结 8 784
遥遥无期
遥遥无期 2020-11-27 18:53

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 onli

8条回答
  •  不知归路
    2020-11-27 19:33

    this is the simplest way:

    $images = glob($location.'/*.jpg');
    
    foreach($images as $image) {   
        $img = imagecreatefromjpeg($image);
        imagejpeg($img,$image,100);
    }
    

提交回复
热议问题