Added more examples

This commit is contained in:
Dimitar Tonev
2023-08-08 15:19:48 +02:00
parent 6283603ec6
commit ce9784e26b
4 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -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":
+4
View File
@@ -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)
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB