View Single Post
Old 12-28-2023, 01:00 PM   #60
CrankyLamb
Member
CrankyLamb began at the beginning.
 
CrankyLamb's Avatar
 
Posts: 10
Karma: 10
Join Date: Dec 2023
Device: none
Quote:
Originally Posted by elibrarian View Post
You're right; it's not a bug in Sigil � it's a bug in ADE from � I think � version 4 and up. It renders SVG-covers very small, but I've found that putting

style="height:98vh;"

(the "98" can be any percentage) into the SVG-code forces ADE to render it correctly, and doesn't seem to bother other readers. It only works by putting it directly in the SVG-code.

Sample:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
style="height:98vh;" xmlns:xlink="http://www.w3.org/1999/xlink"
width="100%" height="100%" viewBox="0 0 1650 2200"
preserveAspectRatio="xMidYMid meet"> <image width="1650" height="2200"
xlink:href="../Images/hawthorne-det_roede_bogstav.jpg"/>

(the code may not be "state of THE art", just state of MY art )


Regards

Kim
I'm having a problem in Calibre & ADE that this thread seems to have found the solution for.

Yesterday I reported in this thread that:

"Many of my eBooks have cover photos that appear too large, too small (thumbnail), and/or are not positioned at the center of the page."

A perfect cover page for me looks like this:



1. It is placed at the center
2. It fits the entire page


I was trying to find a solution to fix that in Calibre to no avail, until I came across this thread. I replaced the height and width % with vh and vw respectively, and it seems to work now.

The question is for how long? Will applying this fix cause me some problems later on? Say when ADE gets an update and fixes this bug?

I'd appreciate your opinion.

PS: I know nothing about code, and I'm a complete newbie.
CrankyLamb is offline   Reply With Quote