Quote:
Originally Posted by Mario1up
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.