Use pixelated (up)scaling for custom emoji #270
No reviewers
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#270
Loading…
Reference in a new issue
No description provided.
Delete branch "cnx/akkoma-fe:pixemoji"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Smaller custom emoji are usually sprites which looks blurry with smooth upscaling. Before/after screenshots attached.
apologies, i totally missed this
i'll have to test the upscaling with non-sprite images and see if it behaves normally, i'll get back to you
image-rendering: pixelated
only doing pixelated upscaling but smooth downscaling does already mostly avoid impacting non-pixel emoji since at normal display in-line or as a reaction they are small enough to not be (noticeably) upscaled anywayHowever, if MFM is involved this does unfortunately sometimes lead to noticeable degredation :\
Compare default upscaling:
![mfm-x4_default-scale.png.webp](/AkkomaGang/akkoma-fe/attachments/b14cc127-3b9a-454f-87c9-ee5cd1045668)
to pixelated upscaling:
![mfm-x4_pixelated.png.webp](/AkkomaGang/akkoma-fe/attachments/a86a70f6-0bea-4b8a-aad0-700f75a384c9)
(In an ideal world emoji would come with metadata specifying how to up/downscale them)
A hackish way to get it right most of the time, would be to only apply
pixelated
if no MFM upscaling is involved — but this leads to incosistencies with the same low-res pixelart emoji displaying very differently depending on MFM, plus even then there’ll probably still be some (presumably rare’ish) edge cases where it still looks bad even without MFMWell, my opinion has no authority here, but imho given these complication and
image-rendering
settings depending on the frontend anyway, i’m afraid the best "fix" is to instead pre-upscale pixelart emoji by some integer factor before uploading unfortunatelyView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.