marcomaroni-github / twitter-to-bluesky

Import all tweets exported from X/Twitter to a Bluesky account.
Other
499 stars 35 forks source link

Remove image EXIF metadata #89

Closed Draikin closed 1 week ago

Draikin commented 1 week ago

This adds an extra command-line argument to remove image metadata before uploading them to Bluesky, based on the best practices documented here: https://docs.bsky.app/docs/advanced-guides/posts. I've set it set to false by default, I think given the documentation it could be set to true.

I also added "mimeType = 'image/jpeg';" on line 328 in app.ts. Unless I missed something, I believe it needs to be there as recompress always delivers a jpeg image.