Compare commits

..

No commits in common. "21fe61ab41b1e47e1f66e5ce3aad91cde23bbfd1" and "33670e06597d738fdfd6a7811d2c2baa872704d6" have entirely different histories.

6 changed files with 14 additions and 14 deletions

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 Jessie Wilson Copyright (c) 2023 jlw_4049
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@ -1,12 +1,12 @@
from pathlib import Path from pathlib import Path
from argparse import ArgumentParser from argparse import ArgumentParser
from frame_forge import GenerateImages from image_generator import GenerateImages
from frame_forge.exceptions import FrameForgeError from image_generator.exceptions import ImageGeneratorError
from frame_forge.utils import exit_application from image_generator.utils import exit_application
program_name = "FrameForge" program_name = "Comparison Image Generator"
__version__ = "1.0.0" __version__ = "1.1.0"
if __name__ == "__main__": if __name__ == "__main__":
@ -106,5 +106,5 @@ if __name__ == "__main__":
img_gen = img_generator.process_images() img_gen = img_generator.process_images()
if img_gen: if img_gen:
exit_application(f"Output: {img_gen}", 0) exit_application(f"Output: {img_gen}", 0)
except FrameForgeError as error: except ImageGeneratorError as error:
exit_application(error, 1) exit_application(error, 1)

@ -6,8 +6,8 @@ from numpy import linspace
from unidecode import unidecode from unidecode import unidecode
import awsmfunc import awsmfunc
import vapoursynth as vs import vapoursynth as vs
from frame_forge.exceptions import FrameForgeError from image_generator.exceptions import ImageGeneratorError
from frame_forge.utils import get_working_dir, hex_to_bgr from image_generator.utils import get_working_dir, hex_to_bgr
class GenerateImages: class GenerateImages:
@ -362,7 +362,7 @@ class GenerateImages:
frame += 1 frame += 1
b_frames[i] = frame b_frames[i] = frame
except ValueError: except ValueError:
raise FrameForgeError( raise ImageGeneratorError(
"Error! Your encode file is likely an incomplete or corrupted encode" "Error! Your encode file is likely an incomplete or corrupted encode"
) )
@ -579,7 +579,7 @@ class GenerateImages:
def load_plugins(self): def load_plugins(self):
plugin_path = get_working_dir() / "img_plugins" plugin_path = get_working_dir() / "img_plugins"
if not plugin_path.is_dir() and not plugin_path.exists(): if not plugin_path.is_dir() and not plugin_path.exists():
raise FrameForgeError("Can not detect plugin directory") raise ImageGeneratorError("Can not detect plugin directory")
else: else:
for plugin in plugin_path.glob("*.dll"): for plugin in plugin_path.glob("*.dll"):
self.core.std.LoadPlugin(Path(plugin).resolve()) self.core.std.LoadPlugin(Path(plugin).resolve())

@ -1,2 +1,2 @@
class FrameForgeError(Exception): class ImageGeneratorError(Exception):
"""Handle all exceptions thrown by image generation""" """Handle all exceptions thrown by image generation"""

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "frame-forge" name = "image-generator"
version = "1.0.0" version = "1.1.0"
description = "CLI to offload image generation to" description = "CLI to offload image generation to"
authors = ["jlw4049 <jlw_4049@hotmail.com>"] authors = ["jlw4049 <jlw_4049@hotmail.com>"]
license = "MIT" license = "MIT"