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

Images aren't processing well #9

Closed
asiniy opened this issue Mar 9, 2017 · 3 comments
Closed

Images aren't processing well #9

asiniy opened this issue Mar 9, 2017 · 3 comments
Assignees
Labels

Comments

@asiniy
Copy link

asiniy commented Mar 9, 2017

I'm trying to process this image via Fastimage.size(image_path): 20151004001184375674-original

But it returns me exception

iex(3)> Fastimage.size(path)
** (MatchError) no match of right hand side value: ""
    (fastimage) lib/fastimage.ex:257: Fastimage.matching_byte/2
    (fastimage) lib/fastimage.ex:247: Fastimage.next_bytes_until_match/2
    (fastimage) lib/fastimage.ex:159: Fastimage.parse_jpeg/6
    (fastimage) lib/fastimage.ex:190: Fastimage.parse_jpeg/6
    (fastimage) lib/fastimage.ex:187: Fastimage.parse_jpeg/6
    (fastimage) lib/fastimage.ex:190: Fastimage.parse_jpeg/6
    (fastimage) lib/fastimage.ex:187: Fastimage.parse_jpeg/6
    (fastimage) lib/fastimage.ex:190: Fastimage.parse_jpeg/6
    (fastimage) lib/fastimage.ex:43: Fastimage.size/1

What should I do here?

@stephenmoloney
Copy link
Owner

This is a bug. I'll see if I can find the issue.

stephenmoloney added a commit that referenced this issue Mar 10, 2017
@stephenmoloney stephenmoloney self-assigned this Mar 10, 2017
@stephenmoloney
Copy link
Owner

@asiniy
This is fixed by the latest commit.

I also made a new release for this change.
version 0.0.7

@asiniy
Copy link
Author

asiniy commented Mar 11, 2017

@stephenmoloney thanks!

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

No branches or pull requests

2 participants