🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
通过使用 exif 扩展,你可以操作图像元数据。 例如:你可以使用 exif 相关的函数从数码相机拍摄的图片文件中读取元数据。 通常JPEG和TIFF格式的图像文件都包含元数据。 使用**\--enable-exif**选项 配置 PHP 来启用 exif 支持。 Windows 用户必须在php.ini中启用php\_mbstring.dll和php\_exif.dll扩展。 请确保在php.ini中保持正确的顺序:php\_mbstring.dll必须在php\_exif.dll*之前*加载。 * [exif\_imagetype](https://www.php.net/manual/zh/function.exif-imagetype.php)— 判断一个图像的类型 * [exif\_read\_data](https://www.php.net/manual/zh/function.exif-read-data.php)— 从 JPEG 或 TIFF 文件中读取 EXIF 头信息 * [exif\_tagname](https://www.php.net/manual/zh/function.exif-tagname.php)— 获取指定索引的头名称 * [exif\_thumbnail](https://www.php.net/manual/zh/function.exif-thumbnail.php)— 取得嵌入在 TIFF 或 JPEG 图像中的缩略图 * [read\_exif\_data](https://www.php.net/manual/zh/function.read-exif-data.php)— 别名 exif\_read\_data