diff --git a/PixelArtDetector.py b/PixelArtDetector.py index 8f1dd5d..570c2af 100644 --- a/PixelArtDetector.py +++ b/PixelArtDetector.py @@ -206,7 +206,6 @@ class PixelArtDetector: 2 ) - # this is just for testing def saveImage(self, output, filename_prefix, prompt, webp_mode, save_exif, save_jpg, extra_pnginfo, compression): def map_filename(filename): prefix_len = len(os.path.basename(filename_prefix)) @@ -253,7 +252,7 @@ class PixelArtDetector: if webp_mode =="lossless": boolloss = True if webp_mode =="lossy": - boolloss = False + boolloss = False output.save(os.path.join(full_output_folder, file + ".webp"), method=6 , exif=imgexif, lossless=boolloss , quality=compression) #Save as webp - options to be determined if save_jpg =="enabled": diff --git a/README.md b/README.md index a203f55..d6e3593 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ Reduced palette: ![Example](./examples/PixelArt_00021_.webp) +![Example](./examples/Image_Reduced_256_00011_.webp) + +![Example](./examples/Image_Reduced_256_00004_.webp) + Upscaled: ![Example](./examples/Image_Upscaled_00012_.webp) diff --git a/examples/Image_Reduced_256_00004_.webp b/examples/Image_Reduced_256_00004_.webp new file mode 100644 index 0000000..df1a7d8 Binary files /dev/null and b/examples/Image_Reduced_256_00004_.webp differ diff --git a/examples/Image_Reduced_256_00011_.webp b/examples/Image_Reduced_256_00011_.webp new file mode 100644 index 0000000..9a16c31 Binary files /dev/null and b/examples/Image_Reduced_256_00011_.webp differ