PDF avec fond transparents
This commit is contained in:
parent
758df7ffd8
commit
56957a17ad
10 changed files with 6 additions and 0 deletions
2
main.py
2
main.py
|
@ -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:
|
||||
"""
|
||||
|
|
Binary file not shown.
Binary file not shown.
4
styles/deconstruit/creer_pdf.sh
Normal file
4
styles/deconstruit/creer_pdf.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
for file in $(find . -name "*.png")
|
||||
do
|
||||
magick $file "${file%.png}.pdf"
|
||||
done
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue