PDF avec fond transparents

This commit is contained in:
François Pelletier 2024-08-24 14:52:24 -04:00
parent 758df7ffd8
commit 56957a17ad
10 changed files with 6 additions and 0 deletions

View file

@ -198,6 +198,7 @@ async def get_image(nom_image: str, current_user: Annotated[User, Depends(get_cu
async def ajouter_image(file: UploadFile, current_user: Annotated[User, Depends(get_current_active_user)]):
"""
Add an image to the images folder.
:param current_user:
:param file:
:return:
"""
@ -218,6 +219,7 @@ async def ajouter_image(file: UploadFile, current_user: Annotated[User, Depends(
async def supprimer_image(nom_image: str, current_user: Annotated[User, Depends(get_current_active_user)]):
"""
Delete an image from the images folder.
:param current_user:
:param nom_image:
:return:
"""

View file

@ -0,0 +1,4 @@
for file in $(find . -name "*.png")
do
magick $file "${file%.png}.pdf"
done