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

Feat/faster thumbnail #585

Merged
merged 3 commits into from
Dec 29, 2023
Merged

Conversation

PzaThief
Copy link
Contributor

Solve #581 partially (but not small effect).

before fix it, thumbnail uses interpolation mode as HighQualityBicubic that expensive than NearestNeighbor.
Therefore resizing of big image such as 6720x4480, 7680x4320 takes about 200ms each.
If changed the interpolation NearestNeighbor it just takes 50ms(4x faster).
Since thumbnails are generally not critical to quality, I set the default value of 'Fast Thumbnail Mode' to true to use the Nearest Neighbor mode.

Built and tested manually using Visual Studio.

@sabrogden sabrogden merged commit 1936cfb into sabrogden:master Dec 29, 2023
@sabrogden
Copy link
Owner

https://github.com/sabrogden/Ditto/releases/tag/nightly

not sure on this, it's pretty low quality

@PzaThief
Copy link
Contributor Author

https://github.com/sabrogden/Ditto/releases/tag/nightly

not sure on this, it's pretty low quality

Thank you! I agreed with your opinion, so I tested again and found a little point to improve.
#586 has the improvement and hope it'll merge someday.
Sorry for bother you to make update in short time.

@PzaThief PzaThief deleted the feat/faster-thumbnail branch December 30, 2023 03:52
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

Successfully merging this pull request may close these issues.

2 participants