diff --git a/example/album.py b/example/album.py new file mode 100644 index 0000000..4047007 --- /dev/null +++ b/example/album.py @@ -0,0 +1,21 @@ +from photobook import Photobook +from pathlib import Path + +name = "album" +pagesize = (250, 200) +src_fig = Path("./fig/") +output = Path("./build/") +dest = output / (name + ".pdf") +out_fig = output / "fig" + +photobook = Photobook(name, pdf_size=pagesize, base_fig=src_fig, margin=5, img_px=2) +photobook.set_font("Arial", "B", 20) +photobook.set_auto_page_break(False) + + +photobook.set_fig_folder("textures") +photobook.one_centered("eugene.jpg", "one_centered default") +photobook.one_centered("eugene.jpg", "one_centered part_of_text=2", part_of_text=2) + + +photobook.output(dest) diff --git a/example/fig/food/crepe.jpg b/example/fig/food/crepe.jpg new file mode 100644 index 0000000..3374bcc Binary files /dev/null and b/example/fig/food/crepe.jpg differ diff --git a/example/fig/food/glass.jpg b/example/fig/food/glass.jpg new file mode 100644 index 0000000..832420e Binary files /dev/null and b/example/fig/food/glass.jpg differ diff --git a/example/fig/food/muffle.jpg b/example/fig/food/muffle.jpg new file mode 100644 index 0000000..4cc86ff Binary files /dev/null and b/example/fig/food/muffle.jpg differ diff --git a/example/fig/textures/eugene.jpg b/example/fig/textures/eugene.jpg new file mode 100644 index 0000000..68cebc6 Binary files /dev/null and b/example/fig/textures/eugene.jpg differ diff --git a/example/fig/textures/hiroyuki.jpg b/example/fig/textures/hiroyuki.jpg new file mode 100644 index 0000000..b602db9 Binary files /dev/null and b/example/fig/textures/hiroyuki.jpg differ diff --git a/example/fig/textures/marek.jpg b/example/fig/textures/marek.jpg new file mode 100644 index 0000000..d306ecd Binary files /dev/null and b/example/fig/textures/marek.jpg differ diff --git a/example/fig/textures/saqib.jpg b/example/fig/textures/saqib.jpg new file mode 100644 index 0000000..80d0906 Binary files /dev/null and b/example/fig/textures/saqib.jpg differ