|
Hi
As slowsmile told us, some kind of relative calculation can be quite useful for Kindle users. I think this usefulness is not limited to Kindle users because it can also provide a very simple and precise way of displaying images for any Epub. As I wrote above, I make exclusive and systematic use of it with Koreader and with Prince PDF, with consistently good results.
As it can be of general use, one could wonder if the result of this calculation could not be included in the Sigil report tool for image files. Currently, this Sigil report namely informs the user about the size of the image, its width and height (in px), and its number of pixels (?).
Could we change this last column or just add a new one to indicate the "advised screen size" in percentage? (It could also be named "advised relative width" or any other name). As written on a post above, it would concern only the images whose advised displayed percentage falls under 100%. The purpose of this report is to provide the user with information so this new column would not look out of step with this purpose.
The user would decide what to do next with this information and would have to clean its image tags before using it. This latter task can be done using some plain regex.
Using this inline style is also practical: as it provides a unique individual value for one image, it seems it makes sense to keep it within its img tag so that the user may be able to modify it directly in code view instead of searching its css file to modify its value.
Last edited by roger64; 07-29-2017 at 06:44 AM.
Reason: practical
|