Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix geometry.split exception on identify. #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix geometry.split exception on identify. #119

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 6, 2014

No description provided.

@cotko
Copy link

cotko commented Jun 4, 2014

Note: identifying usually fails when image includes some other meta info, like comments etc. It's easy to solve this with -strip flag (which strips image of all profiles and comments)

imagemagick.identify(['-strip', 'myimage.jpg'], function (err, features) {

});

instead of:

imagemagick.identify('myimage.jpg', function (err, features) {

});

@chaddjohnson
Copy link

@cotko THANK YOU for posting this. Had you not posted here on GitHub, I'd never have known why identify was failing. And thank you for your patch.

Greatly appreciated.

@chaddjohnson
Copy link

chaddjohnson commented Jan 20, 2018

Note that

imagemagick.identify(['-strip', 'myimage.jpg'], function (err, features) {

});

will return a string rather than an object. You can return individual attributes in a specific format like so:

imagemagick.identify(['-format', '%w %h %[colorspace] %A', 'myimage.jpg'], function (err, features) {

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants