Error and crash when images have a high resolution
I receive sometimes an error message like below, with a crash of the script as a result.
mastodon.Mastodon.MastodonAPIError: ('Mastodon API returned error', 422, 'Unprocessable Entity', '5472x3648 images are not supported')
Is there a way to make sure this doesn't happen? For instance to skip publishing an image if the resolution is to high (I don't know how large, but around 2000x2000 is okay)? Or to resize it to an acceptable resolution?