View Single Post
Old 01-13-2015, 12:42 PM   #215
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@jackie_w: Yep, throwing image 2 without processing at an eInk controller renders more or less like what image 3 looks like (albeit probably not as awful as that one, I chose something with gradients on purpose ).

As for the differences between 2 & 4 on an LCD, I'd recommend checking them at their original size, scaling algorithms have a tendency to smooth or exacerbate dithering patterns . [Some cheap LCD screens also have crappy internal dithering, which may not help, although that usually affects video more than fixed images].

On the other hand, throwing image 4 at an eInk controller should render much more like what image 2 looks like on an LCD than image 3 .

EDIT: See for yourself, attached the same thing formatted for the Aura H2O, feed it to pickel showpic. (And reset the rotation afterwards to unbreak nickel)

Code:
cat cover_dahlia_16c_dithered.raw | /usr/local/Kobo/pickel showpic
echo 3 > /sys/class/graphics/fb0/rotate
FWIW, because that's unusual enough to be annoying to find:

Code:
avconv -i cover_dahlia_16c_dithered.png -f rawvideo -pix_fmt rgb565 -s 1440x1080 cover_dahlia_16c_dithered.raw
Input PNG has to be 8-bit, even at 16c, or ffmpeg/libav chokes on it (ie. Image > Mode > Grayscale in GIMP), and it needs to be in landscape mode (90° counter-clockwise rotation)

EDIT²: And the requisite terrible cell-phone pictures .

EDIT³: That example also seems to unearth a gamma issue when the controller is fed a full-color image... ;o).

EDIT⁴: As usual, if you go the extra mile, and use IM all the way, with the specific eInk color palette, it's even slightly better .

Code:
convert cover.jpg -rotate -90 -colorspace Lab -filter LanczosSharp -distort Resize 1440x1080 -background black -gravity center -extent 1440x1080 -colorspace Gray -limit time 60 -dither FloydSteinberg -remap ~SVN/Configs/trunk/Kindle/Touch_Hacks/ScreenSavers/src/linkss/etc/kindle_colors.gif -define png:bit-depth=8 -quality 75 cover_h2o.png
Attached Thumbnails
Click image for larger version

Name:	snap_cover_.jpg
Views:	761
Size:	238.3 KB
ID:	133736   Click image for larger version

Name:	snap_cover_gray_.jpg
Views:	731
Size:	245.6 KB
ID:	133737   Click image for larger version

Name:	snap_cover_16c_.jpg
Views:	745
Size:	245.2 KB
ID:	133738   Click image for larger version

Name:	snap_cover_16c_dithered_.jpg
Views:	735
Size:	242.6 KB
ID:	133739   Click image for larger version

Name:	snap_cover_h2o.jpg
Views:	754
Size:	224.0 KB
ID:	133742  
Attached Files
File Type: gz cover_dahlia.tar.gz (4.07 MB, 645 views)
File Type: gz cover_im.tar.gz (578.9 KB, 639 views)

Last edited by NiLuJe; 01-13-2015 at 02:19 PM.
NiLuJe is offline   Reply With Quote