New answers tagged

1

It is working now. Here is a screenshot using the current imgcat script along with iTerm 3.0.2: The developer is very active, and if it was not working last September there may be a related bug-report/issue number (there are many open issues mentioning imgcat).


0

It can also be made using jhead command: $ jhead -ft file.jpg


1

In case there are several images inside here is a quick bash script to extract them all: #!/bin/bash sourceFile=uImage declare -ia sizes=( $(mkimage -l "$sourceFile" | grep '^ Image [0-9]+' | awk -F ' ' 'BEGIN { ORS = " " } { print $3 }') ) declare -i currOffset="68+4*${#lens[@]}" declare -i size for i in "${!sizes[@]}"; do size=${sizes[$i]} ...


4

Firstly, you need to feed display RGB:- raw bytes, not an encoded hex string like you're building with that hexdump | sed | tr pipeline. Secondly, you aren't giving it enough bytes: you need 3 bytes per pixel, one for each colour channel. This does what you want: mx=320;my=256;head -c "$((3*mx*my))" /dev/urandom | display -depth 8 -size "${mx}x${my}" RGB:-...


0

The command file is what you're looking for. Output for me: image.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 320x241, Scaling: [none]x[none], YUV color, decoders should clamp The version here is the one is from http://darwinsys.com/file/ and in the default software repositories of most distributions, including Ubuntu (see http://packages....



Top 50 recent answers are included