PHP 5.6.0RC3 is available

Imagick::stripImage

(PECL imagick 2.0.0)

Imagick::stripImageStrips an image of all profiles and comments

说明

bool Imagick::stripImage ( void )

Strips an image of all profiles and comments.

返回值

成功时返回 TRUE

错误/异常

错误时抛出 ImagickException。

add a note add a note

User Contributed Notes 2 notes

up
1
g dot a dot karthikeyan at gmail dot com
7 months ago
Please note that striping off the exif information without handling the orientation information available in the exif will lead to wrong orientation of the image
up
0
pengc99
3 years ago
this will actually clear exif data so if you run an image uploading script with privacy concerns, this will effectively clear all GPS / metadata from the image.
To Top