Comments (17)
If I understand correctly you want to keep the edges crispy?
Why you not just resize it with PS / GIMP by Nearest Neighbor?
from waifu2x.
@nodegin that would make the image pixellated :)
from waifu2x.
This is also an issue for me as well. It was super fun converting old game assets that I had lost files over, but the sadness of making them transparent was :(
from waifu2x.
I think waifu2x is not good at pixelated image scaling...
Maybe you would want to try 2xSAI?
from waifu2x.
I can confirm this, it doesn't have to do with pixellation in the original.
In the first example, the edges are blurred where they are flanked by transparent areas. In the second example I added a white background prior to upscaling, resulting in perfectly clean edges.
from waifu2x.
Not sure if this is worth mentioning, but earlier versions of waifu2x-caffee could produce transparent images with sharp edges.
from waifu2x.
@internetakias Do you know an exact version where it was working? If we can find the commit that broke it, we should be able to solve it easily.
from waifu2x.
@PwnicornDev
1.0.5 is the last version that produced scales with proper transparency.
from waifu2x.
Hey @nagadomi. You haven't replied to this issue yet, so I want to ask you what you think of this and if there's a way to fix it.
from waifu2x.
The latest version slightly improves for this issue but still not enough.
I think this issue is difficult to solve in various cases. (semi transparent or fully transparent, for white background color or black background color)
Sorry, I am pending it.
from waifu2x.
I understand. Thanks for replying and keep up the good work!
from waifu2x.
I fixed this issue. try http://waifu2x.udp.jp/
from waifu2x.
Sory, reopen issue...
Original image with alpha-channel:
Upscaled image (x2, without denoise):
Transparent space become opaque, which increased the size.
The game has a lot of images, and this problem increases its size by 50-60Gb = /
from waifu2x.
How is waifu2x supposed to do?
I think it is problem of an original image that has unreasonably large transparent area.
EDIT: I understood what you said. I will fix it soon.
from waifu2x.
Unfortunately, it is a feature of the original game, and such areas should be.
Under the program - it does not have to process the field with 100% transparency. Now she treats them as a whole, which significantly increases the processing time:
./images/./Event01/01-00/01-00-A01/01-00-A01-015.PNG: 2.3339378833771 sec
./images/./Event01/01-00/01-00-A01/01-00-A01-015SET.A.PNG: 4.6067349910736 sec
./images/./Event01/01-00/01-00-A01/01-00-A01-015SET.B.PNG: 4.6801130771637 sec
./images/./Event01/01-00/01-00-A01/01-00-A01-015SET.C.PNG: 4.6291019916534 sec
(The first - the background, the rest - imposed on the background image with transparency, similar to the above).
from waifu2x.
I fixed that file size problem.
before fix: 740888 bytes
after fix: 37333 bytes
And, if image has alpha channel, 2x process time is required. alpha channel upscaling with waifu2x improves the upscaling result in some case.
see: https://twitter.com/mhhpnvu/status/673488043735539712
from waifu2x.
Yes, the local version has updated and checked.
Thanks for the quick response.
from waifu2x.
Related Issues (20)
- Image getting "overexposed" if it has transparent corners HOT 2
- Web in Galician HOT 1
- Jpeg noise removal not working HOT 7
- I want to use the version before the update HOT 3
- What are the best settings to upscale a 480p cartoon show to 1080p?
- Add homebrew support HOT 1
- Filename gets truncated if it has a dot in it HOT 1
- Different on Noise Reduction in cloud version after update 02.02 HOT 2
- [unlimited:waifu2x] Error: TypeError: Cannot read properties of null (reading 'run') HOT 9
- Feature request HOT 1
- Use waifu2x Docker image without Nvidia HOT 18
- Will the Waifu2x browser plugin be created?
- Can't query my GPU ID correctly HOT 6
- use nvidia gpu on https://unlimited.waifu2x.net/ on win 11 HOT 2
- Program closes after I start upscaling HOT 2
- Can I get portable version of project? HOT 1
- Persist 'optimize looped video'-option
- May I ask the author, can this model improve the resolution of real person images? HOT 2
- unlimited.waifu2x : using 4x upscale + TTA enabled (2 or 4) results in "Error: 75952160" HOT 1
- Waifu2x (aumenta resolución de imagen)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waifu2x.