-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generating images for posts #2
Comments
Hi ! Can you explain this a bit? @VickiLanger |
Absolutely, @iriyagupta. Right now, I have no clue how to generate the image and I've put very little thought into how it could be done. Ways I've thought about doing it:
|
@VickiLanger So is it like if the image with a text is already available let us say the text is "Today's queerness is a purring biromantic walkman" it should also generate the image 98 which is containing the same text or if the text is not available on the image from the img_bg folder, you want any random image with no text on it to appear and display the string sent by tweet.py? |
@iriyagupta The images in the folder are all blank. I'd like it to grab a random image and show the string on the image |
@VickiLanger Oh okay, understandable. I will give it a try |
@VickiLanger do we have a registered consumer key for the application? Or shall I create my own |
@iriyagupta I have keys. I'm not sure how to share them without sharing them publically. I think you should be able to use |
@VickiLanger Without keys authenticate_api doesn't seem to work, is there anywhere we can share them? |
You're right. It won't work locally without the keys. Sharing keys poses a security risk. It would be best to get keys of your own, if need be. I got my keys through https://developer.twitter.com/en/apps reference: https://twitter.com/grahamcox82/status/1311742466429722626?s=20 |
@VickiLanger So I have applied for twitter developer account but it will take some time to get accepted, before that I won't be able to run this due to the lack of auth key |
Sounds great. I understand |
@VickiLanger are you facing an issue posting an image to Twitter or generating the image with the text itself? |
@tahazanzibarwala Generating the image itself |
Hey @VickiLanger , i wrote some utility functions that may help and with very few customizations you can change the font:style,color,size and the positions. |
Add images that generate when posting. I think it's something to do with open graph. Must have alt text
Both dev.to and webwide have this.
Maybe this is the wizardry behind it? https://lannonbr.com/blog/2019-11-10-og-images/
Images are in
img_bg
folder.Thanks for contributing!
Don't forget to follow the bot on Twitter to see the hard work you put in.
The text was updated successfully, but these errors were encountered: