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

Go Back   MobileRead Forums > E-Book Formats > Other formats > IMP

Notices

Reply
 
Thread Tools Search this Thread
Old 06-12-2008, 02:55 PM   #1
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Extracting html/images from within .imp files!

This is a follow-up to the thread Converting .IMP to anything? WE ARE NOW THERE!

I'm presently trying to reverse engineer the .imp format into hard (perl) code and will soon release some perl code to dump the entire contents of a .imp file. This will result in the exploding of the .imp into it's component parts (html styles/links and images used therein).

Since I've already managed to decompress the 'raw text' stored in the .imp (using 'deimp.exe'), the next goal would be for imp_dump.pl to merge this (decompressed) text with the html styles/links and images.

And further to a recent inquiry by 'vinicius0881', I am also going to explore how exactly the markups on the ebookwise could be transferred from the Smartmedia card to the PC. I haven't done any real testing of this yet (even if it is possible). EDIT: This is quite possible and easy to do, see thread Extracting markups (annotations and highlites) from your ebook!

The perl code is still evolving and is lacking the decoding of a lot of detailed information, but for now it at least extracts the header and index info of each of the component .RES files as well as the .imp header info. The REB 1200 .imp and EBW 1150 .imp formats differ slightly which requires two different extractions depending on the imp type. This is slowing things down for me!

I tried it out on the REBTestDocument.imp 1150 attachment and got the following output:
Code:
imp_dump.pl (version 0.1) Copyright (C) 2008 Nick Rapallo (nrapallo)
=======================
Imp Filename:REBTestDocument.imp
=======================
Version:2, "BOOKDOUG", CountRESFiles:32, LengthRESdirname:14, CountRemain:118
Compression:1, Encryption:0, ImpType:2, ZoomState:0
ID:REBTestDocument-10dec02-0945
Category:Content Creation, SubCat(not used):outPages=71&inPages=83
Title:REB Test Document
LName:, MName:, AuthorFNname:Ludo
RESdirname:REBtestdoc.RES
Book_Prop_length:87
Offset to .RES Table of Contents:149
 Filename:BEDO, Filesize: 116352, Filetype:JPEG
 Filename:BYVI, Filesize:    656, Filetype:ImRn
 File:DATA.FRK, Filesize:  13694, Filetype:    
 Filename:DCXK, Filesize:    494, Filetype:HfPZ
 Filename:DELY, Filesize:    550, Filetype:Tabl
 Filename:DKRU, Filesize:    828, Filetype:Pcz0
 Filename:DMNC, Filesize:    828, Filetype:PcZ0
 Filename:FEXY, Filesize:     54, Filetype:BGcl
 Filename:FONU, Filesize:    132, Filetype:ESts
 Filename:FQTG, Filesize:   3822, Filetype:PcZ1
 Filename:FUXW, Filesize:  25918, Filetype:Styl
 Filename:HMNO, Filesize:     80, Filetype:pInf
 Filename:HYLQ, Filesize:    494, Filetype:HfPz
 Filename:JCZC, Filesize:     32, Filetype:Pc31
 Filename:JIFU, Filesize:     90, Filetype:!!cm
 Filename:MNYJ, Filesize:   1474, Filetype:!!sw
 Filename:NCZG, Filesize:   3954, Filetype:Pcz1
 Filename:PQJA, Filesize:  14420, Filetype:BPgZ
 Filename:RENM, Filesize:   8246, Filetype:StRn
 Filename:RGLS, Filesize:     64, Filetype:Mrgn
 Filename:RYJS, Filesize:   3977, Filetype:PNG 
 Filename:RYXI, Filesize:    612, Filetype:AncT
 Filename:TENW, Filesize:     32, Filetype:StR2
 Filename:TEPA, Filesize:   1619, Filetype:TRow
 Filename:TEPM, Filesize:  12857, Filetype:BPgz
 Filename:TGBQ, Filesize:   2154, Filetype:GIF 
 Filename:VMBY, Filesize:   9093, Filetype:TCel
 Filename:VQNM, Filesize:    156, Filetype:Hyp2
 Filename:XITE, Filesize:   1270, Filetype:Lnks
 Filename:XUFW, Filesize:    106, Filetype:HRle
 Filename:ZQVA, Filesize:     96, Filetype:PPic
 Filename:ZUZS, Filesize:     47, Filetype:Devm

 ======== JPEG ========
 Filename:BEDO, Filesize: 116352, Filetype:JPEG
******** A new filetype encountered!!!
 Header:TOCconst:01, TOCfname:JPEG, TOCoffset:116268

 ======== ImRn ========
 Filename:BYVI, Filesize:    656, Filetype:ImRn
 Header:TOCconst:01, TOCfname:ImRn, TOCoffset:642
  Number of images indexed = 17
  width:153, height: 61, constB:FFFB, offset:   1527, imgtype: FIG, imgID:0080
  width:153, height: 61, constB:FFFB, offset:  14851, imgtype: FIG, imgID:0080
  width:153, height: 61, constB:FFFB, offset:  14888, imgtype: FIG, imgID:0080
  width:153, height: 61, constB:FFFB, offset:  14924, imgtype: FIG, imgID:0080
  width:153, height: 61, constB:FFFC, offset:  15012, imgtype: GNP, imgID:0080
  width:472, height:595, constB:FFFA, offset:  17845, imgtype:GEPJ, imgID:0080
  width:472, height:595, constB:FFFB, offset:  17847, imgtype:GEPJ, imgID:8D4D
  width:153, height: 61, constB:FFFB, offset:  17898, imgtype: GNP, imgID:0080
  width:153, height: 61, constB:FFFF, offset:  18201, imgtype: GNP, imgID:0080
  width:153, height: 61, constB:FFFE, offset:  18512, imgtype: GNP, imgID:0080
  width:153, height: 61, constB:FFFC, offset:  18823, imgtype: GNP, imgID:0080
  width:153, height: 61, constB:FFFE, offset:  19156, imgtype: GNP, imgID:0080
  width:153, height: 61, constB:FFFE, offset:  19485, imgtype: GNP, imgID:0080
  width:176, height:207, constB:FFFB, offset:  19949, imgtype:GEPJ, imgID:4D80
  width:174, height:207, constB:FFFB, offset:  19951, imgtype:GEPJ, imgID:B7B8
  width:176, height:212, constB:FFFB, offset:  19953, imgtype:GEPJ, imgID:8A1A
  width:174, height:212, constB:FFFC, offset:  19955, imgtype:GEPJ, imgID:0F4E
 Index1:Index1_const1:00, Index1_len:610, Index1_offset:32, Index1_const0:00

 ========      ========
 File:DATA.FRK, Filesize:  13694, Filetype:    
  Extracting compressed DATA.FRK to "REBTestDocument.imp.txt" (13694 chars)

 ======== HfPZ ========
 Filename:DCXK, Filesize:    494, Filetype:HfPZ
 Header:TOCconst:01, TOCfname:HfPZ, TOCoffset:480

 ======== Tabl ========
 Filename:DELY, Filesize:    550, Filetype:Tabl
 Header:TOCconst:01, TOCfname:Tabl, TOCoffset:536

 ======== Pcz0 ========
 Filename:DKRU, Filesize:    828, Filetype:Pcz0
 Header:TOCconst:01, TOCfname:Pcz0, TOCoffset:814

 ======== PcZ0 ========
 Filename:DMNC, Filesize:    828, Filetype:PcZ0
 Header:TOCconst:01, TOCfname:PcZ0, TOCoffset:814

 ======== BGcl ========
 Filename:FEXY, Filesize:     54, Filetype:BGcl
 Header:TOCconst:01, TOCfname:BGcl, TOCoffset:40
  BGcl_const1:FFFF, Red:FF (FF), Green:FF (FF), Blue:FF (FF)
 Index1:Index1_const1:80, Index1_len:8, Index1_offset:32, Index1_const0:0000

 ======== ESts ========
 Filename:FONU, Filesize:    132, Filetype:ESts
 Header:TOCconst:01, TOCfname:ESts, TOCoffset:76

 ======== PcZ1 ========
 Filename:FQTG, Filesize:   3822, Filetype:PcZ1
 Header:TOCconst:02, TOCfname:PcZ1, TOCoffset:3714

 ======== Styl ========
 Filename:FUXW, Filesize:  25918, Filetype:Styl
 Header:TOCconst:01, TOCfname:Styl, TOCoffset:25904

 ======== pInf ========
 Filename:HMNO, Filesize:     80, Filetype:pInf
 Header:TOCconst:01, TOCfname:pInf, TOCoffset:52

 ======== HfPz ========
 Filename:HYLQ, Filesize:    494, Filetype:HfPz
 Header:TOCconst:01, TOCfname:HfPz, TOCoffset:480

 ======== Pc31 ========
 Filename:JCZC, Filesize:     32, Filetype:Pc31
 Header:TOCconst:02, TOCfname:Pc31, TOCoffset:32

 ======== !!cm ========
 Filename:JIFU, Filesize:     90, Filetype:!!cm
 Header:TOCconst:01, TOCfname:!!cm, TOCoffset:62

 ======== !!sw ========
 Filename:MNYJ, Filesize:   1474, Filetype:!!sw
 Header:TOCconst:01, TOCfname:!!sw, TOCoffset:736
  sw_length:704
  sw_record:
   0001 0002 0012 0001 0002 0012 0001 0003 
   0003 0003 0003 0001 000C 0002 000B 0001 
   0002 0002 0002 0002 0002 0002 0002 0002 
   0001 0003 0003 0003 0003 0001 0002 0002 
   0002 0003 000C 0002 0002 0002 0002 000B 
   0001 0003 000D 0003 0013 0005 000B 0001 
   0003 000D 0003 000B 0001 000C 0003 000B 
   0001 000C 0003 000B 0001 0003 0003 0003 
   0003 0003 0003 0003 0003 0003 0003 0003 
   0003 0013 0005 0013 0005 0013 0005 0013 
   0005 0001 0003 0003 0003 0013 0001 0002 
   0002 0002 0002 0001 000C 0003 000B 0001 
   0001 0001 0001 0001 000D 0002 0002 0002 
   0002 000B 000D 0003 000B 000D 0003 0003 
   000B 0012 0001 0001 0001 0001 0001 000D 
   0002 0002 0002 0002 000B 000D 0003 000B 
   000D 0003 0003 000B 0012 0001 0001 0001 
   0001 0001 000D 0002 0002 0002 0002 000B 
   000D 0003 000B 000D 0003 0003 000B 0012 
   0001 0001 0001 0001 0001 000D 0002 0002 
   0002 0002 000B 000D 0003 000B 000D 0003 
   0003 000B 0012 0001 0003 0001 000C 0003 
   000B 0001 0003 000C 0002 000B 0001 0002 
   0001 000C 0003 000B 0001 000D 0003 0003 
   000B 0001 0002 0002 0003 0002 0001 0002 
   0003 0003 0003 0003 0003 0003 0012 0001 
   000C 0003 000B 0001 000E 0008 000B 0001 
   000C 0003 000B 0001 0002 0002 0002 0002 
   0002 0002 0002 0001 0001 0001 0001 0001 
   0001 0002 0002 0002 0002 0002 0002 0003 
   0008 0001 000D 0008 0002 0007 0004 000B 
   0001 000C 000A 0002 0002 0002 0002 0002 
   0003 0003 0003 0002 0010 000B 0001 000C 
   0003 0003 0003 0003 0003 0003 0003 0002 
   0003 000B 0001 000D 0003 000B 0001 000C 
   0002 0002 0002 0002 0002 0003 0003 0002 
   0003 000B 0001 000C 0002 0002 0003 0003 
   0003 000B 0001 000C 0001 0001 0002 0002 
   0002 0002 0002 0002 0003 0003 0003 000B 
   0001 000C 0002 0002 0002 0001 0004 0003 
   000B 0001 000C 0002 0002 0002 0002 0002 
   0002 0002 0001 0001 0001 0001 0001 0001 
   0002 0002 0002 0002 0002 0002 0002 0003 
   0003 0003 000B 0001 000C 0003 0003 000B 
   
 Index01:seqnum:140, len:  6, offset:   32, const4:04, filetype:AtTp
 Index02:seqnum:139, len:  6, offset:   38, const4:04, filetype:SKtb
 Index03:seqnum:168, len: 10, offset:   44, const4:04, filetype:stbd
 Index04:seqnum:167, len:  8, offset:   54, const4:04, filetype:fnts
 Index05:seqnum:166, len: 18, offset:   62, const4:04, filetype:bInf
 Index06:seqnum:165, len: 10, offset:   80, const4:04, filetype:batr
 Index07:seqnum:164, len: 22, offset:   90, const4:04, filetype:SMnu
 Index08:seqnum:163, len: 14, offset:  112, const4:04, filetype:FRgs
 Index09:seqnum:162, len: 10, offset:  126, const4:04, filetype:FRDt
 Index10:seqnum:161, len:  8, offset:  136, const4:04, filetype:Form
 Index11:seqnum:160, len:  8, offset:  144, const4:04, filetype:FItm
 Index12:seqnum:159, len: 42, offset:  152, const4:04, filetype:FIDt
 Index13:seqnum:158, len: 10, offset:  194, const4:04, filetype:FrDt
 Index14:seqnum:157, len: 10, offset:  204, const4:04, filetype:BGcl
 Index15:seqnum:156, len:  8, offset:  214, const4:04, filetype:Hyp2
 Index16:seqnum:155, len: 38, offset:  222, const4:04, filetype:HfPZ
 Index17:seqnum:154, len: 38, offset:  260, const4:04, filetype:HfPz
 Index18:seqnum:153, len: 38, offset:  298, const4:04, filetype:BPgZ
 Index19:seqnum:152, len: 38, offset:  336, const4:04, filetype:BPgz
 Index20:seqnum:151, len:  4, offset:  374, const4:04, filetype:MRPs
 Index21:seqnum:150, len:  8, offset:  378, const4:04, filetype:Dire
 Index22:seqnum:149, len: 10, offset:  386, const4:04, filetype:MASK
 Index23:seqnum:148, len:  4, offset:  396, const4:04, filetype:Dict
 Index24:seqnum:147, len:  8, offset:  400, const4:04, filetype:Hyph
 Index25:seqnum:146, len: 10, offset:  408, const4:04, filetype:AncT
 Index26:seqnum:145, len: 10, offset:  418, const4:04, filetype:BPos
 Index27:seqnum:144, len: 18, offset:  428, const4:04, filetype:PICT
 Index28:seqnum:143, len:  8, offset:  446, const4:04, filetype:StR2
 Index29:seqnum:142, len:  8, offset:  454, const4:04, filetype:STR#
 Index30:seqnum:141, len:  8, offset:  462, const4:04, filetype:Clos
 Index31:seqnum:138, len: 44, offset:  470, const4:04, filetype:TagS
 Index32:seqnum:137, len: 14, offset:  514, const4:04, filetype:Glos
 Index33:seqnum:136, len: 28, offset:  528, const4:04, filetype:ImRn
 Index34:seqnum:135, len: 24, offset:  556, const4:04, filetype:Lnks
 Index35:seqnum:134, len:  8, offset:  580, const4:04, filetype:Offs
 Index36:seqnum:133, len: 24, offset:  588, const4:04, filetype:Tabl
 Index37:seqnum:132, len: 16, offset:  612, const4:04, filetype:TRow
 Index38:seqnum:131, len: 28, offset:  628, const4:04, filetype:TCel
 Index39:seqnum:130, len: 18, offset:  656, const4:04, filetype:HRle
 Index40:seqnum:129, len: 52, offset:  674, const4:04, filetype:Styl
 Index41:seqnum:128, len: 10, offset:  726, const4:04, filetype:StRn

 ======== Pcz1 ========
 Filename:NCZG, Filesize:   3954, Filetype:Pcz1
 Header:TOCconst:02, TOCfname:Pcz1, TOCoffset:3846

 ======== BPgZ ========
 Filename:PQJA, Filesize:  14420, Filetype:BPgZ
 Header:TOCconst:02, TOCfname:BPgZ, TOCoffset:14384

 ======== StRn ========
 Filename:RENM, Filesize:   8246, Filetype:StRn
 Header:TOCconst:01, TOCfname:StRn, TOCoffset:8232

 ======== Mrgn ========
 Filename:RGLS, Filesize:     64, Filetype:Mrgn
 Header:TOCconst:01, TOCfname:Mrgn, TOCoffset:36
  Mrgn1:FFFF, Mrgn2:FFFF
 Index1:Index1_const1:81, Index1_len:2, Index1_offset:32, Index1_const0:0000
 Index2:Index2_const1:80, Index2_len:2, Index2_offset:34, Index2_const0:0000

 ======== PNG  ========
 Filename:RYJS, Filesize:   3977, Filetype:PNG 
 Header:TOCconst:01, TOCfname:PNG , TOCoffset:3963
 Index1:Index1_const1:00, Index1_len:3931, Index1_offset:32, Index1_const0:00

 ======== AncT ========
 Filename:RYXI, Filesize:    612, Filetype:AncT
 Header:TOCconst:01, TOCfname:AncT, TOCoffset:584

 ======== StR2 ========
 Filename:TENW, Filesize:     32, Filetype:StR2
 Header:TOCconst:02, TOCfname:StR2, TOCoffset:32

 ======== TRow ========
 Filename:TEPA, Filesize:   1619, Filetype:TRow
 Header:TOCconst:02, TOCfname:TRow, TOCoffset:1295

 ======== BPgz ========
 Filename:TEPM, Filesize:  12857, Filetype:BPgz
 Header:TOCconst:02, TOCfname:BPgz, TOCoffset:12821

 ======== GIF  ========
 Filename:TGBQ, Filesize:   2154, Filetype:GIF 
 Header:TOCconst:01, TOCfname:GIF , TOCoffset:2140
 Index1:Index1_const1:00, Index1_len:2108, Index1_offset:32, Index1_const0:00

 ======== TCel ========
 Filename:VMBY, Filesize:   9093, Filetype:TCel
 Header:TOCconst:02, TOCfname:TCel, TOCoffset:6645

 ======== Hyp2 ========
 Filename:VQNM, Filesize:    156, Filetype:Hyp2
 Header:TOCconst:01, TOCfname:Hyp2, TOCoffset:128

 ======== Lnks ========
 Filename:XITE, Filesize:   1270, Filetype:Lnks
 Header:TOCconst:01, TOCfname:Lnks, TOCoffset:1256

 ======== HRle ========
 Filename:XUFW, Filesize:    106, Filetype:HRle
 Header:TOCconst:01, TOCfname:HRle, TOCoffset:92

 ======== PPic ========
 Filename:ZQVA, Filesize:     96, Filetype:PPic
 Header:TOCconst:01, TOCfname:PPic, TOCoffset:68

 ======== Devm ========
 Filename:ZUZS, Filesize:     47, Filetype:Devm
 Header:TOCconst:01, TOCfname:Devm, TOCoffset:33
Check below for the output text of both the EBW 1150 and the REB 1200 above .imp attachments.

More to follow... Isn't hacking/exploring fun? Seek and you shall explore...
Attached Files
File Type: txt imp_dump_output_1150.txt (12.8 KB, 372 views)
File Type: txt imp_dump_output_1200.txt (12.1 KB, 385 views)

Last edited by nrapallo; 06-15-2008 at 09:05 AM. Reason: added link to sucessful markup extraction procedure thread
nrapallo is offline   Reply With Quote
Old 06-12-2008, 04:56 PM   #2
DixieGal
Hi There!
DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.DixieGal ought to be getting tired of karma fortunes by now.
 
DixieGal's Avatar
 
Posts: 7,473
Karma: 2930523
Join Date: Feb 2008
Location: Ft Lauderdale
Device: iPad
Holy Crap! Light years over my head!
Thanks again for helping me today.
DixieGal is offline   Reply With Quote
 
Advertisement
Old 06-12-2008, 08:31 PM   #3
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,828
Karma: 908606
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
nick, i can't pretend to have any competence to help you, but i certainly appreciate all your work.
zelda_pinwheel is offline   Reply With Quote
Old 06-13-2008, 10:15 AM   #4
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
That's ok, it's nice to have an audience and following (oooh groupies....)
nrapallo is offline   Reply With Quote
Old 06-13-2008, 10:35 AM   #5
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,828
Karma: 908606
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by nrapallo View Post
That's ok, it's nice to have an audience and following (oooh groupies....)
oh good, that's well within my reach.
zelda_pinwheel is offline   Reply With Quote
Old 06-15-2008, 09:23 AM   #6
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Update time... Able to extract images in original format!

I am now able to extract images in their original form. For now, I've only coded this for the REB 1200 .imp format, but am able to provide these insights:

1. the image is stored in its original size, not the reduced one you see in the ebook! (I tried this on a REB 1200 conversion of HarryT's "Pride and Prejudice" and the images looked very good. I attach one sample image, JPEG_11544.jpg, below.)

2. In addition to PICT (unknown internal format, but not the Apple (old) image format), these are image formats stored in their own filetype .RES files, namely: JPEG, GIF , and PNG . This PICT format is not understood by either nconvert or irfanview

3. the original image filename is not retained, but replaced with a image resource ID (2 bytes - 0 to 65535).

I attach the images within the REBTestDocument_1200.imp ebook from the IMP books forum. The two PICT images are only in the .zip.
Attached Thumbnails
Click image for larger version

Name:	GIF_41147.gif
Views:	435
Size:	19.2 KB
ID:	13527   Click image for larger version

Name:	GIF_46663.gif
Views:	454
Size:	15.9 KB
ID:	13528   Click image for larger version

Name:	GIF_55888.gif
Views:	443
Size:	16.8 KB
ID:	13529   Click image for larger version

Name:	GIF_58801.gif
Views:	477
Size:	17.8 KB
ID:	13530   Click image for larger version

Name:	GIF_128.gif
Views:	448
Size:	2.1 KB
ID:	13534   Click image for larger version

Name:	PNG_128.png
Views:	459
Size:	4.2 KB
ID:	13535   Click image for larger version

Name:	PIC2_37309.png
Views:	468
Size:	479.8 KB
ID:	13689   Click image for larger version

Name:	PIC2_46317.png
Views:	457
Size:	159.2 KB
ID:	13690   Click image for larger version

Name:	JPEG_11544.jpg
Views:	464
Size:	96.8 KB
ID:	13693  
Attached Files
File Type: zip REBTestDocument_1200_images.zip (246.6 KB, 443 views)
File Type: txt REBTestDocument.output.txt (13.1 KB, 332 views)

Last edited by nrapallo; 06-20-2008 at 10:06 AM. Reason: added two missed .png pics that are in the ebook
nrapallo is offline   Reply With Quote
Old 03-09-2009, 06:34 PM   #7
voidIndigo
Enthusiast
voidIndigo began at the beginning.
 
voidIndigo's Avatar
 
Posts: 33
Karma: 20
Join Date: Feb 2009
Location: Brazil
Device: Sony PRS 505, REB 1200
Hi, nrapallo

I recently bought a REB1200 with a very old firmware (2.0), and I'm having some trouble loading books into it. Basically, all the books I downloaded from here (*_1200.imp, mainly yours, I saw) either restart the reader ou show all the pages as blanks. Also, the books I created from PDF´s with PDFRead show as blanks. All of them show ok in IMPView.

What I find unusual is that the books I created using BookDesigner, GEB Librarian or a photobook creator software are displayed without problems, color and all. Also, the GEB User Manual and a REB 1200 test document that came with ImpServe show ok. (The REB Test Document also seems to NOT show all of its content, specially pictures. Do you have the original file that created it?)

I suppose these errors are caused by the old firmware, but I would like to be certain. Have you ever heard of something like it?

I´m planning to get the firmware update, but it'll take some time. Meanwhile, I would like to try to get some of the books to show in my REB. Do you know any way to do it?

Thanks for your attention,

void Indigo
voidIndigo is offline   Reply With Quote
Old 03-09-2009, 07:32 PM   #8
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by voidIndigo View Post
Hi, nrapallo

I recently bought a REB1200 with a very old firmware (2.0), and I'm having some trouble loading books into it. Basically, all the books I downloaded from here (*_1200.imp, mainly yours, I saw) either restart the reader ou show all the pages as blanks. Also, the books I created from PDF´s with PDFRead show as blanks. All of them show ok in IMPView.
That's strange! The 2.0 firmware requires .RES expanded folders to be placed on the CF card and doesn't expand the .imp when sent to the card, I believe. Do you use unimp.exe?

Quote:
What I find unusual is that the books I created using BookDesigner, GEB Librarian or a photobook creator software are displayed without problems, color and all.
The GEB Librarian and BookDesigner use an older PubUtil21.dll (version 2.1) and the togoWare Photo Album software doesn't use any version of PubUtil21.dll.

So I think the problem is the eBook Publisher's PubUtil22.dll (version 2.2) that I have used to create those _1200.imp ebooks. Can't really do anything here short of using Mobi2IMP and an older eBook Publisher or SBPublisher 1.5. Messy, but doable for the time being.

Quote:
Also, the GEB User Manual and a REB 1200 test document that came with ImpServe show ok. (The REB Test Document also seems to NOT show all of its content, specially pictures. Do you have the original file that created it?)

I suppose these errors are caused by the old firmware, but I would like to be certain. Have you ever heard of something like it?

I´m planning to get the firmware update, but it'll take some time. Meanwhile, I would like to try to get some of the books to show in my REB. Do you know any way to do it?

Thanks for your attention,

void Indigo
However, when you get the firmware update, all will be fixed.

Last edited by nrapallo; 03-09-2009 at 10:56 PM. Reason: typo
nrapallo is offline   Reply With Quote
Old 03-10-2009, 10:05 AM   #9
voidIndigo
Enthusiast
voidIndigo began at the beginning.
 
voidIndigo's Avatar
 
Posts: 33
Karma: 20
Join Date: Feb 2009
Location: Brazil
Device: Sony PRS 505, REB 1200
Hi, Nick

I used unimp at first (I can't remember if worked), but then I´ve got Geb Librarian and after that Impserve, which made the transfers much easier. I download the .imps in my shelf folder and then transfer them to the REB through the ethernet cable.

I checked the Pubutil dlls and you´re right about the version issues. Thanks.

Would it be possible to unimp an 2.2 IMP (made with 2.2 pubutil) and then reimp(!) the RES folder with a 2.1 pubutil dll? (Just thought about it, I will do some search if there IS some kind of RES to IMP software)

I think only in July I'll be able to update the REB. Until then, I think I´ll have some manual editing to do.

Thanks again,

Best regards,

void Indigo
voidIndigo is offline   Reply With Quote
Old 03-10-2009, 12:56 PM   #10
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,772
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by voidIndigo View Post
Hi, Nick

I used unimp at first (I can't remember if worked), but then I´ve got Geb Librarian and after that Impserve, which made the transfers much easier. I download the .imps in my shelf folder and then transfer them to the REB through the ethernet cable.

I checked the Pubutil dlls and you´re right about the version issues. Thanks.

Would it be possible to unimp an 2.2 IMP (made with 2.2 pubutil) and then reimp(!) the RES folder with a 2.1 pubutil dll? (Just thought about it, I will do some search if there IS some kind of RES to IMP software)

I think only in July I'll be able to update the REB. Until then, I think I´ll have some manual editing to do.

Thanks again,

Best regards,

void Indigo
The best way to deal with 2.1 vs 2.2 versions is to simply take a 2.2 version and rename it to 2.1 and then overwrite the older 2.1 file. The interface is the same. I always use a 2.2 version renamed to 2.1 for book designer.

Dale
DaleDe is offline   Reply With Quote
Old 03-10-2009, 01:17 PM   #11
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by DaleDe View Post
The best way to deal with 2.1 vs 2.2 versions is to simply take a 2.2 version and rename it to 2.1 and then overwrite the older 2.1 file. The interface is the same. I always use a 2.2 version renamed to 2.1 for book designer.

Dale
@Dale:

However, in this case, it's the newer ver 2.2 .dll that's causing the problem with his v2.0 (old) firmware.

He's trying to cope with having that older firmware that can't be upgraded for some time.


@voidIndigo:

Best thing to do would be to re-create those '_1200.imp' ebooks using the original source .html or if the .prc ebook is available, then reconvert it using Mobi2IMP to .imp using an older version of eBook Publisher by Gemstar installed or SBPublisher 1.5.

You can't just explode the .imp to .res then recombine it under the older version .dll. It needs to be created with the older version .dll.

If all else fails, then just take the .html/images extracted by Mobi2IMP from the .prc ebook and use GEB Librarian on that .html to recreate the REB1200 .imp!
nrapallo is offline   Reply With Quote
Old 03-10-2009, 07:07 PM   #12
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by nrapallo View Post
@voidIndigo:

Best thing to do would be to re-create those '_1200.imp' ebooks using the original source .html or if the .prc ebook is available, then reconvert it using Mobi2IMP to .imp using an older version of eBook Publisher by Gemstar installed or SBPublisher 1.5.

You can't just explode the .imp to .res then recombine it under the older version .dll. It needs to be created with the older version .dll.

If all else fails, then just take the .html/images extracted by Mobi2IMP from the .prc ebook and use GEB Librarian on that .html to recreate the REB1200 .imp!
I tried the above and it may work well for you! Check it out...

First install Mobi2IMP, then the attached ver 2.1 eBook Publisher by Gemstar and then try converting the attached .prc ebook. I converted it and produced the attached _1200.imp. Then use your Impserve transfer method.

I hope it doesn't reset your reader.

p.s. On a side note, I'm very impressed that Impserve works with firmware v2.0! It's a truly wonderful utility!
Attached Files
File Type: zip Win_eBookPub_2.1.zip (8.23 MB, 462 views)
File Type: prc SpaceEncyclopedia.prc (369.9 KB, 358 views)
File Type: imp Mobipocket - Space Encyclopedia_1200.imp (443.1 KB, 360 views)
nrapallo is offline   Reply With Quote
Old 03-10-2009, 11:22 PM   #13
voidIndigo
Enthusiast
voidIndigo began at the beginning.
 
voidIndigo's Avatar
 
Posts: 33
Karma: 20
Join Date: Feb 2009
Location: Brazil
Device: Sony PRS 505, REB 1200
Quote:
Originally Posted by nrapallo View Post
I hope it doesn't reset your reader.
That makes two of us.

Quote:
Originally Posted by nrapallo View Post
p.s. On a side note, I'm very impressed that Impserve works with firmware v2.0! It's a truly wonderful utility!
I contacted with Ashish Kulkarni and he gave me some pointers to make it work with the 2.0 firmware. All it took was to change the site the REB calls (from ebooksystem.net to softbook.net) inside the main Python script (impserve.py)

I'll try the conversion tomorrow. (It worked! Back to searching mobi books...)

very much for your attention (good thing there's a smile to say thanks. I think I'll be using it a lot!! )

Best regards

void Indigo

Last edited by voidIndigo; 03-11-2009 at 08:51 AM. Reason: Tested procedure
voidIndigo is offline   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
Merging multiple HTML files into one HTML file skoobwoman Workshop 45 07-11-2014 11:46 AM
HTML + Images = MOBI without Images SunLight Amazon Kindle 5 08-25-2012 03:27 PM
Extracting pdb files from Palm Installer bpwhistler Alternative Devices 0 11-15-2008 04:07 PM
Html files with images, is it possible? megaman Bookeen 4 10-27-2008 07:28 AM
HTML with images? Moonraker Bookeen 11 01-10-2008 10:05 PM


All times are GMT -4. The time now is 08:52 PM.


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