-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ta/fix wordcloud #58
Ta/fix wordcloud #58
Conversation
@gaudinnicolas, oui ce serait bien. Par contre je ne sais pas trop comment faire pour l'intégrer, peux-tu m'aiguiller ? @anquetos tu peux prendre le zip de https://github.com/QuentinMadura/12_taxobservatory_dataviz/tree/main et copier les images dans assets (remplacer existantes) et il y a 3 fichiers à modifier car 2 images ont été transformées en jpg d'après |
@gaudinnicolas, ah ok, tout simplement. Je pensais qu'il y avait moyen de faire un truc via GitHub mais c'est plus simple comme ça. |
Update
|
Goal
Remove usage of word_cloud library which was causing a resource warning :
This issue is still opened on the repository (amueller/word_cloud#764).
Solution
The word cloud is now created directly with the Pillow library and its
ImageDraw
andImageFont
modules.Since it was necessary to specify the
ttf
file to load in theImageDraw.truetype()
function, font management has been changed from Google API to a local ressource folderapp/assets/fonts
.Other ressources of the project as images or CSS files have also been moved to the
assets
folder.