-
-
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
Incorporate generated images with tweet.py to actually tweet the images #90
Comments
generateImagePost.py
with tweet.py
Is there any difference between the images named "{no}" and images named "{no}+a" ? |
@Ares358 There is no difference. I took the easiest way I could think of when renaming them all at once. I should've named them all the same |
I think this issue was resolved after PR #100 and can be closed now. |
@JasirZaeem The PR definitely addressed the issue. It's throwing an error though and I haven't had a chance to check it out.
|
Installing Python Image Library via the command |
PIL(pillow) is being used to write the tweets on images, the error says it's missing on the machine you tried running the bot on. |
Okay, so, it still didn't work. that clearly wasn't the way to do it. I think I just need to update |
Yes that might be the way to do it, https://devcenter.heroku.com/articles/python-pip this says so at least. I have only used Linux vpses for experimenting with things so don't have any experience with Heroku. |
It was happy with my fix and now it's not happy again.
|
I think the problem might be missing fonts, at this line https://github.com/JasirZaeem/LGBTQ-of-the-day-bot/blob/60288208a79fbc2280d9f3317136731f6ae945f1/get_img_for_tweet.py#L82 and the one after, arial.ttf is used, on windows where I and the contributor who originally added the code used it, this would work, but this probably fails on heroku. You'll have to upload arial.ttf, or some other font file, yourself, to use it. I don't have experience with heroku but this might be helpful http://stackoverflow.com/questions/57794602/using-ttf-font-file-in-pillow-within-a-django-app-hosted-on-heroku |
Thank you so much @JasirZaeem. I had no clue you could link to a specific line. Neat.
|
Well, it still doesn't like it.
Gonna try using |
Okay, Images work. I'm gonna open a new issue for the font and work on that. Thank you both so much for your work and for helping me figure out the errors. https://twitter.com/LgbtQotd/status/1317118324124299264?s=20 |
Issue #2 discussed generating images from text with the images in
img_bg
. Now that the images are generated withgenerateImagePost.py
, they need to be able to be tweeted withtweet.py
https://iq.opengenus.org/post-image-twitter-api/
The text was updated successfully, but these errors were encountered: