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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2013, 07:47 PM   #1
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Take screenshot from Kobo

Thanks to this link: http://www.cnx-software.com/2010/07/...er-screenshot/
we can make screenshot from our Kobo screen.

* requires telnet

run this command:
Code:
cat /dev/fb0 > screen.raw
get the screen.raw via ftp to you local computer that's running PERL.

Create a new perl script with this contents:

Code:
#!/usr/bin/perl -w

$w = shift || 240;
$h = shift || 320;
$pixels = $w * $h;

open OUT, "|pnmtopng" or die "Can't pipe pnmtopng: $!\n";

printf OUT "P6%d %d\n255\n", $w, $h;

while ((read STDIN, $raw, 2) and $pixels--) {
   $short = unpack('S', $raw);
   print OUT pack("C3",
      ($short & 0xf800) >> 8,
      ($short & 0x7e0) >> 3,
      ($short & 0x1f) << 3);
}

close OUT;
Chmod +x FILE.sh

after that run this:
change the resolution to your Kobo screen (I have a kobo Glo)
Code:
./FILE.SH 1024 758 < screen.raw > screen.png
And there you go, screen.png contains you Kobo Sreenshot.

Last edited by koenieee; 01-04-2013 at 05:37 AM.
koenieee is offline   Reply With Quote
Old 01-05-2013, 12:10 AM   #2
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 155
Karma: 1000036
Join Date: Oct 2008
Location: Calgary, Alberta
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5
Good one!
RoninTech is offline   Reply With Quote
Old 01-07-2013, 10:22 AM   #3
stewacide
Groupie
stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.stewacide ought to be getting tired of karma fortunes by now.
 
Posts: 163
Karma: 1051770
Join Date: Jul 2012
Device: Kobo Glo, Kobo Touch
Someone with telnet set up, you could use this technique to determine the Kobo Glo's maximum native image size and forward this information onto the Calibre developers in order to create an optomized Kobo Glo output profile.
stewacide is offline   Reply With Quote
Old 01-16-2013, 05:54 AM   #4
ichrispa
Enthusiast
ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.ichrispa shines like a glazed doughnut.
 
Posts: 40
Karma: 8604
Join Date: Dec 2012
Location: Germany
Device: Kobo Touch
I'm triggering the following script via an integrated webserver on the kobo touch... screenshots directly to the desktop ^^

Quote:
#!/mnt/onboard/.local/bin/python

import png
import struct

RAWD = "/mnt/onboard/.local/tmp/screenshot.raw"

# create a raw image
fb = open("/dev/fb0", b"r")
rawf = open(RAWD, b"w")
rawf.write(fb.read(1089536))
rawf.close()

rawf = open(RAWD, b"r")
pngf = open("/mnt/onboard/.local/tmp/screenshot.png", "w")

rawpng_flat = []
rawpng = []
pixel = []

data = rawf.read(2)
print "Screen data aquired"

while data != "":
r5 = (struct.unpack("H", data)[0] >> 11) & 0x1F
g6 = (struct.unpack("H", data)[0] >> 5) & 0x3F
b5 = (struct.unpack("H", data)[0]) & 0x1F
r8 = (r5<<3)+(r5>>2)
g8 = (g6<<2)+(g6>>4)
b8 = (b5<<3)+(b5>>2)

rawpng_flat += [r8%256, g8%256, b8%256]
data = rawf.read(2)

print "Writing Screenshot"
png.Writer(width=800,height=600,bitdepth=8).write_ array(pngf, rawpng_flat)

pngf.close()
rawf.close()
ichrispa is offline   Reply With Quote
Old 09-13-2013, 07:09 AM   #5
ibu
Addict
ibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipse
 
Posts: 201
Karma: 8170
Join Date: Feb 2010
Location: Berlin, Germany
Device: iPhone 4S, Kobo Glo
Is there any easy-to-use-script for the Kobo Glo to get a screenshot directly to the desktop or a configurable folder on a pc?
I have no experience with the console at all.

Or is there a calibre plugin which "pulls" a screenshot?
Thanks.
ibu is offline   Reply With Quote
Old 09-13-2013, 08:31 AM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 6,090
Karma: 6238033
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
If you look at http://www.mobileread.com/forums/sho...d.php?t=218376, one of the options is a screenshot. When you add:

Code:
[FeatureSettings]
Screenshots=true
Pressing the power button will take a screen shot. This is stored as a JPEG in the root directory of the device. You can copy that from the device the next time you connect to the PC. They will also get added to the device library the next time new books are processed.
davidfor is offline   Reply With Quote
Old 09-13-2013, 08:38 AM   #7
ibu
Addict
ibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipseibu can illuminate an eclipse
 
Posts: 201
Karma: 8170
Join Date: Feb 2010
Location: Berlin, Germany
Device: iPhone 4S, Kobo Glo
@davidfor

Thanks! Works perfectly!
ibu is offline   Reply With Quote
Old 05-14-2014, 08:19 AM   #8
diane55
Junior Member
diane55 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2012
Device: Kobo Glo
Quote:
Originally Posted by davidfor View Post
If you look at http://www.mobileread.com/forums/sho...d.php?t=218376, one of the options is a screenshot. When you add:

Code:
[FeatureSettings]
Screenshots=true
Pressing the power button will take a screen shot. This is stored as a JPEG in the root directory of the device. You can copy that from the device the next time you connect to the PC. They will also get added to the device library the next time new books are processed.
This tweak does'nt work anymore with the version 3.3.0. It's a pity !
diane55 is offline   Reply With Quote
Old 05-17-2014, 04:14 AM   #9
Markismus
Disjunctive Undecidedness
Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.Markismus has top level security clearance to Area 51.
 
Markismus's Avatar
 
Posts: 311
Karma: 94594
Join Date: Jul 2013
Location: Netherlands
Device: Cracked Kobo Aura HD, Cracked Kobo Aura, Kobo Aura H2O
If you use koreader and the multi touch modification, you can also take a screenshot inside koreader by pressing both diagonal corners.
It creates a pam-file in koreader/screenshots, which can be viewed and converted with a program like Imagemagick.

Last edited by Markismus; 05-17-2014 at 08:58 AM.
Markismus is offline   Reply With Quote
Old 05-30-2014, 03:46 PM   #10
soulpixel
Junior Member
soulpixel began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2013
Device: Kobo aura hd
Quote:
Originally Posted by Markismus View Post
If you use koreader and the multi touch modification, you can also take a screenshot inside koreader by pressing both diagonal corners.
It creates a pam-file in koreader/screenshots, which can be viewed and converted with a program like Imagemagick.
I have koreader installed, how do I enable the multitouch functionality ? Right now pressing diagonal corners doesn't create the screenshots :-(
soulpixel is offline   Reply With Quote
Old 07-05-2014, 06:30 AM   #11
trekk
Groupie
trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.
 
trekk's Avatar
 
Posts: 184
Karma: 28652
Join Date: Aug 2011
Device: Pocketbook 602, Kobo Aura + Aura HD, a lot of kindle devices
Quote:
Originally Posted by soulpixel View Post
I have koreader installed, how do I enable the multitouch functionality ? Right now pressing diagonal corners doesn't create the screenshots :-(
Just swipe from bottom left to upper corner right. This will create a screenshot, which can be found in koreader/screenshots.
trekk is offline   Reply With Quote
Old 07-25-2014, 06:02 PM   #12
ebrahimpak
Enthusiast
ebrahimpak began at the beginning.
 
ebrahimpak's Avatar
 
Posts: 45
Karma: 10
Join Date: Jul 2011
Location: Iran
Device: Sony PRS-950, Sony PRS-T2, Kobo Aura HD
Even Gimp doesn't open .pam files in windows. What program do you recommend for opening such file formats in Windows?
ebrahimpak is online now   Reply With Quote
Old 07-25-2014, 06:49 PM   #13
trekk
Groupie
trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.trekk solves Fermatís last theorem while doing the crossword.
 
trekk's Avatar
 
Posts: 184
Karma: 28652
Join Date: Aug 2011
Device: Pocketbook 602, Kobo Aura + Aura HD, a lot of kindle devices
You can use ImageMagick to open .pam files. http://www.imagemagick.org/script/bi...es.php#windows
trekk is offline   Reply With Quote
Old 07-25-2014, 07:00 PM   #14
JimMcLaren
Addict
JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.JimMcLaren ought to be getting tired of karma fortunes by now.
 
JimMcLaren's Avatar
 
Posts: 229
Karma: 1004766
Join Date: Jan 2010
Device: Kobo Aura HD, Pocketbook 302, Pocketbook 912, Nook STR, Nook HD+
Paint.net with the plugin found here works fine too.
JimMcLaren is offline   Reply With Quote
Old 07-27-2014, 01:01 PM   #15
ebrahimpak
Enthusiast
ebrahimpak began at the beginning.
 
ebrahimpak's Avatar
 
Posts: 45
Karma: 10
Join Date: Jul 2011
Location: Iran
Device: Sony PRS-950, Sony PRS-T2, Kobo Aura HD
Thank you everybody. Now it sometimes takes screenshots and sometimes doesn't! When e.g. I wanna take a screenshot from the opened dictionary, it doesn't take any snapshots.
ebrahimpak is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Taking a screenshot on Kindle 4 Blog Kindle Amazon Kindle 2 10-06-2012 02:44 PM
ssknap (v1) - screenshot as screensaver fbdev Kindle Developer's Corner 6 10-22-2011 10:41 PM
Post a screenshot of your desktop. KryptoNyte Nook Developer's Corner 103 07-09-2011 05:48 PM
DR800 screenshot madusaya iRex 5 04-29-2010 07:31 PM
Screenshot Capability? wallcraft OpenInkpot 4 12-31-2008 02:41 PM


All times are GMT -4. The time now is 07:28 PM.


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