Skip to content

Commit

Permalink
fix: remove scour
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed May 31, 2024
1 parent c1f4f50 commit 310bd16
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "touying"
version = "0.11.2"
version = "0.11.3"
description = "Export presentation slides in various formats for Touying"
readme = "README.md"
keywords = ["presentation", "slides", "export"]
Expand All @@ -13,7 +13,6 @@ dependencies = [
"python-pptx>=0.6",
"pillow",
"jinja2",
"scour",
"argparse",
]
classifiers = [
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ typst>=0.11.1
python-pptx>=0.6
pillow
jinja2
scour
argparse
5 changes: 0 additions & 5 deletions touying/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import jinja2
import os
import re
from scour import scour

FILE_PATH = os.path.dirname(os.path.realpath(__file__))

Expand All @@ -34,10 +33,6 @@ def to_html(
)
for image in images
]
# minify svgs
scour_options = scour.sanitizeOptions(options=None)
scour_options.remove_metadata = True
images = [scour.scourString(image, scour_options) for image in images]

# query <pdfpc-file> from typst file
pdfpc = json.loads(
Expand Down

0 comments on commit 310bd16

Please sign in to comment.