Skip to content

Feat/faster thumbnail#585

Merged
sabrogden merged 3 commits intosabrogden:masterfrom
PzaThief:feat/faster-thumbnail
Dec 29, 2023
Merged

Feat/faster thumbnail#585
sabrogden merged 3 commits intosabrogden:masterfrom
PzaThief:feat/faster-thumbnail

Conversation

@PzaThief
Copy link
Copy Markdown
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
Copy Markdown
Owner

@PzaThief
Copy link
Copy Markdown
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