trlcdoc.converters.image_processing =================================== .. py:module:: trlcdoc.converters.image_processing .. autoapi-nested-parse:: Image file procesing tools. Functions --------- .. autoapisummary:: trlcdoc.converters.image_processing.convert_plantuml_to_image trlcdoc.converters.image_processing.locate_file Module Contents --------------- .. py:function:: convert_plantuml_to_image(plantuml_file: str, dest_dir: str, directories: List[str], image_format: str = 'svg') -> Optional[pathlib.Path] Convert PlantUML diagram to an image file. :param plantuml_file: Path or name of the PlantUML source file. :type plantuml_file: str :param dest_dir: Directory where the generated image will be written. :type dest_dir: str :param directories: Directories to search when plantuml_file is not an absolute path. :type directories: List[str] :param image_format: Output image format passed to PlantUML (e.g. "svg" or "png"). Defaults to "svg". :type image_format: str :returns: Path to the generated image file, or None if the source file was not found. :rtype: Optional[Path] .. py:function:: locate_file(file_path: str, directories: List[str]) -> Optional[str] Locate a file by searching through the sources list if it cannot be accessed by the given file_path. :param file_path: The name of the file to locate. :type file_path: str :param directories: A list of directories to search for the file. :type directories: List[str] :returns: The full path to the located file if found, otherwise None. :rtype: str