Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-19-2012, 02:19 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
imlib2 on the kindles

/usr/bin/imlib2_view appears to be a built in picture viewer.
with touchscreen support.

Spoiler:

Here's one way to make an interesting picture (using xplanet)

[root@kindle root]# xplanet -num_times 1 -geometry 600x800 -background /opt/amazon/low_level_screens/600x800/splash.png -output /mnt/us/
system/screensaver.png


to display it/them (Run Xephyr)
Xephyr :1 -title "L:A_N:application_ID:xephyr_O:U_PC:N" -screen 600x800 -fp /mnt/us/usr/share/fonts/X11/75dpi -dpi 96

[root@kindle root]# DISPLAY=:1 /usr/bin/imlib2_view /mnt/us/system/screensaver.png [more image paths]

pictured. pure White is treated as transparent.

helpful. I may use this.

Spoiler:
EDIT: possibly helpful docs http://docs.enlightenment.org/api/imlib2/html/

Doesn't appear to support a title attribute. so is backgrounded by regular Awesome. but does actually render. although seemingly in 2 bits. and without transparency

using some onboard images so it works OOTB for people having a play:

/usr/bin/imlib2_view /var/local/blanket/low_level_screens/images/shipping_mode.png /var/local/blanket/low_level_screens/images/reboot.png /usr/share/blanket/ad_screensaver/screensaver-unregistered.png

touching the screen will make the images advance. much like a picture viewer.

haven't figured out a switch to make it close at the end yet... anyone ? : )
Attached Thumbnails
Click image for larger version

Name:	screensaver.png
Views:	148
Size:	432.9 KB
ID:	97940   Click image for larger version

Name:	TightVNC: kindle:0.0_069.png
Views:	167
Size:	98.2 KB
ID:	97941   Click image for larger version

Name:	TightVNC: kindle:0.0_071.png
Views:	150
Size:	15.4 KB
ID:	97943  

Last edited by twobob; 12-20-2012 at 12:14 PM.
twobob is offline   Reply With Quote
Old 12-19-2012, 07:32 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
ScreenShot

[root@kindle root]# /usr/bin/imlib2_grab
Quote:
Usage: imlib2_grab [-v] [-id <drawable id>] [-width <width>] [-height <height>] [-noshape] <output file>
/usr/bin/imlib2_grab /mnt/us/grab.jpg

take screenshot.
Attached Thumbnails
Click image for larger version

Name:	grab.jpg
Views:	143
Size:	44.3 KB
ID:	97950  

Last edited by twobob; 12-19-2012 at 08:00 PM.
twobob is offline   Reply With Quote
Advert
Old 12-19-2012, 07:49 PM   #3
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Image Format Converter

[root@kindle root]# /usr/bin/imlib2_conv
Quote:
imlib2_conv: Convert images between formats (part of the Imlib2 package)

Usage: imlib2_conv [ -h | <image1> <image2[.fmt]> ]
<fmt> defaults to jpg if not provided; images in edb files are supported via
the file.db:/key/name convention.
-h shows this help.
[root@kindle root]# /usr/bin/imlib2_conv /mnt/us/grab.jpg /mnt/us/grab.png

[root@kindle root]# /usr/bin/imlib2_conv /mnt/us/grab.jpg /mnt/us/grab.bmp

/usr/bin/imlib2_view /mnt/us/grab.jpg /mnt/us/grab.bmp /mnt/us/grab.png

Last edited by twobob; 12-19-2012 at 08:00 PM.
twobob is offline   Reply With Quote
Old 12-19-2012, 07:59 PM   #4
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
[root@kindle root]# /usr/bin/imlib2_colorspace

looks to be a pallette display.

shown on awesome and then via Xephyr
Attached Thumbnails
Click image for larger version

Name:	TightVNC: kindle:0.0_072.png
Views:	150
Size:	9.8 KB
ID:	97951   Click image for larger version

Name:	TightVNC: kindle:0.0_073.png
Views:	140
Size:	5.6 KB
ID:	97952  
twobob is offline   Reply With Quote
Old 12-19-2012, 10:08 PM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Looking good.
Got to think of a use for that thing.
knc1 is offline   Reply With Quote
Advert
Old 12-19-2012, 11:17 PM   #6
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Hmmm... Looks interesting...
aditya3098 is offline   Reply With Quote
Reply

Tags
imlib2

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindles with 3G jbcohen Amazon Kindle 9 08-11-2012 11:38 PM
2 Kindles - one with 3.0.2 and the other with 3.0.3??? Smudge Amazon Kindle 17 01-06-2011 12:38 AM
where has all the kindles gone dogsballs Amazon Kindle 21 12-19-2010 01:02 PM
2 Kindles brisan1938 Calibre 7 11-22-2010 08:31 PM
2 New Kindles? lemontree255 News 6 08-24-2008 03:39 PM


All times are GMT -4. The time now is 07:11 AM.


MobileRead.com is a privately owned, operated and funded community.