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

Dfries gh pages fixes #17

Merged
merged 5 commits into from Apr 1, 2015
Merged

Dfries gh pages fixes #17

merged 5 commits into from Apr 1, 2015

Conversation

mattburns
Copy link
Owner

Bringing in the great contributions from dfries (thanks!).

Updated all the json files with the current outputs for test purposes. Trying to move away from that mess though and so added some tests (see the unit tests at the bottom of test/test.js).

dfries and others added 5 commits March 28, 2015 16:13
This allows processing images in a Node.js Buffer that aren't in a
local file (such as streamed images).
Buffer was read with 100000, no need to expand to 1000000,
and if 100000 is enough for reading a file it should be enough
for any image passed in through a buffer, otherwise it needs to
be increased in both places.  Adding a variable to use the same size
in all three locations.

Allocate a buffer no bigger than the current buffer, rather than
always the full size.
I'm finding that some exif strings are NULL terminated and some
aren't.  Avoid the "TODO: but I'm not sure why", by always reading the
value length characters and then removing from the first NULL or any
terminating spaces.  I see the "motion" webcam motion detection
program will NULL terminate dates, but not Image Description, and
previously "iNumValues - 1" would truncate the last character.
This way just the non-printable ones are discarded.
mattburns added a commit that referenced this pull request Apr 1, 2015
@mattburns mattburns merged commit 2e0bd8a into gh-pages Apr 1, 2015
@mattburns mattburns deleted the dfries-gh-pages_fixes branch April 1, 2015 18:09
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.

None yet

2 participants