forked from LiveCarta/BookConverter
Add preset processing from backend
This commit is contained in:
@@ -26,7 +26,7 @@ def process_images(access, html_path, book_id, body_tag):
|
||||
folder_path = os.path.dirname(
|
||||
os.path.dirname(os.path.abspath(__file__)))
|
||||
new_path = pathlib.Path(os.path.join(
|
||||
folder_path, f'../json/img_{book_id}/'))
|
||||
folder_path, f'../books/json/img_{book_id}/'))
|
||||
new_path.mkdir(exist_ok=True)
|
||||
new_img_path = new_path / img_name
|
||||
copyfile(img_path, new_img_path)
|
||||
|
||||
Reference in New Issue
Block a user