[05:46:05] Anyone got any leads on how to do palette swaps for pixel art uploaded to a mediawiki project? Like could Scribunto handle this? [05:47:12] taking an uploaded image and changing the colors in the image? no. [05:48:27] Yeah that's what I'm after. So a lua module is no good if I'm understanding you [05:48:35] correct [05:48:50] you can consider looking into css filter [05:48:55] which might get there [05:48:55] there are limited CSS capabilities for manipulating an image's colors (e.g. making it grayscale or uniformly rotating the colors in it), but these apply to the entire image [05:49:08] oh, Izno beat me with less words 😛 [05:49:18] :) [05:49:36] So no clever way of only changing certain colors that way? Darn that would've been nice and clean [05:49:51] MediaWiki is powerful, but not that powerful [05:51:13] Okay, well this is embarassing but I'll reveal it now. I did actually come up with a solution, but it involved turning the base image into a table, each pixel is a cell, and then changing the colors of the cells. [05:51:22] Performance issues.... allegedly [05:52:07] I mean, besides that, that doesn't turn it back into an image [05:52:14] :) [05:52:49] Alright, thanks for the help guys, nice to know where the software's limitations are [06:01:06] Once upon a time, there was someone who did have a patch to scribunto to let it generate images [06:01:11] but it never got merged [06:02:46] there's also been some interest in being able to directly edit SVGs, but IDR why that never went anywhere [06:03:03] our SVG stack is anger and misery [06:03:11] oh that might just be me right now [06:03:15] sounds about right [06:03:21] lmao [06:03:51] removed something from Common.css and then realized I missed a whole heck of a lot of fixing [06:04:13] oof [06:04:24] and then there's a passthrough template that's just like "no, no I will not provide access to all the parameters" [06:04:37] of course [06:04:39] CSS filters are actually shockingly powerful, especially if you use an svg filter as the value [06:04:39] * Izno kicks enwiki [06:05:29] Brighty: That said, you could definitely do this with a custom extension, although that might be a lot of work [06:06:26] Dinoguy10003726[: really wouldn't be that hard. I think brion had a demo of that using SVGEdit. I think ultimately there was kind of a lack of interest [06:06:57] compile all the things to wasm [06:07:14] Brighty: you might also be able to abuse mediawiki's multilanguage support to do this, make different colours for diff languages [06:09:25] Dinoguy10003726[: I was actually working on a demo thing of (interactive) svgs generated by scribunto, but its not really ready yet and just a proof of concept [06:10:48] But anyways, i bet you could use css filter to change pallete using a svg filter that uses https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComponentTransfer [06:11:43] 👀 [06:12:11] stop encouraging terrible things bawolff [06:13:09] Izno: never [06:13:20] D: [06:22:12] Izno: but bawolff loves to develop stuff that they will have to support for years to come! [06:22:22] not anymore! [06:22:36] or am I think of the other b-name [06:29:30] p858snake: As a security engineer, if people stop doing terrible thing, I'd be out of job! [06:29:59] * Izno flicks some Rust at bawolff [06:31:47] be careful, that is a known way to attract lego [06:31:56] and enterprisey [06:32:36] you called [06:32:38] ? [06:32:54] it was snake, I swear! [06:33:41] I was re-reading https://meta.wikimedia.org/wiki/Wikimedia_Rust_developers_user_group just now [06:33:51] "Meetings: Tenatively at the end of February, please comment at..." [06:34:03] somehow procrastinated enough that it's no longer out of date [06:34:12] lmao [06:34:14] lol [06:35:16] but I was going to start writing a Rust-at-Wikimedia year in review shortly [06:36:28] http://magnusmanske.de/wordpress/?p=679 was pretty neat [06:36:30] You can post to r/rust and get so many views [06:36:39] "After the kubernetes move severely limited tool resources, I have moved (almost) all PHP services to Rust." [06:38:20] magnus casually rewrites 10k lines of PHP [06:46:17] bawolff: I'll look at this, thanks, interesting stuff at the very least [13:24:34] hello [13:24:51] is there a way to quickly revert all of a certain users actions? [13:25:00] had a guy move all the pages on my wiki [13:47:23] https://m.mediawiki.org/wiki/Manual:RollbackEdits.php [13:47:27] arcko: ^ [14:22:06] thanks, RhinosF1