Questions tagged [netpbm]

3 questions
3
votes
1 answer

Colour problem when capturing a png of the top panel of the screen

I want to capture a window as a png from within a bash script, using the window's ID. In this case, the window is the top panel.  Using gnome-screenshot the colours are true, as per this image... (this image is not the same size as the following…
Peter.O
  • 32,426
  • 28
  • 115
  • 163
2
votes
1 answer

Given a .gif, return the color components as X11-style hexadecimal specifiers (or equivalents)

I am a fan of potrace, and I recently read the Potrace FAQ. The FAQ includes this beautiful one-liner: cat img.gif | giftopnm | ppmcolormask #641b1b | potrace The command I am looking for would return the codes of all the colors to be parsed by…
ixtmixilix
  • 13,040
  • 27
  • 82
  • 118
1
vote
1 answer

tee pipeline and pnmtools - truncated file

This sequence of commands works OK: pngtopnm file.png 2> /dev/null > dump1 pnmfile < dump1 stdin: PPM raw, 1920 by 1080 maxval 255 ls -l dump1 -rw-r----- 1 cmb 6220817 Sep 15 14:26 dump1 But redoing the pipeline to use 'tee' truncates the output…
ColinB
  • 113
  • 3