Repository navigation
Drawing: a Stickers tool with the Memos fork's Kid Pix stickers - #331
Merged
Merged
Conversation
The stickers come from the fork's /kidpix/sticker-png/ (PNG pictures of its Kid Pix stickers): the list and each category fetched once over Wi-Fi and kept. A tap puts the picked sticker down as a picture (undo, lasso). Pictures with a clear ground are now blended onto the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HqNYrwobY8un97LQ2jriQC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HqNYrwobY8un97LQ2jriQC
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
…ies, 500 stickers each A server sending more than it may (the list over 1 MB, a picture over 512 kB) has its download stopped and nothing of it kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HqNYrwobY8un97LQ2jriQC
Owner
Author
|
Hardening after a security review: the sticker list's download is capped at 1 MB and each picture at 512 kB (the download stops and nothing of it is kept), and a list is read for at most 100 categories of 500 stickers. Tests added; full suite 0 failed. Generated by Claude Code |
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
…ut down The fork now serves its Kid Pix stickers as gzipped SVG (/kidpix/sticker-svg/<slug>/<n>.svgz). GZreader unzips each (capped at 4 MB), keeps it as .svg and draws it with KOReader's SVG renderer: for the picker, and for a sticker put down at its size (2 px a unit, at most 1600 a side), kept in the drawing as a PNG. Gzip.inflate takes a limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HqNYrwobY8un97LQ2jriQC
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 21, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 21, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 21, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 21, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 21, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 21, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 21, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 22, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 23, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 23, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 23, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 23, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 23, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
github-actions Bot
added a commit
that referenced
this pull request
Nov 23, 2026
# Conflicts: # plugins/gzreader.koplugin/gzreader_changelog.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The drawing screen gets a Stickers tool in its side strip, under Text. It holds the Memos fork's Kid Pix stickers: 935 of them in 42 categories.
Needs memos fork PR 9retirement6irk/memos#33, which serves the stickers as SVG pictures (gzipped
.svgz), because a Kindle can't read their Flash movies. Without it, the tool says your Memos server has no stickers.What changes for the user
/kidpix/sticker-svg/. They're public files, fetched without sign-in, gzipped SVG.cache/gzreader-stickers/as.svg, so a category you've opened works offline.Files
gzreader_stickers.lua(list, fetching, unzipping, cache, sizes, drawing from SVG),gzreader_stickergrid.lua(the picker),icons/draw/sticker.svg.gzreader_drawscreen.lua(the tool, its panel,stampSticker,blitPicture),gzreader_sketch.lua(the tool's taps) andgzreader_gzip.lua(inflatetakes a size limit).mock_memos.py --stickersserves two small categories of gzipped SVGs, and there's a newemulator/sticker_tour.lua.gzreader_drawscreen.luaare kept away from Colour Kindles: ten pen colours, coloured highlighters, a shader, coloured words in notes #321's. A trial merge with Colour Kindles: ten pen colours, coloured highlighters, a shader, coloured words in notes #321 only clashes in the changelog.What I tested
sketch_test.lua:run_tests.lua, against the mock:<category>/<n>.svgzare left out;stampStickerputs it down centred at Medium and redraws only that part;tools/gzreader/tests/run.sh: 0 suites failed.Try on a device
https://<your memos>/kidpix/sticker-svg/index.jsonshould load.If something fails, send
GZreader/app/gzreader.log: it has thestickers:anddrawing: a stickerlines.https://claude.ai/code/session_01HqNYrwobY8un97LQ2jriQC
Generated by Claude Code