Peter Hansen wrote:
> rbt wrote:
>> What's a good way to resize pictures so that they work well on html 
>> pages? I have large jpg files. I want the original images to remain as 
>> they are, just resize the displayed image in the browser.
> 
> These two things are mutually exclusive by most people's definition of 
> "work well".  You can't push the resizing down to the browser *and* 
> "work well" when working well includes avoiding downloading massive JPGs 
> when only small images are to be shown.
> 
> Can you clarify what you really want? 

Sure, sorry. I use Python to generate html pages. I link to several 
large images at times. I'd like to display a thumbnail image that when 
clicked will go to the original, large jpg for a more detailed view.

  "resize ... image in the browser"
> implies merely using "width" and "height" attributes... 

How does one do that and keep the original ratio intact?

> size of the image *after* the whole thing has been downloaded, in which 
> case this would be solved with mere attributes on the IMG element.
> 
> -Peter
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to