ws-tex: image/xbm + image/xpm (read + write)

XBM: X11 / X10 arrays, hex / decimal / octal, hotspot; xbmtopbm reference (netpbm, ImageMagick, Pillow files).
XPM: XPM 3 + XPM 2, c / g / g4 / m keys, hex depths, None, CSS / X11 names + grey0..100 (image/xpm/Names);
ImageMagick reference.
This commit is contained in:
4DBug committed 2026-10-31 14:58:20 -05:00
1 parent 403a4d6f31
commit ef460955d4
10 files changed
+707

No files matched your search

+24
View File
@@ -218,6 +218,30 @@ local list: { Entry } = {
return require("@formats/image/webp")
end,
},
{
name = "xbm",
category = "image",
path = "image/xbm",
extensions = { "xbm", "bm" },
mime = { "image/x-xbitmap", "image/x-xbm" },
deps = { "core/Err", "core/Bytes", "core/Sniff", "Types" },
caps = { decode = true, encode = true, depths = { 1 } },
load = function()
return require("@formats/image/xbm")
end,
},
{
name = "xpm",
category = "image",
path = "image/xpm",
extensions = { "xpm", "pm" },
mime = { "image/x-xpixmap", "image/x-xpm" },
deps = { "core/Err", "core/Bytes", "core/Sniff", "Types" },
caps = { decode = true, encode = true, alpha = true, palette = true, depths = { 8 } },
load = function()
return require("@formats/image/xpm")
end,
},
{
name = "aac",
category = "audio",