+ await processImage(input, imageDestJPG, thumbnailSize, 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(input, imageDestJPG, { width: 100, height: 100 }, 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(input, imageDestJPG, thumbnailSize, 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