You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, people making screenshots typically post-process them in imagemagick.
i fielded a question about adding imagemagick to the base image as follows:
IMHO just making screenshots is not sufficient call for installing Magick, which is pretty big (iirc?) and has lots of dependenc ies for dealing with all possible graphics formats. I would either:
export a trivial format like PGM direct from Lua
if PNG format is preferred, add a dedicated function in C that uses libpng (and probably upsamples)
The required form of upsampling is trivial (no interp), for example to 3x upscale:
allocate temp line buffer of 128x3 levels
for each line in source buffer:
for each column, copy the source level to the next 3 positions in the line buffer
write the whole tmp line buffer to output file 3 times
To put it kind of bluntly, I don't like burning 2.5% of every CM3 users system shortage to save us writing ~10 lines of code.
currently, people making screenshots typically post-process them in imagemagick.
i fielded a question about adding imagemagick to the base image as follows:
so in other words, maybe it would be nice to update the
screen_export_png
function here:https://github.com/monome/norns/blob/main/matron/src/hardware/screen.c#L399
to perform upsampling and inversion (on a temporary surface.)
The text was updated successfully, but these errors were encountered: