public static function clear_exif($path, $driver = null) { if (!$driver) { $driver = Config::get('image.driver'); } if (FBD_IMAGE_DRIVER == 'imagemagick') { $command = FBD_IMAGE_IMGMAGICK_PATH . 'convert'; $params = sprintf('"%s" -strip "%s"', $path, $path); Util_Toolkit::exec_command($command, $params, false, true); } elseif (FBD_IMAGE_DRIVER == 'imagick') { $im = new \Imagick($path); $im->stripImage(); $im->writeImage($path); $im->destroy(); } else { Util_file::resave($path); } return File::get_size($path); }