+ await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true })
+
+ await checkBuffers(input, imageDestJPG, false)
+ })
+
+ it('Should strip exif for a jpg file that can not be copied', async function () {
+ const input = buildAbsoluteFixturePath('exif.jpg')
+ expect(await hasTitleExif(input)).to.be.true
+
+ await processImage({ path: input, destination: imageDestJPG, newSize: { width: 100, height: 100 }, keepOriginal: true })
+ await checkBuffers(input, imageDestJPG, false)
+
+ expect(await hasTitleExif(imageDestJPG)).to.be.false
+ })
+
+ it('Should strip exif for a jpg file that could be copied', async function () {
+ const input = buildAbsoluteFixturePath('exif.jpg')
+ expect(await hasTitleExif(input)).to.be.true
+
+ await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true })
+ await checkBuffers(input, imageDestJPG, false)
+
+ expect(await hasTitleExif(imageDestJPG)).to.be.false
+ })
+
+ it('Should strip exif for png', async function () {
+ const input = buildAbsoluteFixturePath('exif.png')
+ expect(await hasTitleExif(input)).to.be.true