Repository: stable-diffusion-webui
Issue: [Bug]: Upscale Batch Proccess TypeError
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

When trying to upscale images through batch process or batch directory using these two images:

![(Hetty) chathead](https://user-images.githubusercontent.com/65754334/211215205-760b3534-a400-4982-8000-115e1cb3193a.png)
![(Gertrude) chathead](https://user-images.githubusercontent.com/65754334/211215206-c9654813-fe78-40bf-aebb-293b48687fa4.png)

I get this error:

`TypeError: cannot unpack non-iterable int object`

I am only upscaling to 768x768 with crop to fit turned off, using Nearest upscaler at 0.1 visibility.

However, when doing it individually using single image it upscales it perfectly without a problem. ~~I have also tested this on commit f4535f6e4f001314bd155bc6e1b6908e02792b9a and batch process/batch directory works fine on these images.~~ I this might be happening due to the tiny image size (92x89, 115x152)

### Steps to reproduce the problem

1. Load images into batch process/batch from directory
2. Use these settings: upscaling to 768x768 with crop to fit turned off, using Nearest upscaler at 0.1 visibility.
3. Click generate

### What should have happened?

It should upscale the images just how single image works.

### Commit where the problem happens

8850fc23b6e8a8e210bdfe4aade81516fb5770f3

### What platforms do you use to access UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=
git pull

call webui.bat
```


### Additional information, context and logs

To create a public link, set `share=True` in `launch()`.
Error completing request
Arguments: (2, 1, <PIL.Image.Image image mode=RGB size=937x981 at 0x22B40204280>, None, 'C:\\Users\\User\\Desktop\\test', 'C:\\Users\\User\\Desktop\\test2', False, 0, 0, 0, 4, 768, 768, False, 2, 0, 0.2, True) {}
Traceback (most recent call last):
  File "E:\StableDiffusion\stable-diffusion-webui\modules\call_queue.py", line 45, in f
    res = list(func(*args, **kwargs))
  File "E:\StableDiffusion\stable-diffusion-webui\modules\call_queue.py", line 28, in f
    res = func(*args, **kwargs)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\extras.py", line 214, in run_extras
    images.save_image(image, path=outpath, basename=basename, seed=None, prompt=None, extension=opts.samples_format, info=info, short_filename=True,
  File "E:\StableDiffusion\stable-diffusion-webui\modules\images.py", line 567, in save_image
    _atomically_save_image(image, fullfn_without_extension, extension)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\images.py", line 544, in _atomically_save_image
    image_to_save.save(temp_file_path, format=image_format, quality=opts.jpeg_quality, pnginfo=pnginfo_data)
  File "E:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 2431, in save
    save_handler(self, fp, filename)
  File "E:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1377, in _save
    red, green, blue = transparency
TypeError: cannot unpack non-iterable int object