Thread: Bulk CSS Edit?
View Single Post
Old Today, 01:25 AM   #20
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: 50,793
Karma: 178402710
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
You do not need to convert ePub > ePub. Retail ePub has the cover at the correct aspect ratio. However, if you get a generic cover or want to change the cover, use Modify ePub by first replacing the cover in Edit metadata.
Ummm... I have had several retail ePubs where the cover did not have the correct aspect ratio. Some stretched/shrank the image to fill the entire screen using img elements, others used incorrect (from my point of view) settings for the preserveAspectRatio ranging from none to xMaxYMax and one publisher which used xMidyMid (does not have the y in upper case which caused a couple of renderers to barf) and another that used slice instead of the default meet for the second option to preserveAspectRatio).

My default for that part of the svg wrapper is:
Code:
width="100%" height="100%" viewBox="0 0 1125 1500" preserveAspectRatio="xMidYMid meet">
The 1125x1500 is my default for 3x4 images with 1000x1500 used for 2x3 images.
DNSB is offline   Reply With Quote