| 
			
			 | 
		#1 | 
| 
			
			
			
			 Ebook fanatic since 1962 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 frumious Bandersnatch 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570 
				Karma: 20150435 
				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
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Retired & reading more! 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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: 
	
 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 08:12 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 CyBook Gen3 fan 
			
			![]() 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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 frumious Bandersnatch 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570 
				Karma: 20150435 
				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;
  }
Code: 
	P3 2 2 255 0 0 0 85 85 85 170 170 170 255 255 255  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 CyBook Gen3 fan 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: May 2009 
				
				
				
				Device: CyBook Gen3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 The developer deserves a tip for this and will get one! ![]()  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			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 05:29 PM | 
| Trying to edit titles on LIT files | Shirra Whitefur | Workshop | 1 | 04-12-2007 10:29 AM |