View Single Post
Old 07-30-2017, 01:23 AM   #19
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)
Quote:
Originally Posted by theducks View Post
roger64
the size of all embedded images (image files) is in Tools: Reports
Quote:
Originally Posted by roger64 View Post

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.
Indeed and I was just saying that this report could be completed. (see bold characters). I put a question mark after the last item (pixels) just to question its general use and I proposed to change precisely this last column.

I must complete this above post: though a regex will be enough to clean every img tag and insert a global percentage inline, it will nevertheless still be necessary to mark manually each image tag with its individual percentage value (to avoid this a plugin has been previously proposed).

Last edited by roger64; 07-30-2017 at 02:11 AM. Reason: manually
roger64 is offline   Reply With Quote