image.py — langchain Source File
Architecture documentation for image.py, a python file in the langchain codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 2b750ba0_fb85_98ff_ea5e_d1f0d0d38414["image.py"] 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] 2b750ba0_fb85_98ff_ea5e_d1f0d0d38414 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 style 2b750ba0_fb85_98ff_ea5e_d1f0d0d38414 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""Utilities for image processing."""
from typing import Any
def __getattr__(name: str) -> Any:
if name in {"encode_image", "image_to_data_url"}:
msg = (
f"'{name}' has been removed for security reasons.\n\n"
f"Usage of this utility in environments with user-input paths is a "
f"security vulnerability. Out of an abundance of caution, the utility "
f"has been removed to prevent possible misuse."
)
raise ValueError(msg)
raise AttributeError(name)
Domain
Subdomains
Functions
Dependencies
- typing
Source
Frequently Asked Questions
What does image.py do?
image.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What functions are defined in image.py?
image.py defines 1 function(s): __getattr__.
What does image.py depend on?
image.py imports 1 module(s): typing.
Where is image.py in the architecture?
image.py is located at libs/core/langchain_core/utils/image.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/core/langchain_core/utils).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free