INNER CODE UNIT · Python

width

zhulinyv/Semi-Auto-NovelAI-to-Pixiv · src/batch_mosaic.py:92

                    width=int(10 * 0.35),
                )
                y += int(box[3] * 0.15)
        image.save(img_path)
        revert_img_info(None, img_path, image.info)


# -------------------- #


def main(file_path, input_img, open_button, mode):
    if open_button:
        file_list = file_namel2pathl(file_path2list(file_path), file_path)
    else:
        input_img.save("./output/_temp.png")
        file_list = ["./output/_temp.png"]
    for file in file_list:
        logger.info(f"正在处理 {file_path2name(file)}...")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…