(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 при ошибке.


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.
2011-05-03 01:09:20
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
2013-12-23 09:09:21
StripImage also delete ICC image profile by default.
The resulting images seem to lose a lot of color information and look "flat" compared to their non-stripped versions.

Consider keeping the ICC profile (which causes richer colors) while removing all other EXIF data:

1. Extract the ICC profile
2. Strip EXIF data and image profile
3. Add the ICC profile back

The code is:


2016-12-28 02:11:04

    Поддержать сайт на родительском проекте КГБ