Skip to content

Promise support #80

@Darker

Description

@Darker

It would be nice to have a promisified version of the function. For now, I use this:

function ExifPromise(path) {
    return new Promise(function (resolve, reject) {
        try {
            new ExifImage({ image: path }, function (error, exifData) {
                if (error)
                    reject(error);
                else
                    resolve(exifData);
            });
        } catch (error) {
            reject(error);
        }
    });
}

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