Remix.run Logo
latexr 3 hours ago

I’d be interested in trying this out as a command-line tool. It would be useful on its own and the fastest way to evaluate results.

jcynix 24 minutes ago | parent | next [-]

ImageMagick is a wonderful command line tool, IMO. You could use it to extract various information, e.g. the 5 most used colors of an image, as in

    convert $IMG -colors 5 -depth 8 -format "%c" histogram:info: | sort -nr
If needed you can easily remove colored borders first (trim subcommand with fuzz option) or sample only xy% from the image's center, or where the main subject might be.
woodrowbarlow 2 hours ago | parent | prev [-]

looks like it's a rust lib with a python wrapper. making a CLI tool should be just a few lines of code.

latexr an hour ago | parent | next [-]

Yeah, but then I’d have to be working with Python (which I don’t enjoy) and be pulling in dependencies (which I avoid) to have a custom system with moving parts (Python interpreter, library, script) (which I don’t want).

A rust CLI would make a lot of sense here. Single binary.

blipvert an hour ago | parent [-]

This sounds like a job for <ta-ta-ta-taaaa> contrib-directory-man!

2 hours ago | parent | prev [-]
[deleted]