Skip to content

Commit

Permalink
Ajoute un commentaire sur l'utilité du fichier
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Dec 9, 2023
1 parent 4072abf commit a573d6a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/convert_smileys_to_png.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
"""
Convert smileys from SVG to PNG.
In our codebase, the reference format for smileys is SVG. However, some epub readers cannot display SVGs,
and we have chosen to fall back to PNG so that images are displayed properly with most epub readers.
In order to avoid manual generation of PNG versions, we convert them automatically from the reference SVG files.
This file provide tools to perform the conversion using a CLI interface.
It relies on cairosvg to perform the file conversion.
"""

import argparse
import pathlib
import os
Expand Down

0 comments on commit a573d6a

Please sign in to comment.