this post was submitted on 08 Oct 2023
15 points (100.0% liked)

Python

6368 readers
7 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

How to take a few images and create custom graphics with Pillow - memes, info-graphics, custom banners and the like.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago (2 children)

There seems to be a lot of stuff done manually like wrapping and centering text or expanding the image. There must be an easier way.

My dumb-ass would've generated HTML, passed it through a controlled browser, taken a screenshot, and piped that output to a file. But as I said, there must be an easier way...

[–] [email protected] 2 points 1 year ago

I think using ffmpeg would be easier.

Yes, I have had generated memes with ffmpeg.

[–] [email protected] 1 points 1 year ago (1 children)

Using a browser would be quite heavy, especially for one of those meme sites that handle a rather large flow of new content.

[–] [email protected] 1 points 1 year ago

Possibly. You don't need to open a new browser each time. You can change the URL of a tab or open a new tab. But yeah, it probably isn't the best way to do it.