helpers/images.py.dox.md
images.py helper module.images.py because this directory is intentionally flat.images.py owns the runtime implementation.images.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.prepare_content(content: Any) -> Anyis_local_ref(url: str) -> boolto_data_url(url: str) -> strresolve_ref(url: str) -> Pathcompress_image(image_data: bytes, max_pixels: int=..., quality: int=...) -> bytes: Compress an image by scaling it down and converting to JPEG with quality settings.PIL, base64, io, math, mimetypes, pathlib, typing, urllib.parse.url.lower, lowered.startswith, resolve_ref, base64.b64encode.decode, Path.expanduser, raw_path.startswith, FileNotFoundError, io.BytesIO, img.save, output.getvalue, prepare_content, url.startswith, mimetypes.guess_type, ValueError, url.lower.startswith, unquote, seen.add, math.sqrt, img.resize, img.convert.tests/test_browser_agent_regressions.pytests/test_image_get_security.pytests/test_vision_load_image_refs.pyNo child DOX files.