Skip to content

publish to Twitter: if a photo size>5MB, shrink before posting #710

@tantek

Description

@tantek

Just as Bridgy Publish automatically shortens (ellipses) text content when posting to Twitter, it would be nice if Bridgy Publish could also detect when a photo being posted was too big for Twitter and resize it to be just under 5MB* (and then link to the original post for the full resolution version).

*Twitter photos must be <=5MB according to this actual error from Bridgy Publish logs:

2016-12-02 01:43:34.244510 W Error 400, response body: {"errors":[{"code":..."message":"Image file size must be <= 5242880 bytes"}]}

Photo being attempted to publish:

https://indieweb.org/images/f/fc/2016-335-hwc-sf.gif

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions