CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Thu, 25 Aug 2016 22:05:43 GMT
access-control-allow-origin: *
etag: W/"57bf6bb7-2193"
expires: Sun, 12 Oct 2025 03:24:58 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: F893:1242B6:DC19D:112018:68EB1D30
accept-ranges: bytes
age: 0
date: Sun, 12 Oct 2025 03:14:59 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210090-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760238899.738230,VS0,VE310
vary: Accept-Encoding
x-fastly-request-id: f14a9f71cf50c0dca81198bc8fc01d94a08ddfa1
content-length: 2035
unexpected-exif
unexpected-exif
EXIF data plugin for the Unexpected assertion library (version 7+ required). Uses the exif-parser module to do most of the work.
The image can be specified either as a string (file name) or as a Buffer instance.
return expect('magic-pen-6-colours.jpg', 'to have EXIF data satisfying', {
tags: {
XResolution: 72,
Model: 'iPhone 6'
}
});
expected
to have EXIF data satisfying { tags: { XResolution: 72, Model: 'iPhone 6' } }
{
tags: {
ProcessingSoftware: 'gThumb 3.0.2',
Orientation: 1,
XResolution: 72,
YResolution: 72,
ResolutionUnit: 2,
ModifyDate: '2014:07:13 16:21:04',
YCbCrPositioning: 1,
ColorSpace: 1,
ExifImageWidth: 380,
ExifImageHeight: 248,
Model: undefined
//
should equal
'iPhone 6'
},
imageSize: { height: 248, width: 380 },
thumbnailOffset: 300,
thumbnailLength: 2152,
thumbnailType: 6,
app1Offset: 24
}
Read the documentation.
License
Unexpected-exif is licensed under a standard 3-clause BSD license -- see
the LICENSE
file for details.