image-proof-gallery 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- image_proof_gallery-0.1.0/LICENSE +21 -0
- image_proof_gallery-0.1.0/PKG-INFO +19 -0
- image_proof_gallery-0.1.0/README.md +7 -0
- image_proof_gallery-0.1.0/pyproject.toml +18 -0
- image_proof_gallery-0.1.0/setup.cfg +4 -0
- image_proof_gallery-0.1.0/src/image_proof_gallery/__init__.py +25 -0
- image_proof_gallery-0.1.0/src/image_proof_gallery.egg-info/PKG-INFO +19 -0
- image_proof_gallery-0.1.0/src/image_proof_gallery.egg-info/SOURCES.txt +9 -0
- image_proof_gallery-0.1.0/src/image_proof_gallery.egg-info/dependency_links.txt +1 -0
- image_proof_gallery-0.1.0/src/image_proof_gallery.egg-info/entry_points.txt +2 -0
- image_proof_gallery-0.1.0/src/image_proof_gallery.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 js-upup
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: image-proof-gallery
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Create a self-contained offline HTML proof sheet from local image files.
|
|
5
|
+
Author: js-upup
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Batch editing workflow, https://picvane.com/image/batch-image-editor
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# image-proof-gallery
|
|
14
|
+
|
|
15
|
+
Create a portable, offline HTML contact sheet from selected PNG, JPEG, GIF or WebP files. Image bytes are embedded so the proof can travel independently of the original folder.
|
|
16
|
+
|
|
17
|
+
Run `image-proof-gallery proof.html edit1.png edit2.webp`. The output must be a new file. Embedded images can make large galleries memory-intensive.
|
|
18
|
+
|
|
19
|
+
Use the [PicVane batch image editor](https://picvane.com/image/batch-image-editor) to apply a shared editing prompt to up to ten photos, then review the exported files together.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# image-proof-gallery
|
|
2
|
+
|
|
3
|
+
Create a portable, offline HTML contact sheet from selected PNG, JPEG, GIF or WebP files. Image bytes are embedded so the proof can travel independently of the original folder.
|
|
4
|
+
|
|
5
|
+
Run `image-proof-gallery proof.html edit1.png edit2.webp`. The output must be a new file. Embedded images can make large galleries memory-intensive.
|
|
6
|
+
|
|
7
|
+
Use the [PicVane batch image editor](https://picvane.com/image/batch-image-editor) to apply a shared editing prompt to up to ten photos, then review the exported files together.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "image-proof-gallery"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Create a self-contained offline HTML proof sheet from local image files."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
authors = [{name = "js-upup"}]
|
|
13
|
+
|
|
14
|
+
[project.scripts]
|
|
15
|
+
image-proof-gallery = "image_proof_gallery:main"
|
|
16
|
+
|
|
17
|
+
[project.urls]
|
|
18
|
+
"Batch editing workflow" = "https://picvane.com/image/batch-image-editor"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import base64
|
|
3
|
+
import html
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
TYPES = {".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg",
|
|
7
|
+
".webp": "image/webp", ".gif": "image/gif"}
|
|
8
|
+
|
|
9
|
+
def main():
|
|
10
|
+
parser = argparse.ArgumentParser(description="Create an offline image proof sheet")
|
|
11
|
+
parser.add_argument("output", type=Path)
|
|
12
|
+
parser.add_argument("images", nargs="+", type=Path)
|
|
13
|
+
args = parser.parse_args()
|
|
14
|
+
figures = []
|
|
15
|
+
for path in args.images:
|
|
16
|
+
mime = TYPES.get(path.suffix.lower())
|
|
17
|
+
if not mime:
|
|
18
|
+
parser.error(f"Unsupported image extension: {path.name}")
|
|
19
|
+
image = base64.b64encode(path.read_bytes()).decode("ascii")
|
|
20
|
+
label = html.escape(path.name)
|
|
21
|
+
figures.append(f'<figure><img alt="{label}" src="data:{mime};base64,{image}"><figcaption>{label}</figcaption></figure>')
|
|
22
|
+
with args.output.open("x", encoding="utf-8") as output:
|
|
23
|
+
output.write('<!doctype html><meta charset="utf-8"><title>Image proof sheet</title>'
|
|
24
|
+
'<style>main{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}img{max-width:100%}figcaption{overflow-wrap:anywhere}</style>'
|
|
25
|
+
'<h1>Image proof sheet</h1><main>' + "".join(figures) + '</main>')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: image-proof-gallery
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Create a self-contained offline HTML proof sheet from local image files.
|
|
5
|
+
Author: js-upup
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Batch editing workflow, https://picvane.com/image/batch-image-editor
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# image-proof-gallery
|
|
14
|
+
|
|
15
|
+
Create a portable, offline HTML contact sheet from selected PNG, JPEG, GIF or WebP files. Image bytes are embedded so the proof can travel independently of the original folder.
|
|
16
|
+
|
|
17
|
+
Run `image-proof-gallery proof.html edit1.png edit2.webp`. The output must be a new file. Embedded images can make large galleries memory-intensive.
|
|
18
|
+
|
|
19
|
+
Use the [PicVane batch image editor](https://picvane.com/image/batch-image-editor) to apply a shared editing prompt to up to ten photos, then review the exported files together.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/image_proof_gallery/__init__.py
|
|
5
|
+
src/image_proof_gallery.egg-info/PKG-INFO
|
|
6
|
+
src/image_proof_gallery.egg-info/SOURCES.txt
|
|
7
|
+
src/image_proof_gallery.egg-info/dependency_links.txt
|
|
8
|
+
src/image_proof_gallery.egg-info/entry_points.txt
|
|
9
|
+
src/image_proof_gallery.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
image_proof_gallery
|