Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bashi/exif-as3
Exif reading library for AS3
https://github.com/bashi/exif-as3
Last synced: about 2 months ago
JSON representation
Exif reading library for AS3
- Host: GitHub
- URL: https://github.com/bashi/exif-as3
- Owner: bashi
- License: mit
- Created: 2013-05-30T14:26:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T11:15:14.000Z (over 7 years ago)
- Last Synced: 2024-10-15T14:09:50.427Z (3 months ago)
- Language: ActionScript
- Size: 13.7 KB
- Stars: 19
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actionscript-sorted - exif-as3 - AS3 library to read JPEG EXIF data (File Formats / Misc Formats)
README
exif-as3
========Exif reading library for AS3. You can find the specification at http://www.exif.org/Exif2-2.PDF.
Examples
========Display thumbnail image
-----------------------The following code displays original JPEG image and thumbnail image.
import jp.shichiseki.exif.*;
var loader:ExifLoader = new ExifLoader();
private function loadImage():void {
loader.addEventListener(Event.COMPLETE, onComplete);
loader.load(new URLRequest("http://www.example.com/sample.jpg"));
}
private function onComplete(e:Event):void {
// display image
addChild(loader);
// display thumbnail image
var thumbLoader:Loader = new Loader();
thumbLoader.loadBytes(loader.exif.thumbnailData);
addChild(thumbLoader);
}Show Exif IFD informations
--------------------------The following code shows Exif IFD information.
import jp.shichiseki.exif.*;
var loader:ExifLoader = new ExifLoader();
private function loadImage():void {
loader.addEventListener(Event.COMPLETE, onComplete);
loader.load(new URLRequest("http://www.example.com/sample.jpg"));
}
private function onComplete(e:Event):void {
if (loader.exif.ifds.primary)
displayIFD(loader.exif.ifds.primary);
if (loader.exif.ifds.exif)
displayIFD(loader.exif.ifds.exif);
if (loader.exif.ifds.gps)
displayIFD(loader.exif.ifds.gps);
if (loader.exif.ifds.interoperability)
displayIFD(loader.exif.ifds.interoperability);
if (loader.exif.ifds.thumbnail)
displayIFD(loader.exif.ifds.thumbnail);
}
private function displayIFD(ifd:IFD):void {
trace(" --- " + ifd.level + " --- ");
for (var entry:String in ifd) {
trace(entry + ": " + ifd[entry]);
}
}Lisence
=======MIT-license.