waifu2x icon indicating copy to clipboard operation
waifu2x copied to clipboard

Transparent image with black pixels turned into completely black image

Open Swanty opened this issue 4 years ago • 3 comments

Steps to reproduce:

  1. Go to photopea.com
  2. Create new image 500x500 with transparent background
  3. Place black rectangle in center
  4. Export as PNG
  5. Upload exported PNG to waifu2x
  6. Download
  7. Whole image is pure black :cry:

Swanty avatar Mar 12 '20 11:03 Swanty

Test images that turn completely black

(created with photopea.com) New Project (7)

(found on net) 1200px-Converse_logo svg

Swanty avatar Mar 12 '20 11:03 Swanty

If I convert the Color Type of that converse image to Grayscale then waifu2x works okay. Original image Coor Type is RGB and that gets turned into pure black

Swanty avatar Mar 12 '20 12:03 Swanty

The above test image is Bilevel color with alpha channel. I hadn't thought about this kind of format.

nagadomi avatar Mar 16 '20 15:03 nagadomi