image-proof-gallery 0.1.0__py3-none-any.whl

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.
@@ -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,7 @@
1
+ image_proof_gallery/__init__.py,sha256=LXxTQaZH3UMY6nZyzXUB0WD1NjvEmqEllNdD_NFdYGs,1266
2
+ image_proof_gallery-0.1.0.dist-info/licenses/LICENSE,sha256=Vm-Lx6SkWO7gJRvMYyHjPcUoYGeEntaSqYo5UEZ2ags,1064
3
+ image_proof_gallery-0.1.0.dist-info/METADATA,sha256=cdaDB_5MjTGf9t0AabMXXFuWHkZmr9PGAWFEMuxwXiE,904
4
+ image_proof_gallery-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ image_proof_gallery-0.1.0.dist-info/entry_points.txt,sha256=8-d2IXz4u2CtgdnZ8OchBpBDCBribT0OtvGE9avEyf0,65
6
+ image_proof_gallery-0.1.0.dist-info/top_level.txt,sha256=_O0ifoIzb0ihRp_X-CQQGpOVrm-nfjiOsTID3d48nsU,20
7
+ image_proof_gallery-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ image-proof-gallery = image_proof_gallery:main
@@ -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 @@
1
+ image_proof_gallery