[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback)



On Tue, 28 Mar 2023 gene heskett wrote:
On 3/28/23 06:53, davidson wrote:
On Mon, 27 Mar 2023 gene heskett wrote:
On 3/27/23 09:18, Nicolas George wrote:
Dan Ritter (12023-03-27):
[Dan suggests googling ANSI color escapes]
changing 33 to 30 will get you black. ANSI color escapes are on
the web in many places.
[Nicolas touts the benefits of readable terminal colors]
Also, decent terminal emulators let users tweak the colors, and making
sure all main colors are readable on the default background would
probably be a good use of that ability.
[Gene curses poorly contrasting colors in documentary illustrations]
This is a sore point with something I'm fighting with. Chinese electronics makers are in the habit of publishing .pngs of their products, with the most valuable info one needs to properly hook it up, in a putrid yellow on a white background.
[Gene contemplates an alchemical solution]
Would it be practical to put a filter in the path cups put things headed to a printer thru, to change just that esc sequence to make those boxes and their text content into something more readable.

For an example of such an unhelpful document, find a copy of "MKS-Robin-Nano-V3.X-main.zip", unpack it, cd to Image-V3, and look at "MKS_Robin_Nano_V3_PIN.png" on-screen or better yet print it.

Like this?

  https://raw.githubusercontent.com/makerbase-mks/MKS-Robin-Nano-V3.X/main/hardware/Image-V3/MKS_Robin_Nano_V3_PIN.png

I can't help you with the printing.

I installed xli, works great, and is fast, but apparently has no output redirection ability. I made several 0 length files trying.

The netpbm package contains, among other things, routines "pngtopnm"
and "pnmtopng" which do produce standard output that can be redirected
to a file:

 $ pngtopnm -gamma 0.45 RobinNano.png | pnmtopng -gamma 0.45 > RobinNano_darker.png

Took a while, and a few detours, for me to remember this. But I
believe it will write you a more legible png.

gimp could probably do it, but I get lost in endless menu's.

If I wrote an essay about the undignified interfaces I have no time
for, I would call it "Of Mice and Menus".

imagemagick won't run from the cli, from the pulldowns, its file
selector is not controllable to navigate to the file.  Trying to
wade thru home/src/MKS_nano_v3_main/hardware/Images-V3/ to that file
was a hopeless waste of time.  Any attempt to scroll thru the
presented very busy file list with the mouse wheel was always
interpreted as load the first file.  IOW its file selector is busted
afaiac.

Who needs an essay? You see what I mean already.

libreoffice loaded it, replaced the putrid yellow with black, and
then printed me a copy on photo paper, a copy I can actually read!

Mark it problem solved.

Glad you got it done.

--
People want to waste their time. If you get in the way of that, if you
suggest they should do something else, they will hate you forever.
-- Tim Dillon

Reply to: