Thread: Image upscale
View Single Post
Old 09-13-2023, 02:58 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,740
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I would suggest something like using a style to set the image size relatively close to the text size. Change the height to get your best match.

Something like:

Code:
.formula {
height: 1.5em;
width: auto;
}
And in the text files, use something similar to the following:

<img alt="formula name" class="formula" src="../Images/formula002.jpeg">

I suspect that Regex will be your best friend for this task.
DNSB is online now   Reply With Quote