imxieyi / waifu2x-ios

iOS Core ML implementation of waifu2x
MIT License
538 stars 58 forks source link

Feature requests: antialiasing & WebP #28

Closed ZarBluestar closed 2 years ago

ZarBluestar commented 3 years ago

Hello. Fantastic app with no complaints on performance. There are two features that would be nice to see (I wasn’t sure if I should open two separate requests).

  1. WebP output file support
  2. Anti-aliasing mode. That is, upscale to 2x, 4x, or 8x before resizing down to the original dimensions for the output

Thank you and please excuse me if this is the wrong section for feature requests

imxieyi commented 3 years ago

WebP output file support

Do you have any special needs that existing PNG/JPEG/HEIF cannot meet?

Anti-aliasing mode. That is, upscale to 2x, 4x, or 8x before resizing down to the original dimensions for the output

What's the use case of this?

ZarBluestar commented 3 years ago

I use WebP for sticker packs in Telegram. The support for WebP output files would significantly speed up my workflow.

Anti-aliasing is a technique used in video games for improved visual fidelity by rendering 2x-8x resolution, but drawing the frame at the smaller resolution in order to reduce jagged edges. Using this approach when paired with the neural network upscaling may see further improvements in results when users do not wish to alter the original dimensions of the images due to file size constraints when compared to just the denotes & no magnify option. Theoretically could improve output image quality in those use cases.

Both of these requests are quality of life improvements instead of necessities. My specific intentions are for use with 2D illustrations on the CUNet model.

imxieyi commented 2 years ago

Both features are available in the iOS version 5.0 now. Feel free to update. They will come later to macOS after Monterey is released.