%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home1/lightco1/public_html/media/sigplus/engines/boxplusx/js/
Upload File :
Create Path :
Current File : //home1/lightco1/public_html/media/sigplus/engines/boxplusx/js/exif.min.js

/*

Copyright (c) 2008 Jacob Seidelin <https://github.com/exif-js/exif-js>

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.
*/
'use strict';(function(){function u(a,c){c||a.match(/^data:([^;]+);base64,/mi);a=a.replace(/^data:([^;]+);base64,/gmi,"");a=atob(a);c=a.length;for(var d=new ArrayBuffer(c),f=new Uint8Array(d),e=0;e<c;e++)f[e]=a.charCodeAt(e);return d}function v(a,c){var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="blob";d.onload=function(a){200!=this.status&&0!==this.status||c(this.response)};d.send()}function C(a,c){function d(d){var b=w(d);a.exifdata=b||{};a:if(b=new DataView(d),255!=b.getUint8(0)||216!=
b.getUint8(1))b=!1;else{for(var e=2,g=d.byteLength;e<g;){var f=b,k=e;if(56===f.getUint8(k)&&66===f.getUint8(k+1)&&73===f.getUint8(k+2)&&77===f.getUint8(k+3)&&4===f.getUint8(k+4)&&4===f.getUint8(k+5)){f=b.getUint8(e+7);0!==f%2&&(f+=1);0===f&&(f=4);g=e+8+f;e=b.getUint16(e+6+f);b=g;g=new DataView(d);f={};for(k=b;k<b+e;){if(28===g.getUint8(k)&&2===g.getUint8(k+1)){var n=g.getUint8(k+2);if(n in x){var l=g.getInt16(k+3);n=x[n];l=q(g,k+5,l);f.hasOwnProperty(n)?f[n]instanceof Array?f[n].push(l):f[n]=[f[n],
l]:f[n]=l}}k++}b=f;break a}e++}b=void 0}a.iptcdata=b||{};if(h.isXmpEnabled){a:if("DOMParser"in self)if(b=new DataView(d),255!=b.getUint8(0)||216!=b.getUint8(1))var r=!1;else{e=2;g=d.byteLength;for(d=new DOMParser;e<g-4;)if("http"==q(b,e,4)){g=e-1;e=b.getUint16(e-2)-1;b=q(b,g,e);e=b.indexOf("xmpmeta>")+8;b=b.substring(b.indexOf("<x:xmpmeta"),e);e=b.indexOf("x:xmpmeta")+10;b=b.slice(0,e)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+
b.slice(e);b:{d=d.parseFromString(b,"text/xml");try{b={};if(0<d.children.length)for(e=0;e<d.children.length;e++){var m=d.children.item(e),y=m.attributes,z;for(z in y){var A=y[z],B=A.nodeName,u=A.nodeValue;void 0!==B&&(b[B]=u)}var p=m.nodeName;if("undefined"==typeof b[p])b[p]=t(m);else{if("undefined"==typeof b[p].push){var v=b[p];b[p]=[];b[p].push(v)}b[p].push(t(m))}}else b=d.textContent;r=b;break b}catch(D){console.log(D.message)}r=void 0}break a}else e++;r=void 0}else r=void 0;a.xmpdata=r||{}}c&&
c.call(a)}if(a.src)if(/^data:/i.test(a.src)){var f=u(a.src);d(f)}else if(/^blob:/i.test(a.src)){var e=new FileReader;e.onload=function(a){d(a.target.result)};v(a.src,function(a){e.readAsArrayBuffer(a)})}else{var b=new XMLHttpRequest;b.onload=function(){if(200==this.status||0===this.status)d(b.response);else throw"Could not load image";b=null};b.open("GET",a.src,!0);b.responseType="arraybuffer";b.send(null)}else self.FileReader&&(a instanceof self.Blob||a instanceof self.File)&&(e=new FileReader,e.onload=
function(a){d(a.target.result)},e.readAsArrayBuffer(a))}function w(a){var c=new DataView(a);if(255!=c.getUint8(0)||216!=c.getUint8(1))return!1;var d=2;a=a.byteLength;for(var f;d<a;){if(255!=c.getUint8(d))return!1;f=c.getUint8(d+1);if(225==f)return E(c,d+4,c.getUint16(d+2)-2);d+=2+c.getUint16(d+2)}}function m(a,c,d,f,e){var b=a.getUint16(d,!e),g={},h;for(h=0;h<b;h++){var l=d+12*h+2;var m=f[a.getUint16(l,!e)];g[m]=F(a,l,c,d,e)}return g}function F(a,c,d,f,e){var b=a.getUint16(c+2,!e);f=a.getUint32(c+
4,!e);d=a.getUint32(c+8,!e)+d;switch(b){case 1:case 7:if(1==f)return a.getUint8(c+8,!e);d=4<f?d:c+8;c=[];for(b=0;b<f;b++)c[b]=a.getUint8(d+b);return c;case 2:return q(a,4<f?d:c+8,f-1);case 3:if(1==f)return a.getUint16(c+8,!e);d=2<f?d:c+8;c=[];for(b=0;b<f;b++)c[b]=a.getUint16(d+2*b,!e);return c;case 4:if(1==f)return a.getUint32(c+8,!e);c=[];for(b=0;b<f;b++)c[b]=a.getUint32(d+4*b,!e);return c;case 5:if(1==f){var g=a.getUint32(d,!e);var h=a.getUint32(d+4,!e);a=new Number(g/h);a.numerator=g;a.denominator=
h;return a}c=[];for(b=0;b<f;b++)g=a.getUint32(d+8*b,!e),h=a.getUint32(d+4+8*b,!e),c[b]=new Number(g/h),c[b].numerator=g,c[b].denominator=h;return c;case 9:if(1==f)return a.getInt32(c+8,!e);c=[];for(b=0;b<f;b++)c[b]=a.getInt32(d+4*b,!e);return c;case 10:if(1==f)return a.getInt32(d,!e)/a.getInt32(d+4,!e);c=[];for(b=0;b<f;b++)c[b]=a.getInt32(d+8*b,!e)/a.getInt32(d+4+8*b,!e);return c}}function q(a,c,d){for(var f="",e=c;e<c+d;e++)f+=String.fromCharCode(a.getUint8(e));return f}function E(a,c){if("Exif"!=
q(a,c,4))return!1;var d=c+6;if(18761==a.getUint16(d))var f=!1;else if(19789==a.getUint16(d))f=!0;else return!1;if(42!=a.getUint16(d+2,!f))return!1;var e=a.getUint32(d+4,!f);if(8>e)return!1;c=m(a,d,d+e,G,f);if(c.ExifIFDPointer){var b=m(a,d,d+c.ExifIFDPointer,H,f);for(g in b){switch(g){case "LightSource":case "Flash":case "MeteringMode":case "ExposureProgram":case "SensingMethod":case "SceneCaptureType":case "SceneType":case "CustomRendered":case "WhiteBalance":case "GainControl":case "Contrast":case "Saturation":case "Sharpness":case "SubjectDistanceRange":case "FileSource":b[g]=
l[g][b[g]];break;case "ExifVersion":case "FlashpixVersion":b[g]=String.fromCharCode(b[g][0],b[g][1],b[g][2],b[g][3]);break;case "ComponentsConfiguration":b[g]=l.Components[b[g][0]]+l.Components[b[g][1]]+l.Components[b[g][2]]+l.Components[b[g][3]]}c[g]=b[g]}}if(c.GPSInfoIFDPointer)for(g in b=m(a,d,d+c.GPSInfoIFDPointer,I,f),b){switch(g){case "GPSVersionID":b[g]=b[g][0]+"."+b[g][1]+"."+b[g][2]+"."+b[g][3]}c[g]=b[g]}var g=f;e=d+e;f=a.getUint16(e,!g);if(e=a.getUint32(e+2+12*f,!g))if(e>a.byteLength)a=
{};else{g=m(a,d,d+e,J,g);if(g.Compression)switch(g.Compression){case 6:g.JpegIFOffset&&g.JpegIFByteCount&&(g.blob=new Blob([new Uint8Array(a.buffer,d+g.JpegIFOffset,g.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",g.Compression)}else 2==g.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");a=g}else a={};c.thumbnail=
a;return c}function t(a){var c={};if(1==a.nodeType){if(0<a.attributes.length){c["@attributes"]={};for(var d=0;d<a.attributes.length;d++){var f=a.attributes.item(d);c["@attributes"][f.nodeName]=f.nodeValue}}}else if(3==a.nodeType)return a.nodeValue;if(a.hasChildNodes())for(d=0;d<a.childNodes.length;d++){f=a.childNodes.item(d);var e=f.nodeName;if(null==c[e])c[e]=t(f);else{if(null==c[e].push){var b=c[e];c[e]=[];c[e].push(b)}c[e].push(t(f))}}return c}var h=function(a){if(a instanceof h)return a;if(!(this instanceof
h))return new h(a);this.EXIFwrapped=a};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=h),exports.EXIF=h):this.EXIF=h;var H=h.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",
37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",
41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},G=h.TiffTags=
{256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",
318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},I=h.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",
17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},J=h.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",
279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},l=h.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",
3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",
255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",
32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",
95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},
GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}},x={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",
105:"headline",116:"copyright",15:"category"};h.enableXmp=function(){h.isXmpEnabled=!0};h.disableXmp=function(){h.isXmpEnabled=!1};h.getData=function(a,c){if((self.Image&&a instanceof self.Image||self.HTMLImageElement&&a instanceof self.HTMLImageElement)&&!a.complete)return!1;a.exifdata?c&&c.call(a):C(a,c);return!0};h.getTag=function(a,c){if(a.exifdata)return a.exifdata[c]};h.getIptcTag=function(a,c){if(a.exifdata)return a.iptcdata[c]};h.getAllTags=function(a){if(!a.exifdata)return{};var c;a=a.exifdata;
var d={};for(c in a)a.hasOwnProperty(c)&&(d[c]=a[c]);return d};h.getAllIptcTags=function(a){if(!a.exifdata)return{};var c;a=a.iptcdata;var d={};for(c in a)a.hasOwnProperty(c)&&(d[c]=a[c]);return d};h.pretty=function(a){if(!a.exifdata)return"";var c;a=a.exifdata;var d="";for(c in a)a.hasOwnProperty(c)&&(d="object"==typeof a[c]?a[c]instanceof Number?d+(c+" : "+a[c]+" ["+a[c].numerator+"/"+a[c].denominator+"]\r\n"):d+(c+" : ["+a[c].length+" values]\r\n"):d+(c+" : "+a[c]+"\r\n"));return d};h.readFromBinaryFile=
function(a){return w(a)};"function"===typeof define&&define.amd&&define("exif-js",[],function(){return h})}).call(this);

Zerion Mini Shell 1.0