MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Sigil 1.0.0 and cover-image (https://www.mobileread.com/forums/showthread.php?t=326981)

z537815 01-30-2020 11:54 AM

Sigil 1.0.0 and cover-image
 
Greetings.

I've noticed that with most - if not all - ebooks the cover is specified simply as an <img src="..."/>. So far, so good.

But if I do Tools > Add Cover, the new one gets specified as <svg ><image ... /></svg>.

Why? The cover-image is just that: a JPEG-file. Why the "sudden" switch to vector graphics? What am I missing here?

jhowell 01-30-2020 12:14 PM

The SVG wrapper is used because SVG supports the ability to scale an image to fit a screen having any aspect ratio as fully as possible without distortion. The HTML img element lacks this capability.

Tex2002ans 01-30-2020 12:29 PM

See this thread from 2018:

SVG Images - Why?

In my Post #11, I show examples of what can happen without the SVG wrapper. (Images can get heavily distorted/cropped.)

DiapDealer 01-30-2020 01:44 PM

You keep mentioning Sigil 1.0.0 in regards to things that have been a part of Sigil for many years. It's fine; it's just that I keep seeing the headlines and thinking there's some new issue that 1.0.0 has introduced (and panicking just a bit to be honest ;) ).

Is 1.0.0 the first version of Sigil you've used, or are you coming from an ancient version that didn't have many of these features?

Notjohn 01-30-2020 05:46 PM

Quote:

Originally Posted by jhowell (Post 3947386)
The SVG wrapper is used because SVG supports the ability to scale an image to fit a screen having any aspect ratio as fully as possible without distortion. The HTML img element lacks this capability.

Thank you! I've never understood the point of SVG, and you have distilled it in two short sentences.


All times are GMT -4. The time now is 10:24 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.