nagadomi / waifu2x

Image Super-Resolution for Anime-Style Art
http://waifu2x.udp.jp/
MIT License
27.33k stars 2.71k forks source link

black image bug after download #409

Open anazelo21 opened 2 years ago

anazelo21 commented 2 years ago

since yesterday, all the images I download after inserting texts from the addtext application come completely black Screenshot_2021-11-22-17-42-19-976_com android chrome

nagadomi commented 2 years ago

What is the format of the input data? A few days ago, I blocked GhostScript for security reasons. Some text format data such as PostScript can no longer be handled.

anazelo21 commented 2 years ago

manipulados

I did it on my cell phone, through the Add Text application, I formed jpg to PNG. Screenshot_2021-11-23-14-06-52-176_com android vending

nagadomi commented 2 years ago

Could you upload a sample image file here that produces a black image as a result?

anazelo21 commented 2 years ago

every image I edit in add text has the same result AddText_11-22-12 20 48

nagadomi commented 2 years ago

It seems that the color profile (image metadata) is causing the problem. Removing the icc profile works. I will try to find out what the problem is, but I don't know if I can fix it.

anazelo21 commented 2 years ago

the problem only happens when I go through the app. I passed the image through the site without editing and it worked

nagadomi commented 2 years ago

Then maybe that app is adding a color profile to the image.

anazelo21 commented 2 years ago

would I be able to solve this?

nagadomi commented 2 years ago

A workaround is to remove the metadata from the image. I don't know what software is available. (I used imagemagick on Linux to remove it convert -strip input_image.png input_imge.png) If waifu2x site can handle it, I will fix it, but I haven't looked into it yet.

anazelo21 commented 2 years ago

I will try. Thank you so much!