image-grid-app :: operator console
+pasteup :: operator console
@@ -24,7 +24,7 @@Terminal session
-Image Grid App
+Pasteup
Single folder is best when you already know exactly which image folder you want to process.
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b791a01..16307ab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,9 +20,6 @@ jobs: matrix: # 3.11 is the floor: mullion and the app's StrEnum use need it. python-version: ["3.11", "3.13"] - defaults: - run: - working-directory: image_grid_app steps: - uses: actions/checkout@v5 @@ -30,14 +27,16 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: pip - cache-dependency-path: image_grid_app/requirements*.txt + cache-dependency-path: pyproject.toml # The preview-video tests encode real files; without ffmpeg they skip. - name: Install ffmpeg run: sudo apt-get update && sudo apt-get install --yes --no-install-recommends ffmpeg - - name: Install dependencies - run: pip install -r requirements-dev.txt + # A regular (not editable) install, so the tests run against the built + # package and fail if a template or static file is left out of it. + - name: Install + run: pip install ".[dev]" # Lint first: a slip fails in seconds rather than after the suite. - name: Lint diff --git a/.gitignore b/.gitignore index 98dbeb4..309336f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ __pycache__/ *.py[cod] .venv/ +build/ +dist/ +*.egg-info/ diff --git a/README.md b/README.md index f893840..366fa07 100644 --- a/README.md +++ b/README.md @@ -1,61 +1,69 @@ -# mar_place - -## MVP Overview -`mar_place` contains **Image Grid App**, a FastAPI + vanilla JS tool that: -- scans an input folder for supported images, -- estimates page count, -- composes a fixed **4x3 image grid** (12 images) per page, -- exports generated pages as PNG or JPG at a chosen DPI, -- optionally cleans a near-white background off each image before placing it, -- lets the UI toggle between single-folder and batch-folder generation modes. - -Project root: -- `image_grid_app/` — runnable application. - ---- - -## Installation and Run Commands - -Requires Python 3.11 or newer. The optional preview video also needs +# Pasteup + +Turn a folder of clip art into listing images: preview sheets, a cover collage +and a short preview video, ready for Etsy and other marketplaces. Pasteup runs +on your own computer and works in your browser. + +The name comes from *paste-up*, how clip art was used before desktop +publishing: cut out by hand and pasted onto a layout board. + +## What it does +- **Preview sheets:** 4x3 grids of your images on a white page, as PNG or JPG + at a chosen DPI. +- **Cover collage:** a single page in one of three layouts, for a listing's + main image. +- **Preview video:** an MP4 slideshow of the sheets, exactly as long as you ask + (Etsy's listing videos run 5 to 15 s). +- **Clean-up:** transparent PNGs land on white instead of black, phone photos + are turned upright, and near-white backgrounds can be removed. +- **Batch mode:** process every bundle folder under a parent folder in one go. + +## Install +Requires Python 3.11 or newer. The preview video also needs [ffmpeg](https://ffmpeg.org/) on `PATH`. -### 1) Install dependencies ```bash -cd image_grid_app +git clone https://github.com/ftymoshchuk/pasteup.git +cd pasteup python -m venv .venv source .venv/bin/activate -pip install -r requirements.txt +pip install . ``` -### 2) Run the app +## Run ```bash -cd image_grid_app -uvicorn app.main:app --reload +pasteup ``` +Then open `http://127.0.0.1:8000/` (API docs: `http://127.0.0.1:8000/docs`). +`pasteup --help` lists the options, and `python -m pasteup` works too. -### 3) Open in browser -- UI: `http://127.0.0.1:8000/` -- API docs (Swagger): `http://127.0.0.1:8000/docs` - -The app reads and writes files at the paths you give it and has no login, so +Pasteup reads and writes files at the paths you give it and has no login, so keep it on `127.0.0.1` (the default). See [SECURITY.md](SECURITY.md). ### Optional environment variables -- `IMAGE_GRID_INPUT_FOLDER`: prefills the input-folder field, e.g. - `IMAGE_GRID_INPUT_FOLDER=~/Pictures/clip-art uvicorn app.main:app`. -- `IMAGE_GRID_ALLOWED_HOSTS`: comma-separated host names to accept besides +- `PASTEUP_INPUT_FOLDER`: prefills the input-folder field, e.g. + `PASTEUP_INPUT_FOLDER=~/Pictures/clip-art pasteup`. +- `PASTEUP_ALLOWED_HOSTS`: comma-separated host names to accept besides `localhost`, `127.0.0.1` and `[::1]`. Only for serving the app under another name on purpose. -### Development +## Development ```bash -cd image_grid_app -pip install -r requirements-dev.txt +pip install -e ".[dev]" ruff check . pytest ``` -CI runs the same on Python 3.11 and 3.13, with ffmpeg installed so the -preview-video tests encode real files. +CI runs the same on Python 3.11 and 3.13, against a regular install of the +package and with ffmpeg present, so the preview-video tests encode real files. + +Project layout: +- `src/pasteup/main.py`: the FastAPI app +- `src/pasteup/routes/`: the page and the `/api/jobs` endpoints +- `src/pasteup/services/`: scanning, page composition, collages, export, video +- `src/pasteup/models/`: request and response schemas +- `src/pasteup/templates/` and `src/pasteup/static/`: the UI +- `src/pasteup/cli.py`: the `pasteup` command +- `tests/` --- @@ -74,7 +82,7 @@ Notes: ## Default Setting Values Default UI values: -- input folder: empty (set `IMAGE_GRID_INPUT_FOLDER` to prefill it) +- input folder: empty (set `PASTEUP_INPUT_FOLDER` to prefill it) - `page_width`: `3000` - `page_height`: `3000` - `gap`: `30` @@ -361,6 +369,22 @@ Fixes: --- +## How images are loaded +Opening, background cleaning and page geometry live in +[mullion](https://github.com/sigrix-io/mullion), a small library Pasteup +depends on (`mullion~=0.2.1`, from PyPI). + +`mullion.open_path()` is the one place a source image is opened. It composites +transparency onto white (a bare `convert("RGB")` drops the alpha and leaves the +black underneath showing) and applies EXIF orientation, so a phone photo is not +placed sideways. `mullion.clean_background()` is the border-seeded cleaner +described above, and `mullion.resolve_page_geometry()` turns `page_unit` and +`dpi` into the pixel size the exporter stamps. mullion's own suite tests these +directly; Pasteup's tests check the same claims through its composer and +exporter, so a bad mullion upgrade still fails here. + +--- + ## License Apache License 2.0, see [LICENSE](LICENSE). Security reports: see [SECURITY.md](SECURITY.md). diff --git a/SECURITY.md b/SECURITY.md index f5c0f14..f01b121 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,14 +1,14 @@ # Security -## Image Grid App is a local tool +## Pasteup is a local tool -The app reads and writes files at whatever paths it is given — that is its job. +Pasteup reads and writes files at whatever paths it is given — that is its job. It has no accounts and no authentication, so run it only on your own machine, -bound to `127.0.0.1` (uvicorn's default): +bound to `127.0.0.1` (the default): ```bash -uvicorn app.main:app # fine: only this machine can reach it -uvicorn app.main:app --host 0.0.0.0 # don't: anyone on your network can read and write your files +pasteup # fine: only this machine can reach it +pasteup --host 0.0.0.0 # don't: anyone on your network can read and write your files ``` Two guards back that up: @@ -16,7 +16,7 @@ Two guards back that up: - **Host check.** Requests are only answered when addressed to `localhost` or `127.0.0.1`. That stops a web page that points its own domain at your machine (DNS rebinding) from driving the app through your browser. If you deliberately - serve the app under another name, list it in `IMAGE_GRID_ALLOWED_HOSTS` + serve the app under another name, list it in `PASTEUP_ALLOWED_HOSTS` (comma-separated). - **Bounded requests.** Output files stay inside the output folder you chose, and page size and video length are capped, so a single request cannot overwrite diff --git a/image_grid_app/README.md b/image_grid_app/README.md deleted file mode 100644 index 416a928..0000000 --- a/image_grid_app/README.md +++ /dev/null @@ -1,84 +0,0 @@ -# Image Grid App - -Base structure for a FastAPI project that scans folders, batches images, composes image grids, and exports results. - -## Structure - -- `app/main.py`: FastAPI app setup -- `app/routes/`: UI and API routes -- `app/services/`: domain service modules -- `app/models/`: shared schemas -- `app/templates/`: Jinja templates -- `app/static/`: CSS and JavaScript assets - -## Run locally - -```bash -pip install -r requirements.txt -uvicorn app.main:app --reload -``` - -For development, `pip install -r requirements-dev.txt`, then `ruff check .` and -`pytest`. - -## UI generation modes - -The home page now has a mode selector next to the generation controls. The selector drives a single client-side source of truth for generation requests: - -- **Single folder** - - Labels: `Input folder` + `Output folder` - - Endpoint: `POST /api/jobs/generate` -- **Batch folders** - - Labels: `Parent folder` + `Created output folder` - - Validation endpoint: `POST /api/jobs/scan-selected-batch-folders` - - Generation endpoint: `POST /api/jobs/generate-all-folders` - -`Cover collage` remains a separate single-folder action and still calls `POST /api/jobs/generate-cover-collage`. It is not part of the mode toggle. - -## Output quality - -Every page-producing endpoint accepts the same print and cleanup options: - -| Field | Default | Does | -| --- | --- | --- | -| `page_unit` | `px` | Read `page_width`/`page_height` as `px`, `in` or `mm` | -| `dpi` | `300` | Converts physical units, and is stamped into the exported file | -| `background_clean_mode` | `off` | `flatten` or `transparent` to clean a near-white background | -| `background_tolerance` | `240` | Lowest channel value counted as background | -| `background_feather` | `1` | Mask softening, in pixels, to kill halos | -| `include_partial_page` | `false` | Grid endpoints only: render a partly-filled final page | - -Background cleaning flood-fills inward from the image border, so only a -background *connected to the edge* is touched — a white highlight enclosed by -the subject is never reached. An image whose border is not near-white is -reported as having no background and returned unchanged. - -## Image loading and background cleaning - -Both live in **[mullion](https://github.com/sigrix-io/mullion)**, a small -library this app depends on rather than a module it owns. It is installed from -PyPI, pinned to its minor version (`mullion~=0.2.1`). - -`mullion.open_path()` is the one place a source image is opened. It composites -transparency onto white — a bare `convert("RGB")` drops the alpha and leaves the -black underneath showing — and applies EXIF orientation, so a phone photo is not -placed sideways. `mullion.clean_background()` is the cleaner described above, -and `mullion.resolve_page_geometry()` is what turns `page_unit` and `dpi` into -the pixel dimensions the exporter stamps. The grid composer and the cover -collage both go through all three. - -It was extracted because the same three problems arrive in every application -that accepts user images, and an app that solves them in six places gets six -different answers. Nothing about the behaviour here changed in the move. -mullion's own suite tests these functions directly; this app's tests check the -same claims through its composer and exporter, so a bad mullion upgrade still -fails here. - -## Export behavior - -- Exports carry DPI metadata, so the page reports a real physical size instead of - falling back to 72 DPI. -- Output directories are created automatically when they do not exist. -- Pages are saved with sequential names: `page_001.png`, `page_002.png`, etc. (or `.jpg` for JPG export). -- Export is conflict-safe: existing `page_###` files are **not** overwritten; new exports continue at the next available index. -- Export responses can return saved paths as relative paths (default) or absolute paths. diff --git a/image_grid_app/app/services/__init__.py b/image_grid_app/app/services/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/image_grid_app/requirements-dev.txt b/image_grid_app/requirements-dev.txt deleted file mode 100644 index 61a6696..0000000 --- a/image_grid_app/requirements-dev.txt +++ /dev/null @@ -1,5 +0,0 @@ --r requirements.txt -pytest~=9.1 -# starlette.testclient uses httpx2; plain httpx is deprecated there. -httpx2~=2.13 -ruff==0.17.1 diff --git a/image_grid_app/requirements.txt b/image_grid_app/requirements.txt deleted file mode 100644 index fc80953..0000000 --- a/image_grid_app/requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -# Compatible-release pins: bug-fix releases flow in, while anything that may -# change behaviour (a new minor of a 0.x package, a new major elsewhere) is a -# deliberate bump. An unpinned FastAPI/Starlette has already broken this app -# once (37b6da7). -fastapi~=0.143.2 -uvicorn~=0.54.0 -jinja2~=3.1 -pillow~=12.3 -pydantic~=2.14 -# mullion is pre-1.0, so pin the minor rather than taking any 0.x (#137). -mullion~=0.2.1 diff --git a/image_grid_app/ruff.toml b/image_grid_app/ruff.toml deleted file mode 100644 index 6fa1158..0000000 --- a/image_grid_app/ruff.toml +++ /dev/null @@ -1,7 +0,0 @@ -# Pyflakes plus pycodestyle's error classes: real bugs such as undefined names -# and unused imports, without a formatting pass over existing code. Widening the -# rule set, or adding `ruff format --check`, is a separate decision (#138). -target-version = "py311" - -[lint] -select = ["E4", "E7", "E9", "F"] diff --git a/image_grid_app/tests/conftest.py b/image_grid_app/tests/conftest.py deleted file mode 100644 index 0f37c5c..0000000 --- a/image_grid_app/tests/conftest.py +++ /dev/null @@ -1,11 +0,0 @@ -import os -import sys -from pathlib import Path - -ROOT = Path(__file__).resolve().parents[1] -if str(ROOT) not in sys.path: - sys.path.insert(0, str(ROOT)) - -# TestClient addresses every request to "testserver", which the app's Host check -# refuses by default. Set before any test module imports the app. -os.environ.setdefault("IMAGE_GRID_ALLOWED_HOSTS", "testserver") diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..349d462 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,62 @@ +[build-system] +requires = ["hatchling>=1.27"] +build-backend = "hatchling.build" + +[project] +name = "pasteup" +dynamic = ["version"] +description = "Turn a folder of clip art into listing images: preview sheets, cover collages and preview videos." +readme = "README.md" +license = "Apache-2.0" +license-files = ["LICENSE"] +requires-python = ">=3.11" +# Compatible-release pins: bug-fix releases flow in, while anything that may +# change behaviour (a new minor of a 0.x package, a new major elsewhere) is a +# deliberate bump. mullion is pre-1.0, so its minor is pinned too. +dependencies = [ + "fastapi~=0.143.2", + "uvicorn~=0.54.0", + "jinja2~=3.1", + "pillow~=12.3", + "pydantic~=2.14", + "mullion~=0.2.1", +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Framework :: FastAPI", + "Intended Audience :: End Users/Desktop", + "Programming Language :: Python :: 3", + "Topic :: Multimedia :: Graphics", +] + +[project.optional-dependencies] +dev = [ + "pytest~=9.1", + # starlette.testclient uses httpx2; plain httpx is deprecated there. + "httpx2~=2.13", + "ruff==0.17.1", +] + +[project.scripts] +pasteup = "pasteup.cli:main" + +[project.urls] +Source = "https://github.com/ftymoshchuk/pasteup" + +[tool.hatch.version] +path = "src/pasteup/__init__.py" + +[tool.hatch.build.targets.wheel] +packages = ["src/pasteup"] + +[tool.pytest.ini_options] +testpaths = ["tests"] + +[tool.ruff] +target-version = "py311" + +[tool.ruff.lint] +# Pyflakes plus pycodestyle's error classes: real bugs such as undefined names +# and unused imports, without a formatting pass over existing code. Widening the +# rule set, or adding `ruff format --check`, is a separate decision. +select = ["E4", "E7", "E9", "F"] diff --git a/src/pasteup/__init__.py b/src/pasteup/__init__.py new file mode 100644 index 0000000..3aac1eb --- /dev/null +++ b/src/pasteup/__init__.py @@ -0,0 +1,3 @@ +"""Pasteup: turn a folder of clip art into listing images.""" + +__version__ = "0.1.0" diff --git a/src/pasteup/__main__.py b/src/pasteup/__main__.py new file mode 100644 index 0000000..3f3c61a --- /dev/null +++ b/src/pasteup/__main__.py @@ -0,0 +1,4 @@ +from pasteup.cli import main + +if __name__ == "__main__": + main() diff --git a/src/pasteup/cli.py b/src/pasteup/cli.py new file mode 100644 index 0000000..0a01d99 --- /dev/null +++ b/src/pasteup/cli.py @@ -0,0 +1,34 @@ +"""The `pasteup` command: serve the app locally.""" + +from __future__ import annotations + +import argparse +import sys + +from pasteup import __version__ + +LOCAL_HOSTS = ("127.0.0.1", "localhost", "::1") + + +def main(argv: list[str] | None = None) -> None: + parser = argparse.ArgumentParser( + prog="pasteup", + description="Turn a folder of clip art into listing images. Serves the app in your browser.", + ) + parser.add_argument("--host", default="127.0.0.1", help="address to listen on (default: 127.0.0.1)") + parser.add_argument("--port", type=int, default=8000, help="port to listen on (default: 8000)") + parser.add_argument("--reload", action="store_true", help="restart on code changes, for development") + parser.add_argument("--version", action="version", version=f"pasteup {__version__}") + args = parser.parse_args(argv) + + if args.host not in LOCAL_HOSTS: + print( + f"Warning: listening on {args.host} lets other machines reach an app that reads and " + "writes your files, with no login. See SECURITY.md before doing this.", + file=sys.stderr, + ) + + # Imported here so `pasteup --help` and `--version` stay instant. + import uvicorn + + uvicorn.run("pasteup.main:app", host=args.host, port=args.port, reload=args.reload) diff --git a/image_grid_app/app/main.py b/src/pasteup/main.py similarity index 81% rename from image_grid_app/app/main.py rename to src/pasteup/main.py index 1183607..500052f 100644 --- a/image_grid_app/app/main.py +++ b/src/pasteup/main.py @@ -5,8 +5,9 @@ from fastapi.middleware.trustedhost import TrustedHostMiddleware from fastapi.staticfiles import StaticFiles -from app.routes.jobs import router as jobs_router -from app.routes.ui import router as ui_router +from pasteup import __version__ +from pasteup.routes.jobs import router as jobs_router +from pasteup.routes.ui import router as ui_router APP_DIR = Path(__file__).resolve().parent @@ -15,7 +16,7 @@ # domain has been re-pointed at 127.0.0.1 (DNS rebinding) from driving the app # through the user's browser. Extra names, comma-separated, are for serving the # app deliberately under another host. -ALLOWED_HOSTS_ENV_VAR = "IMAGE_GRID_ALLOWED_HOSTS" +ALLOWED_HOSTS_ENV_VAR = "PASTEUP_ALLOWED_HOSTS" DEFAULT_ALLOWED_HOSTS = ("localhost", "127.0.0.1", "[::1]") @@ -24,7 +25,7 @@ def allowed_hosts() -> list[str]: return [*DEFAULT_ALLOWED_HOSTS, *(host.strip() for host in extra_hosts if host.strip())] -app = FastAPI(title="Image Grid App") +app = FastAPI(title="Pasteup", version=__version__) app.add_middleware(TrustedHostMiddleware, allowed_hosts=allowed_hosts()) app.mount("/static", StaticFiles(directory=APP_DIR / "static"), name="static") diff --git a/image_grid_app/app/__init__.py b/src/pasteup/models/__init__.py similarity index 100% rename from image_grid_app/app/__init__.py rename to src/pasteup/models/__init__.py diff --git a/image_grid_app/app/models/schemas.py b/src/pasteup/models/schemas.py similarity index 99% rename from image_grid_app/app/models/schemas.py rename to src/pasteup/models/schemas.py index 6ea546b..f2e7224 100644 --- a/image_grid_app/app/models/schemas.py +++ b/src/pasteup/models/schemas.py @@ -2,7 +2,7 @@ from typing import Literal from mullion import DEFAULT_TOLERANCE, BackgroundCleanMode -from app.services.cover_collage import CoverCollageFittingMode, CoverCollageTemplate +from pasteup.services.cover_collage import CoverCollageFittingMode, CoverCollageTemplate from mullion import DEFAULT_DPI from pydantic import AliasChoices, BaseModel, Field, field_validator diff --git a/image_grid_app/app/models/__init__.py b/src/pasteup/routes/__init__.py similarity index 100% rename from image_grid_app/app/models/__init__.py rename to src/pasteup/routes/__init__.py diff --git a/image_grid_app/app/routes/jobs.py b/src/pasteup/routes/jobs.py similarity index 98% rename from image_grid_app/app/routes/jobs.py rename to src/pasteup/routes/jobs.py index ab4edc1..bc96068 100644 --- a/image_grid_app/app/routes/jobs.py +++ b/src/pasteup/routes/jobs.py @@ -7,7 +7,7 @@ from fastapi import APIRouter, HTTPException from fastapi.responses import JSONResponse -from app.models.schemas import ( +from pasteup.models.schemas import ( BatchBundleResult, BatchCoverCollageGenerationRequest, BatchCoverCollageGenerationResponse, @@ -24,22 +24,22 @@ SelectedBatchFolderValidationRequest, SelectedBatchFolderValidationResponse, ) -from app.services.cover_collage import compose_cover_collage +from pasteup.services.cover_collage import compose_cover_collage from mullion import DEFAULT_TOLERANCE, BackgroundCleanMode -from app.services.exporter import export_pages +from pasteup.services.exporter import export_pages from mullion import ( DEFAULT_DPI, PageGeometry, resolve_page_geometry, ) -from app.services.folder_scanner import ( +from pasteup.services.folder_scanner import ( is_generated_output_folder, list_supported_image_paths, resolve_folder_path, scan_folder, ) -from app.services.grid_composer import compose_image_grids -from app.services.video_exporter import build_preview_video +from pasteup.services.grid_composer import compose_image_grids +from pasteup.services.video_exporter import build_preview_video router = APIRouter(prefix="/jobs", tags=["jobs"]) diff --git a/image_grid_app/app/routes/ui.py b/src/pasteup/routes/ui.py similarity index 91% rename from image_grid_app/app/routes/ui.py rename to src/pasteup/routes/ui.py index 5f6f798..93365d2 100644 --- a/image_grid_app/app/routes/ui.py +++ b/src/pasteup/routes/ui.py @@ -4,13 +4,13 @@ from fastapi import APIRouter, Request from fastapi.templating import Jinja2Templates -from app.services.cover_collage import COVER_COLLAGE_TEMPLATE_OPTIONS +from pasteup.services.cover_collage import COVER_COLLAGE_TEMPLATE_OPTIONS from mullion import DEFAULT_DPI # Prefills the input-folder field so a regular workflow does not need retyping on # every launch. It is read from the environment rather than written here because # any real value is somebody's home directory. -INPUT_FOLDER_ENV_VAR = "IMAGE_GRID_INPUT_FOLDER" +INPUT_FOLDER_ENV_VAR = "PASTEUP_INPUT_FOLDER" router = APIRouter() templates = Jinja2Templates(directory=Path(__file__).resolve().parents[1] / "templates") diff --git a/image_grid_app/app/routes/__init__.py b/src/pasteup/services/__init__.py similarity index 100% rename from image_grid_app/app/routes/__init__.py rename to src/pasteup/services/__init__.py diff --git a/image_grid_app/app/services/cover_collage.py b/src/pasteup/services/cover_collage.py similarity index 100% rename from image_grid_app/app/services/cover_collage.py rename to src/pasteup/services/cover_collage.py diff --git a/image_grid_app/app/services/exporter.py b/src/pasteup/services/exporter.py similarity index 100% rename from image_grid_app/app/services/exporter.py rename to src/pasteup/services/exporter.py diff --git a/image_grid_app/app/services/folder_scanner.py b/src/pasteup/services/folder_scanner.py similarity index 100% rename from image_grid_app/app/services/folder_scanner.py rename to src/pasteup/services/folder_scanner.py diff --git a/image_grid_app/app/services/grid_composer.py b/src/pasteup/services/grid_composer.py similarity index 100% rename from image_grid_app/app/services/grid_composer.py rename to src/pasteup/services/grid_composer.py diff --git a/image_grid_app/app/services/image_batcher.py b/src/pasteup/services/image_batcher.py similarity index 100% rename from image_grid_app/app/services/image_batcher.py rename to src/pasteup/services/image_batcher.py diff --git a/image_grid_app/app/services/video_exporter.py b/src/pasteup/services/video_exporter.py similarity index 100% rename from image_grid_app/app/services/video_exporter.py rename to src/pasteup/services/video_exporter.py diff --git a/image_grid_app/app/static/css/styles.css b/src/pasteup/static/css/styles.css similarity index 100% rename from image_grid_app/app/static/css/styles.css rename to src/pasteup/static/css/styles.css diff --git a/image_grid_app/app/static/js/app.js b/src/pasteup/static/js/app.js similarity index 99% rename from image_grid_app/app/static/js/app.js rename to src/pasteup/static/js/app.js index 041c030..33e5cae 100644 --- a/image_grid_app/app/static/js/app.js +++ b/src/pasteup/static/js/app.js @@ -1,4 +1,4 @@ -const THEME_STORAGE_KEY = "image-grid-theme"; +const THEME_STORAGE_KEY = "pasteup-theme"; const GENERATION_MODES = { single: { inputLabel: "Input folder", diff --git a/image_grid_app/app/templates/index.html b/src/pasteup/templates/index.html similarity index 98% rename from image_grid_app/app/templates/index.html rename to src/pasteup/templates/index.html index 142e3c6..48e2c75 100644 --- a/image_grid_app/app/templates/index.html +++ b/src/pasteup/templates/index.html @@ -3,19 +3,19 @@
-image-grid-app :: operator console
+pasteup :: operator console
@@ -24,7 +24,7 @@Terminal session
-Single folder is best when you already know exactly which image folder you want to process.