Skip to content
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 the possibility to customize the default thumbnail #10

Open
saulotarsobc opened this issue Mar 1, 2024 · 0 comments
Open

Add the possibility to customize the default thumbnail #10

saulotarsobc opened this issue Mar 1, 2024 · 0 comments
Labels
ideas Give ideas

Comments

@saulotarsobc
Copy link
Owner

from PIL import Image

# Dimensões da nova imagem
largura = 200
altura = 100

# Cor de preenchimento da imagem (no formato RGB)
cor = (255, 0, 0)  # Vermelho

# Criar uma nova imagem com a cor especificada
nova_imagem = Image.new('RGB', (largura, altura), cor)

# Salvar a nova imagem como um arquivo PNG
nova_imagem.save('nova_imagem.png')
@saulotarsobc saulotarsobc added the ideas Give ideas label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ideas Give ideas
Projects
None yet
Development

No branches or pull requests

1 participant