Skip to content

StripExif doesn't work #636

@christiandavilakoobin

Description

@christiandavilakoobin

Describe the bug
Until 8.0.2, we can remove exif info using setting the edit rotate value to "null". Now, this no longer works, and we there is the option stripExif. This was added on the PR #635 but it does not seems to work. It tries to overwrite all the exif adding a "Software" key, but it does not remove all the other ones as intended:

if (edits?.stripExif === true) {
        // Removes all EXIF by inserting minimal EXIF tag. Leaves ICC untouched.
        image.keepIccProfile().withExif({
          IFD0: {
            Software: 'Dynamic Image Transformation for Amazon CloudFront'
          }
        });
        delete edits.stripExif;
      }

It just ADDS the Software key but keeping the old ones.

To Reproduce
'edits' => [
'stripExif' => true,
'stripIcc' => true,
'resize' => [
'width' => 285,
'height' => 285,
'fit' => 'cover',
'position' => 'entropy',
'serial' => 81
],
]

Expected behavior

Image

Please complete the following information about the solution:

  • Version: 8.0.3
  • Region: eu-west-1
  • Was the solution modified from the version published on this repository? No

Screenshots

Image

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions