Skip to content

Deal with asynchrony when loading images in CLI #31

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

Merged
merged 1 commit into from
Jul 31, 2014

Conversation

cburgmer
Copy link
Contributor

This change hopefully fixes #17 by waiting for the images to be loaded before doing the diff.

There's some error cases the script doesn't catch, and a rather awkward CLI syntax (diff not --diff), but that's for another change to deal with.

@cesutherland
Copy link
Member

I'll want to dig into this one a bit yet. It's also giving me trouble.

@cesutherland
Copy link
Member

This fails silently for me. I'm on OS X 10.9.3 with jpeg-8d and cairo-1.12.16.

Attaching the onerror handler reports: Error: error while reading from input stream

@cesutherland
Copy link
Member

I derped on this. I was looking at #17 which used --diff which was not supported... I'll check again.

@cesutherland cesutherland merged commit 3ae3f26 into HumbleSoftware:master Jul 31, 2014
@cesutherland
Copy link
Member

Alright I've merged this!

I added b4bddd7 for a little extra error handling.

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.

Error: Image given has not completed loading
2 participants