View Single Post
Old 11-11-2010, 11:26 AM   #13
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,563
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Fabe View Post
This code does NOT work for resizing jpeg files:
<p><img alt="Cover_Name" src="../Images/Cover_Name.jpg" width="100%" height="100%" /></p>
That forces the height and with to be 100%, at the cost of changing the proportions. Also, 100% height can be actually interpreted as 100% width (i.e., a square image), depending on the context.

A bit safer would be "max-width=100%", which keep the images proportion.

The actual quality of the resizing is device dependent.
Jellby is offline   Reply With Quote