bbrzycki / motivate-me-bot Goto Github PK
View Code? Open in Web Editor NEW@MotivateMeBot is a Twitter bot that makes motivational pictures by combining pictures with tweets!
Home Page: https://twitter.com/MotivateMeBot
License: MIT License
@MotivateMeBot is a Twitter bot that makes motivational pictures by combining pictures with tweets!
Home Page: https://twitter.com/MotivateMeBot
License: MIT License
Edit quotes based on content
Ideally the credits and signature text should also line up, as well as the blur region. e.g. the bottom left and the bottom right should be symmetric.
For small images, the quote/image credits and signature text are too small / pixelated, since they are currently scaled with image size.
Either need to enforce a minimum size or set a minimum font size (which is already in pixels -- can experiment with what looks decent). Perhaps some combination of the two is the best way to go.
Need to reproduce this bug reliably -- check through posted tweets and see when it actually occurs. Doesn't seem to necessarily be linked to any bounding box cutoff; seems to be a line by line issue.
If an image already has a custom signature in a corner of the image, the credits generated by MotivateMeBot might accidentally cover it. Need a way to detect signatures and avoid covering custom image signatures.
The background box size over which the image is blurred is by design larger than the quote text. The bounding box to determine quote text formatting should not necessarily be the box used for blurring.
Blurring also needs to have a gradient roll-off in blur radius to avoid adding sharp artificial features into the image.
As of now, it only checks the background of the quote text.
Currently, we just remove all hashtags from the end. Figure out how to decide whether to keep or remove punctuation.. if this is even solvable in the first place.
Throughout the project, make sure we aren't importing anything we don't need to, and make sure imports are specified clearly as well.
Need to vet tweets for sensitive content and images for gross variations in background color (that would make quote text hard to see)
Avoid situations where only one or two short words end up on a line -- particularly where the last line is so short that it looks awkward on its own.
Basically, we'd like to detect situations in which this would happen and adjust font / line spacing accordingly to look more natural.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.