I am using Imagick with WP 5.0.3. Since version 4.5 WordPress use Imagick to create/resize thumbnails and it keeps EXIF/IPTC metadata (using GD, metadata are removed).
WordPress keep EXIF/IPTC metadata in thumbnails, but I would like to create new thumbnails without them, to remove metadata. There is image_strip_meta filter, but I can not make it work how I would like, to remove metadata. I put this inside my functions.php (inside my theme), but nothing, new thumbnails still have metadata:
add_filter ('image_strip_meta', false); // Aslo tried with "true"
I read that there were bug in WP about this (I don't know if it is fixed).
Could you please tell me what would be right way to remove metadata from thumbnails?