Skip to content

Rotate the image and keep metadata but update/remove EXIF orientation data #96

Closed
@andriystabryn

Description

@andriystabryn

Hi there!
I'm trying to rotate the picture based on Orientation but save all meta attributes

loadImage.parseMetaData(
        file,
        function(data) {
            loadImage(file, img => {
              img.toBlob(blob => {
                var blobWithMeta = new Blob(
                    [
                        data.imageHead,
                        blob
                    ],
                    { type: blob.type }
                  );
                resolve(blobWithMeta);
              }, 'image/jpeg');
            }, {
              orientation: true
            });
        },
    );

But the final image still has Orientation meta attribute. How can I remove just one meta from the data.imageHead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions