Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > Bookeen

Notices

Reply
 
Thread Tools Search this Thread
Old 04-21-2008, 12:30 PM   #1
James Bryant
Ebook fanatic since 1962
James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.James Bryant could sell banana peel slippers to a Deveel.
 
James Bryant's Avatar
 
Posts: 92
Karma: 3033
Join Date: Apr 2008
Location: By the sea in Southern England
Device: Cybook3/REB1100/Kolin/iRex iLiad/JetBook & JB Mini/Onyx C67, T68.
Can one edit T2B files?

If so, how?

James
James Bryant is offline   Reply With Quote
Old 04-21-2008, 12:33 PM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
I'm not sure about editing the actual file, but it's created from the book's cover, and it's very easy (for a MobiPocket book, at least) to change the cover of a book using tompe's "mobi2mobi" tool.
HarryT is offline   Reply With Quote
Old 04-21-2008, 12:49 PM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I think they are just raw 4-bit images. You can generate them with some programs or scripts, have a look at this thread: https://www.mobileread.com/forums/showthread.php?t=21998
Jellby is offline   Reply With Quote
Old 04-21-2008, 02:21 PM   #4
slayda
Retired & reading more!
slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.
 
slayda's Avatar
 
Posts: 2,764
Karma: 1884247
Join Date: Sep 2006
Location: North Alabama, USA
Device: Kindle 1, iPad Air 2, iPhone 6S+, Kobo Aura One
Quote:
Originally Posted by Jellby View Post
I think they are just raw 4-bit images. You can generate them with some programs or scripts, have a look at this thread: https://www.mobileread.com/forums/showthread.php?t=21998
If they are just 4 bit RAW images, then you can use an image editor like "Paint Shop Pro". With it you can crop, change the size, change to gray scale, change the color depth to 4 bits and save a RAW. I'll try one tonight to see if that will work.

EDIT; Apparently this does not work & I have doubts that the t2b is, in fact a 144x96 RAW image. When I copy & rename one to "name.raw", I can view it in Paint shop Pro but it shows as 4 very small images. PSP only wants to work with 8 bit files.

Last edited by slayda; 04-21-2008 at 07:12 PM.
slayda is offline   Reply With Quote
Old 04-22-2008, 07:57 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
It's not a 4-bit image but a 2-bit one - 4 grey scales.
HarryT is offline   Reply With Quote
Old 04-22-2008, 08:02 AM   #6
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Obviously some people have got it to work. When I tested and put an image in the Cybook and then generated the t2b file the thumbnail was still regenerated when I opened the library. What I wanted to do was to eliminate the time it takes to create the thumbnails.
tompe is offline   Reply With Quote
Old 05-08-2009, 10:14 AM   #7
romi
CyBook Gen3 fan
romi began at the beginning.
 
romi's Avatar
 
Posts: 21
Karma: 10
Join Date: May 2009
Device: CyBook Gen3
Hi everyone,

I wish to read mostly HTML and TXT files on my CyBook and wonder if anyone of you ever found a way to create thumbnails for these files. I googled a lot, but no luck for a working solution.

Thanks for your input.
romi is offline   Reply With Quote
Old 05-08-2009, 10:45 AM   #8
gerraldo
Anti-DRM Advocate
gerraldo has learned how to read e-booksgerraldo has learned how to read e-booksgerraldo has learned how to read e-booksgerraldo has learned how to read e-booksgerraldo has learned how to read e-booksgerraldo has learned how to read e-booksgerraldo has learned how to read e-booksgerraldo has learned how to read e-books
 
gerraldo's Avatar
 
Posts: 351
Karma: 960
Join Date: Mar 2009
Location: Vienna/Austria
Device: CyBook Gen 3, Palm Tungsten T3
Quote:
Originally Posted by James Bryant View Post
If so, how?
Look at the 3rd post in this thread: KLICK

With this nice little tool one can easily create the needed thumbnails.
gerraldo is offline   Reply With Quote
Old 05-08-2009, 11:05 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
It seems .t2b files are just raw binary 4-shades 96x144 images. I'm using this PERL script in linux to create them:

t2b.pl
Code:
#!/usr/bin/perl

use GD;

my $palette = $0;
$palette =~ s/[^\/]+$/palette.ppm/;

while ( my $file = shift @ARGV )
  {
  if ( $file =~ /\.pdf$/ )
    { open IN, "pdftops -f 1 -l 1 -paper match \"$file\" - | convert -resize 96x144 -map \"$palette\" -dither PNM:- | pnmtopng 2>/dev/null |"; }
  else
    { open IN, "convert -resize 96x144 -map \"$palette\" -dither \"$file\" PNM:- | pnmtopng 2>/dev/null |"; }
  my $in = join( '', <IN> );
  close IN;

  $image = GD::Image->new( $in );

  $k = 3;
  @px = ( );

  $left = int( ( 96 - $image->width ) / 2 );
  $right = 96 - $image->width - $left;
  $top = int( ( 144 - $image->height ) / 2 );
  $bottom = 144 - $image->height - $top;

  $file =~ s/\..+?$/_6090.t2b/;
  open OUT, "> $file";

  for ( $i = - $top; $i < 144 - $top; $i ++ )
    {
    for ( $j = - $left; $j < 96 - $left; $j ++ )
      {
      $px[$k --] = ( ( $i >= 0 and $i < $image->height and $j >= 0 and $j < $image->width ) ? $image->getPixel( $j, $i ) : 3 );
      if ( $k < 0 )
        {
        # this line can be here because 4 divides 96
        print OUT chr( $px[0] + 4 * $px[1] + 16 * $px[2] + 64 * $px[3] );
        $k = 3;
        }
      }

    }

  close OUT;
  }
with palette.ppm:
Code:
P3
2 2
255
0 0 0 85 85 85 170 170 170 255 255 255
Jellby is offline   Reply With Quote
Old 05-08-2009, 12:26 PM   #10
romi
CyBook Gen3 fan
romi began at the beginning.
 
romi's Avatar
 
Posts: 21
Karma: 10
Join Date: May 2009
Device: CyBook Gen3
Quote:
Originally Posted by gerraldo View Post
Look at the 3rd post in this thread: KLICK

With this nice little tool one can easily create the needed thumbnails.
Thank you and big thanks to the developer. I tried the tool and was happy like a small child. Now I can have my economist web subscription snippets in my cybook with an icon.

The developer deserves a tip for this and will get one!
romi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best method to edit body of .prc/.mobi files? Skydog Kindle Formats 0 12-25-2009 04:29 PM
Trying to edit titles on LIT files Shirra Whitefur Workshop 1 04-12-2007 09:29 AM


All times are GMT -4. The time now is 09:32 AM.


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