Ready-made image designer#4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A fully ready-made image designer, it is possible to download as a picture in .png format, if further editing is needed, then in .drawio format.
images_path (Union[str, Path]): Path to the folder containing image files (PNG, JPG, JPEG).
border_size (Union[int, Tuple[int, int, int, int], None], optional):
Border size around each image. Can be:
- int: uniform border on all sides,
- tuple: (left, top, right, bottom),
- None: no border.
Defaults to 10.
border_fill (Union[str, Tuple[int, int, int]], optional):
Color of the border. Can be a string color name (e.g., "black") or an RGB tuple. Defaults to "black".
signature (bool, optional): Whether to add a label/numbering on each image. Defaults to True.
signature_label (Union[str, Tuple[str], LabelMode, None], optional):
Labeling mode. Can be:
- str: mode name ("latin_lower", "roman", etc.),
- tuple of strings: custom labels per image,
- LabelMode enum,
- None: no labels.
Defaults to "latin_lower".
signature_label_color (str, optional): Color of the label text. Defaults to "white".
signature_pos (SignaturePosition, optional): Position of the label on the image (top-left, bottom-right, etc.). Defaults to SignaturePosition.TOP_LEFT.
signature_size (Tuple[int, int], optional): Size of the label box (width, height). Defaults to (40, 40).
signature_color (str, optional): Background color of the label box. Defaults to "black".
signature_font_size (int, optional): Font size for labels annotations. Defaults to 24.
draw_axis (bool, optional): Whether to draw X and Y axes on each image. Defaults to False.
axis_labels (Union[Tuple[str, str], Tuple[Tuple[str], Tuple[str]]], optional):
Labels for X and Y axes. Can be:
- Tuple of two strings: global labels,
- Tuple of two tuples: per-image labels.
Defaults to ("X", "Y").
axis_offset (int, optional): Distance in pixels from the image edge to the axis origin. Defaults to 20.
axis_length (int, optional): Length of the drawn axes in pixels. Defaults to 60.
axis_font_size (int, optional): Font size for axis annotations. Defaults to 24.