Skip to content

Resize destroys photo orientation #4

Closed
@rix0rrr

Description

@rix0rrr

-strip is used to remove all EXIF information, and no rotation is applied. Hence, pictures taken on a smartphone (at least an iPad or iPhone) will be rotated incorrectly.

An easy fix is to include '-auto-orient' in the imageMagick.resize() call:

                            imageMagick.resize({
                                width: opts.width,
                                height: opts.height,
                                srcPath: options.uploadDir() + '/' + fileInfo.name,
                                dstPath: options.uploadDir() + '/' + version + '/' + fileInfo.name,
                                customArgs: ['-auto-orient']
                            }, finish);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions