Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Comprobar la imagen al crear badges #3

Open
jesustorresdev opened this issue Jul 24, 2019 · 2 comments
Open

Comprobar la imagen al crear badges #3

jesustorresdev opened this issue Jul 24, 2019 · 2 comments

Comments

@jesustorresdev
Copy link
Owner

Al crear badges se indica una imagen codificada como BASE64. Sería conveniente verificar:

Seguramente Pillow pueda ayudar para ambas cosas.

@mbdaso
Copy link
Contributor

mbdaso commented Aug 4, 2019

https://github.com/aplatanado/slack-badges-bot/blob/ae64d51a4772252964b4c00f10091aec8fcf3acc/slack_badges_bot/adapters/api.py#L119
Primero compruebo si es una url o data uri con expresiones regulares

Luego en un método de badgeservice compruebo los requisitos con pillow:
https://github.com/aplatanado/slack-badges-bot/blob/ae64d51a4772252964b4c00f10091aec8fcf3acc/slack_badges_bot/services/badge.py#L79
Haría falta algo más?

@jesustorresdev
Copy link
Owner Author

jesustorresdev commented Aug 4, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants