Repository: bwindels/exif-parser Branch: master Commit: 072126586f21 Files: 24 Total size: 54.1 KB Directory structure: gitextract_os_ap8wa/ ├── .gitignore ├── .npmignore ├── CHANGELOG.md ├── LICENSE.md ├── Makefile ├── README.md ├── browser-global.js ├── cmd/ │ ├── extract-thumbnail.js │ └── list.js ├── index.js ├── lib/ │ ├── bufferstream.js │ ├── date.js │ ├── dom-bufferstream.js │ ├── exif-tags.js │ ├── exif.js │ ├── jpeg.js │ ├── parser.js │ └── simplify.js ├── package.json └── test/ ├── expected-exif-tags.json ├── test-date.js ├── test-exif.js ├── test-jpeg.js └── test-simplify.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ node_modules dist ================================================ FILE: .npmignore ================================================ test Makefile ================================================ FILE: CHANGELOG.md ================================================ # Changelog ## 0.1.11 - July 9th 2017 - On nodejs, decode strings using UTF-8 instead of ASCII. Ideally we'd do this in the browser (UTF-16 currently) as well but that is a bit more work. ## 0.1.10 - July 9th 2017 - Ignore unknown tag formats instead of failing. There seem to be images with format 0 that otherwise contain valid data. - Fix bug in date parsing to not rely on the current date. This broke when the current date was the 31st of the month. - In case a tag appears more than once, take the first, not the last. For example some pictures taken on an iPhone suffer from duplicate Orientation tags, where the first one is the wrong one. - treat ModifyDate tag as a date value ## 0.1.9 - April 9th 2015 - parse ISO 8601 dates with timezone offset ================================================ FILE: LICENSE.md ================================================ The MIT License =============== Copyright (c) 2010 Bruno Windels , Daniel Leinich . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: Makefile ================================================ VERSION=$(shell node --eval "console.log(require('./package.json').version)") BUNDLE=dist/exif-parser-$(VERSION).js MIN_BUNDLE=dist/exif-parser-$(VERSION)-min.js BROWSERIFY=node_modules/.bin/browserify UGLIFY=node_modules/.bin/uglifyjs build-browser-bundle: setup @echo "building $(BUNDLE) ..." @mkdir -p dist/ @$(BROWSERIFY) --bare browser-global.js -o $(BUNDLE) @echo "building $(MIN_BUNDLE) ..." @$(UGLIFY) $(BUNDLE) -o $(MIN_BUNDLE) --compress setup: @npm install --no-optional --loglevel error --development clean: @rm -rf dist/ ================================================ FILE: README.md ================================================ exif-parser ======== exif-parser is a parser for image metadata in the exif format, the most popular metadata format for jpeg and tiff images. It is written in pure javascript and has no external dependencies. It can also get the size of jpeg images and the size of the jpeg thumbnail embedded in the exif data. It can also extract the embedded thumbnail image. ### Installing npm install exif-parser You can also build a browser bundle to include it with a `