View Single Post
Old 08-05-2017, 06:44 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
About image display in viewer

Hi

It happens I may have to tune some image display. The easiest and quickest way -for me- is to use an inline style written within the img tag because it has the highest priority and so I do not have to fiddle with the css stylesheet. I just insert:

Code:
style="width:xx%;"
One example can be one image 400px wide that I wish to display with a 100% width.

This is sufficient with, say Koreader or Prince PDF to obtain the required display. However, I remarked that the Calibre viewer requires an additional height information, if not the image can be distorted. I managed to get a good result, adding the height:auto parameter.

Code:
style="width:xx%;height:auto;"
As this height:auto parameter is usually not required for other reading software, would it be possible for the viewer, if it's missing, to use it as a default ?

Last edited by roger64; 08-05-2017 at 06:48 AM.
roger64 is offline   Reply With Quote