Skip to content

AutoMagor/AutoMagor

Repository files navigation

Auto Magor

Auto Magor Logo Automated Magazine Creator
A simple Python program to create a 3 column print magazine from text files and images
DiscordReddit

Setup 💽

Tested on Windows & Linux Mint

$ mkdir my_magazine
$ cd my_magazine
$ python -m venv MAGENV
$ .\MAGENV\Scripts\activate    OR if Linux    source ./MAGENV/bin/activate
$ python -m pip install pillow==10.2.0
$ git clone git@github.com:AutoMagor/AutoMagor.git
$ python AutoMagor --help

Create Magazine 📖

Overview & Structure

Articles should be text files, with optional images.
It is recommended to put a blank newline between each paragraph.
Articles will be processed in alphabetical order.
A suggested file name format is article_XX.txt e.g. article_01.txt, article_02.txt etc.
Articles and images need to go in a folder named to_process.

Article images have ink_saver.png applied to remove part of it. This is just to save some ink.

Each page will first be a png file in the directory pages.
The magazine will finally be assembled into a pdf file for printing. e.g. magazine_2024_02_27_20_09_39.pdf

Sample Directory

my_magazine/
    MAGENV/
    AutoMagor/
        __main__.py
        README.md
        ...
    to_process/
        article_01.txt
        article_01.png
        article_02.txt
        article_02.jpg
        ...

article.txt Format

e.g. to_process\article_01.txt

title:The Title of This Article
subtitle:A subtitle for this Article
author:Foo Bar
date:January 1, 2024
image:article_01.png
source: Text that will appear after the date
body:
The first sentence of the first paragraph. The second sentence of the first paragraph.

The second paragraph is here. Another sentence in the second paragraph.

Demo with Sample Articles

Use the contents of the sample_to_process folder to quickly create a magazine.

Attributions
Photo by Artem Gavrysh on Unsplash (Cropped and compressed)
Text generated by https://www.lipsum.com/

Create the Magazine

Note: Auto Magor is slow

$ cd my_magainze
$ python AutoMagor --create
>>> -- Auto Magor --
>>> Processing
>>> ...
>>> magazine_2024_02_27_20_09_39.pdf

No Scrapers 🛑

At this time, no scrapers will be added to this project.
Please DO NOT ask for scraper functionality or submit a pull request for it.
Thank you

Screenshots 📷

This is a long, shrunk, and compressed sample image to get an idea of what a magazine looks like.
screenshot.jpg

License 🗃️

MIT