Skip to content

Commit

Permalink
chore: explain why it's read again
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext committed Feb 27, 2024
1 parent 1bcab8b commit 2c35cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/utils/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export const compressPostImage = async (blob: Blob): Promise<CompressResult> =>
{
const exifRemoved = removeExif(await blob.arrayBuffer());

// have the images be read again below, to make sure the exif removal code
// is working as intended.
if (exifRemoved !== null) {
blob = new Blob([exifRemoved], { type: blob.type });
}
Expand Down

0 comments on commit 2c35cb1

Please sign in to comment.