09-03-2008, 11:20 AM | #106 | |||||
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
One quick test: can you create a new HTML in your content and include the image and see if it crashes if you navigate locally? If not, then does adding 2 or 3 different large images causes it to crash? If it does crash, then we need to benchmark the maximum size of the images allowed and if they are encountered, then do some handling in impserve for that. Quote:
Quote:
Quote:
Quote:
|
|||||
09-03-2008, 11:52 AM | #107 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
|
Advert | |
|
09-03-2008, 12:12 PM | #108 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
|
09-03-2008, 12:35 PM | #109 | |||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
A solution (for large images crashing the reader) could be for a plugin to 'convert' all images (over a certain size) to 16 or 256 colors, if possible. :nudge: :nudge: Quote:
Last edited by nrapallo; 09-03-2008 at 12:41 PM. |
|||
09-03-2008, 01:39 PM | #110 | |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Some more things to try out: use imagemagick or Irfanview or <tool-of-choice> to actually do the conversion and see if it makes a difference. Also, does the format matter? i.e. GIF vs PNG vs JPG -- if you can convert all images to one format and see if using one results in less crashes i.e. less memory use, then it'd make more sense to develop a plugin that would resize the image to the 1150's display size and save in the least-memory-consuming format. I really wish I had that 1150 with me to test all this... |
|
Advert | |
|
09-03-2008, 02:49 PM | #111 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
New test .imp ebook for impserve...
I compiled the Mobileread Full List (with only .IMP ebooks) here at mobileread.com as of today (Sept 3, 2008) into ebook format.
Try and see if you can download it to your reader from here, If not, just download it to your computer and then upload it to your reader from there! then open the ebook on the reader and select a title therein. This will surf to the upload thread with description and link to the actual .imp. Select the .imp link and it will be downloaded directly into your reader. Now the fun begins, you have to find it under some category. Usually the 'General Interest' category is used so look there first. This works great for me, as long as I strike out that part above, when using my EBW1150! Have fun and give us some feedback on how well this works for you (state your reader and firmware if you experience problems)! As usual, the ebook ending with _1200.imp is for the REB1200; the other .imp for the EBW1150. Last edited by nrapallo; 09-03-2008 at 09:42 PM. |
09-03-2008, 09:02 PM | #112 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Cousins, Adrienne: Kindle Bookmarks v0.11, Sep 3,2008
This ebook has been uploaded to the IMP ebook section to faciliate 'surfing the internet' using PDA Friendly links.
BTW, the best way to use the "back" button feature is to hit the 'last book' icon at the bottom left of your screen (not the directory icon!) How timely! Just ignore any irrelevant links; and maybe "roll-your-own" and share... |
09-04-2008, 04:18 AM | #113 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
I've released version 0.4.2. Changes:
- correct a small typo when impserve reported itself as impmake while starting up - changes for creating a standalone windows version via py2exe Please note that you will require to install eBook Publisher seperately for using impmake, which hasn't been bundled. Thanks to nrapallo for the suggestion to create a windows-only version, which would be more helpful for people to get it up and running. Last edited by ashkulz; 09-04-2008 at 04:31 AM. Reason: correct typo |
09-04-2008, 08:36 AM | #114 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
I have a suggestion. At some point are you going to add file conversion to impserve? Given that it is running on a computer, we do have the processing cycles to spare.
My suggestion is that you prepare for the new feature by having impserve download incompatible files (like ZIP and PRC) to the content folder. |
09-04-2008, 10:37 AM | #115 | |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Code:
# WARNING: this is untested code that I cooked up in 5 minutes. Take it only as an example!
import impserve
import os, subprocess
class PrcConverter(impserve.ProxyResponse):
def get_response(self, url, headers, data):
if not 'application/x-palm-prc' in headers['Content-Type']:
return headers, data
open('input.prc', 'w').write(data)
# assuming a command prc2imp exists
if not subprocess.call(['prc2imp', 'input.prc', '-o', 'output.imp']) or not os.path.isfile('output.imp'):
return headers, data
headers['Content-Type'] = 'application/x-softbook'
data = open('output.imp').read()
os.remove('input.prc')
os.remove('output.imp')
return headers, data
Code:
application/x-palm-prc prc pdb
Last edited by ashkulz; 09-04-2008 at 10:43 AM. |
|
09-04-2008, 11:12 AM | #116 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Thanks for this headstart! A plugin it be, then.
Oh, now you KNOW that this command will be 'Mobi2IMP (dos version)'; the GUI version would just interfer too much with the flow. OK, just to remember where my Beginner's Guide to Python is... oh, right here on my REB1200... |
09-04-2008, 02:06 PM | #117 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Oh, let me see, I should have one lying around here somewhere... oh, here it is! It's the Impserve startup page (MobileRead edition)! Just extract index.html in the below content.zip and place it in your 'content' directory. While you are at it, use the included impserve-start.bat to startup the program. It belongs in the same directory where impserve.exe resides! This assumes you are using the windows (win32) executables! Also, useful posts to review once you start using impserve: AdjustSmallestFont.py First user-supplied plugin (forces smallest font) for impserve... Enjoy!
mrbooks-09-03-08.imp test .imp ebook for impserve direct .imp downloading... Cousins, Adrienne: Kindle Bookmarks v0.11, Sep 3,2008 .imp ebook with PDA-friendly links... Last edited by nrapallo; 09-04-2008 at 05:10 PM. |
|
09-04-2008, 10:55 PM | #118 | |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
EDIT: add a link to your post in the first post. Last edited by ashkulz; 09-04-2008 at 10:58 PM. |
|
09-04-2008, 11:55 PM | #119 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Ashish:
I agree; choice to install content is better than no content... Also, I tried your PrcConverter.py, but I got a message on startup that it failed to load. Any ideas why that would happen. I ran the script on its own to see if there were any syntax errors but only got the message that impserve wasn't defined. I know you are away for a bit, but does anything appear wrong with this: Code:
# v0.1 - Inital plugin idea by ashkulz; Adapted by nrapallo (Sept 2008) import impserve import os, subprocess class PrcConverter(impserve.ProxyResponse): def get_response(self, url, headers, data): if not 'prc' in headers['Content-Type']: return headers, data open('input.prc', 'wb').write(data) # using a command to convert .prc to .imp 'on the fly'... copied "C:\Program Files\Mobi2IMP\bin\Mobi2IMP.exe" to impserve directory if not subprocess.call(['Mobi2IMP', '--cover', '--o', 'output', 'input.prc']) or not os.path.isfile('output.imp'): return headers, data headers['Content-Type'] = 'application/x-softbook' data = open('output.imp', 'rb').read() os.remove('input.prc') os.remove('output.imp') return headers, data Code:
Loaded plugin: AdjustHtml.py Loaded plugin: AdjustQueryString.py The following plugins failed to load: PrcConverter.py impserve 0.4.2: starting server on 127.0.0.1:9090 |
09-05-2008, 12:04 AM | #120 | |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Code:
ashish@hunger:~/sandbox/ebookutils/impserve$ python run.py Loaded plugin: AdjustHtml.py Loaded plugin: AdjustQueryString.py Loaded plugin: PrcConverter.py impserve 0.4.2-dev: starting server on 0.0.0.0:9090 |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Confused about personal content re: eBookwise 1150 | locomouse | Fictionwise eBookwise | 6 | 11-25-2009 12:52 PM |
PDFRead - reading PDFs on the 1100/1150/1200 eBook Readers | ashkulz | IMP | 87 | 06-04-2009 02:43 PM |
How do you get new content onto your eBookwise 1150 / REB 1200? (pick all that apply) | nrapallo | Fictionwise eBookwise | 23 | 02-03-2009 04:34 PM |
Hacking EBW-1150 to browse the Internet | sputnik | Fictionwise eBookwise | 44 | 08-27-2008 08:40 AM |
Comparing 1150 to 1200 or 2150 | Katelyn | Fictionwise eBookwise | 1 | 04-29-2007 11:38 AM |