perf: send still stickers at 256 pixels as palette PNGs, and say in the README who the app suits #17
No reviewers
Labels
No labels
ansible
ci
dependencies
digest
docker
fix
go
javascript
major
minor
patch
php
python
released
security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dawid/nextcloud-talk-stickers!17
Loading…
Reference in a new issue
No description provided.
Delete branch "static-256"
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?
Following the Talk team's feedback: a sticker has to be sent as a file, because Talk's phone apps
show a link only as a link card (tested). So this makes the file smaller, and says in the README
who the app suits.
Still stickers at 256 pixels
as they are: Noto's 512 px, OpenMoji's 618 px.
StickerService::capped()).files (33–41 KB against 20–30 KB, measured). So a PNG becomes a palette PNG of 256 colours
with soft transparency, as Noto's own are. A JPEG stays a JPEG.
without Imagick. A shipped sticker is resized once and kept with the converted ones.
12–15 KB; the heart (5 KB) stayed as it was. Every person in the conversation loads the file,
and Nextcloud's previews are made from it.
Side by side, the originals and the new files look the same.
README: who it suits
A new section Who it suits: families, clubs and small teams. Each sender needs a little free
storage, and in conversations of hundreds of people every sticker costs what an attachment costs.
Tests
SentSizeTest: a 512 px PNG and JPEG come out at 256 px, in their own format and smaller; asmall image or a non-image is left alone. It runs with Imagick, in Nextcloud 35's image, and is
skipped in CI's PHP image.
composer cs:check, markdownlint.Tests of CI / php (dev-master): passed
21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)
Of
64e7645910, the run, updated by every run.Tests of CI / php (dev-stable32): passed
21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)
Of
64e7645910, the run, updated by every run.Tests of CI / php (dev-stable33): passed
21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)
Of
64e7645910, the run, updated by every run.Tests of CI / php (dev-stable34): passed
21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)
Of
64e7645910, the run, updated by every run.Tests of CI / php (dev-stable35): passed
21 passed, 0 failed, 5 skipped (26 tests, 0.0 s)
Of
64e7645910, the run, updated by every run.