|
1031 | 1031 | }) |
1032 | 1032 |
|
1033 | 1033 | describe('Metadata', function () { |
1034 | | - it('Parse Exif tags', function (done) { |
| 1034 | + it('Parse EXIF tags', function (done) { |
1035 | 1035 | loadImage.parseMetaData(blobJPEG, function (data) { |
1036 | 1036 | expect(data.exif).to.be.ok |
1037 | 1037 | expect(data.exif.get('Orientation')).to.equal(6) |
1038 | 1038 | done() |
1039 | 1039 | }) |
1040 | 1040 | }) |
1041 | 1041 |
|
1042 | | - it('Do not parse Exif tags if disabled', function (done) { |
| 1042 | + it('Do not parse EXIF tags if disabled', function (done) { |
1043 | 1043 | loadImage.parseMetaData( |
1044 | 1044 | blobJPEG, |
1045 | 1045 | function (data) { |
|
1050 | 1050 | ) |
1051 | 1051 | }) |
1052 | 1052 |
|
1053 | | - it('Parse Exif tag offsets', function (done) { |
| 1053 | + it('Parse EXIF tag offsets', function (done) { |
1054 | 1054 | loadImage.parseMetaData(blobJPEG, function (data) { |
1055 | 1055 | expect(data.exifOffsets).to.be.ok |
1056 | 1056 | expect(data.exifOffsets.get('Orientation')).to.equal(0x16) |
|
1060 | 1060 | }) |
1061 | 1061 | }) |
1062 | 1062 |
|
1063 | | - it('Do not parse Exif tag offsets if disabled', function (done) { |
| 1063 | + it('Do not parse EXIF tag offsets if disabled', function (done) { |
1064 | 1064 | loadImage.parseMetaData( |
1065 | 1065 | blobJPEG, |
1066 | 1066 | function (data) { |
|
1071 | 1071 | ) |
1072 | 1072 | }) |
1073 | 1073 |
|
1074 | | - it('Only parse included Exif tags', function (done) { |
| 1074 | + it('Only parse included EXIF tags', function (done) { |
1075 | 1075 | loadImage.parseMetaData( |
1076 | 1076 | blobJPEG, |
1077 | 1077 | function (data) { |
|
1091 | 1091 | ) |
1092 | 1092 | }) |
1093 | 1093 |
|
1094 | | - it('Do not parse excluded Exif tags', function (done) { |
| 1094 | + it('Do not parse excluded EXIF tags', function (done) { |
1095 | 1095 | loadImage.parseMetaData( |
1096 | 1096 | blobJPEG, |
1097 | 1097 | function (data) { |
|
1236 | 1236 | ).to.be.ok |
1237 | 1237 | }) |
1238 | 1238 |
|
1239 | | - it('Write Exif Orientation tag and replace image head', function (done) { |
| 1239 | + it('Write EXIF Orientation tag and replace image head', function (done) { |
1240 | 1240 | loadImage( |
1241 | 1241 | blobJPEG, |
1242 | 1242 | function (img, data) { |
|
1245 | 1245 | expect(data.exif.get('Orientation')).to.equal(6) |
1246 | 1246 | expect(data.iptc).to.be.ok |
1247 | 1247 | expect(data.iptc.get('ObjectName')).to.equal('blueimp.net') |
1248 | | - // Reset Exif Orientation data: |
| 1248 | + // Reset EXIF Orientation data: |
1249 | 1249 | loadImage.writeExifData(data.imageHead, data, 'Orientation', 1) |
1250 | 1250 | img.toBlob(function (blob) { |
1251 | 1251 | loadImage.replaceHead(blob, data.imageHead, function (newBlob) { |
|
0 commit comments