Skip to content

Commit

Permalink
Update GH pages using commit f97f8f1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 8, 2024
1 parent 3974d01 commit b0dc7f8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion exif-reader.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion exif-reader.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/image-header-iso-bmff-iloc.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ function getVariableSizedValue(dataView, offset, size) {
return dataView.getUint32(offset);
}
if (size === 8) {
// eslint-disable-next-line no-console
console.warn('This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed.');
return get64BitValue(dataView, offset);
}
return 0;
Expand Down
10 changes: 6 additions & 4 deletions src/image-header-iso-bmff.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ function findMetaBox(dataView) {
function findExifOffset(dataView, metaBox) {
try {
const exifItemId = findIinfExifItemId(metaBox).itemId;
const exifOffset = findIlocItem(metaBox, exifItemId).extents[0].extentOffset;
const ilocItem = findIlocItem(metaBox, exifItemId);
const exifOffset = ilocItem.baseOffset + ilocItem.extents[0].extentOffset;
return getTiffHeaderOffset(dataView, exifOffset);
} catch (error) {
return undefined;
Expand All @@ -232,11 +233,12 @@ function getTiffHeaderOffset(dataView, exifOffset) {
function findXmpChunks(metaBox) {
try {
const xmpItemId = findIinfXmpItemId(metaBox).itemId;
const ilocItem = findIlocItem(metaBox, xmpItemId).extents[0];
const ilocItem = findIlocItem(metaBox, xmpItemId);
const ilocItemExtent = findIlocItem(metaBox, xmpItemId).extents[0];
return [
{
dataOffset: ilocItem.extentOffset,
length: ilocItem.extentLength,
dataOffset: ilocItem.baseOffset + ilocItemExtent.extentOffset,
length: ilocItemExtent.extentLength,
}
];
} catch (error) {
Expand Down

0 comments on commit b0dc7f8

Please sign in to comment.