View Single Post
Old 08-26-2011, 06:13 AM   #38
kranu
I <3 my Kindle
kranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensions
 
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
Quote:
Originally Posted by Mario1up View Post
That's a great script, Kranu. I'm having fun hosting little bits of HTML on my local network. Do you know if it's possible to link a local HTML file to throw up instead?

On topic though, I found that with your current image dimensions, the Kindle creates a scroll bar and scales the image a little. I reduced them to 595x701 and it works great with no scroll bars and pixel-perfect scaling. I also changed the "100%" scaling to exact pixel dimensions. This is very useful, thank you.
Yes, it's very much possible to output an HTML file. You would just use code similar to reading the picture but instead use your file. However, I wanted to keep my application as self-contained as possible, so I put all the HTML code as strings inside of the python script.

Hmm, I never really experimented with the size of the image. I just picked something that looked OK to me I'll take note of those dimensions in case I ever release an update to my script.
kranu is offline   Reply With Quote