Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

縮小アルゴリズムをよりよくする? #10

Open
tamaina opened this issue Aug 8, 2023 · 9 comments
Open

縮小アルゴリズムをよりよくする? #10

tamaina opened this issue Aug 8, 2023 · 9 comments

Comments

@tamaina
Copy link

tamaina commented Aug 8, 2023

結果の画質が微妙かもしれない

BilinearではなくPixel Mixingを使うとか(私は書けないけど)

@tamaina
Copy link
Author

tamaina commented Aug 8, 2023

わざわざJS/Canvasでやる必要あるんだろうか…

https://docs.rs/image/latest/image/imageops/fn.resize.html のlancoz3を使えば手っ取り早そう

@tamaina
Copy link
Author

tamaina commented Aug 9, 2023

@tamaina
Copy link
Author

tamaina commented Aug 15, 2023

hermiteは高速なだけでbilinearより見た目が良くない
(シングルコアだと高速だけど)

@tamaina
Copy link
Author

tamaina commented Aug 15, 2023

image

@tamaina
Copy link
Author

tamaina commented Aug 15, 2023

P1150540-Enhanced-NR-2

元の写真(のようなもの)

@tamaina
Copy link
Author

tamaina commented Aug 15, 2023

image

これわざわざbilinearとか使う必要あるのかしら

@tamaina
Copy link
Author

tamaina commented Aug 15, 2023

(アルゴリズムどうこうじゃなくてアンシャープマスクが必要なんだろうなと思っている)

@tamaina
Copy link
Author

tamaina commented Aug 15, 2023

https://github.com/misskey-dev/browser-image-resizer/releases/tag/v2.2.1-misskey.9

普通にcanvasのdrawImageを使えば良さそうなのでそうした

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant