AlenVelocity / wa-sticker-formatter

Sticker Creator for WhatsApp
https://alensaito1.github.io/wa-sticker-formatter/
MIT License
99 stars 45 forks source link

any way to just set the exif data? #43

Closed erickythierry closed 2 years ago

erickythierry commented 2 years ago

I'm using version 3.6 to just define the pack and author of the sticker. I have my own function that converts to webp with a nice performance. is there any way to only use this functionality in the most current version of the lib?

I need the most current function because it runs on ARM machines

AlenVelocity commented 2 years ago

Yes, you can use the exported Exif class like so

import { Exif } from 'wa-sticker-formatter'

const webp; /* your image*/
const webpWithExif = await new Exif({ pack: 'name' }).add(webp)