![]() |
#1 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Use of SVG wrapper in Add Cover module
I'm curious about Sigil's use of the SVG wrapper when using its Add Cover module. Putting aside Apple's war on the SVG wrapper, I thought it had fallen out of use in favour of just putting the image in with a height value of 100%. Or, to accommodate Apple, putting the cover image in a div class whereby the height value is set in the CSS. What have I missed?
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I don't know what you have missed, but I still get the best results with the SVG wrapper. I don't care about Apple...
|
![]() |
![]() |
![]() |
#3 | |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
Apple don't allow the SVG wrapper for internal images, but I cannot recall if that mandate also applies to the cover. Does anyone know? Also, the SVG wrapper of my past included a max-height and max-width to prevent upsizing of small images on larger screens. Sigil's SVG wrapper specifies the height and width but does not use the prefix "max". Does that change the behaviour on screens that exceed the pixel count of the image? |
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
I really don't like Apple ignoring the standards for no good reason at all, just because they are Apple. The wrapper Sigil uses is in use for many years now and works fine for both larger and smaller screens. It will autofit the cover to the screen while maintaining the aspect ratio. |
|
![]() |
![]() |
![]() |
#5 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I use the Sigil Add Cover option. I don't use the iBookstore, however, so I have no idea what the result is.
I don't like the closed Apple universe, but I do care about the iBookstore. With B&N, they are for me the only competition for Amazon, and I dread the prospect of a world in which Amazon has no competition. (Remember the 35 percent royalty before Apple came along -- and got sued for price-fixing!) Some months B&N sells more copies, some months it's Apple. The others are nice to see, but they wouldn't sustain a business model without B&N and Apple. Some authors claim big sales with Kobo, but I've never seen them. |
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Please don't politicize these threads with opinions on competition, price-fixing and other highly volatile subjects. There's plenty of that type of conversation available out in the general forums. None of it is relevant to technical questions/conversations about Sigil anyway.
Sigil's generated cover is epub compliant. If people need special, vendor-specific, or non-compliant cover-image solutions, consider creating (or sponsoring) a third-party Sigil plugin to accomodate your needs. That's a big part of the reason Sigil's plugin framework was created in the first place. Output plugins that take the stock epub version of a document and prepare it for specific vendors/retailers would be the perfect solution for those who only want to maintain one master version of their ebook, I would think. The Kindleizer, iBooksit, etc. ... That way, Sigil itself is left out of the equation. It's main concern is making a vanilla, compliant epub, afterall. Last edited by DiapDealer; 11-17-2016 at 08:07 AM. |
![]() |
![]() |
![]() |
#7 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Though such changes might not be difficult to implement, the plugin could save a lot of tedious editing. Albert |
|
![]() |
![]() |
![]() |
#8 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<meta content="cover.jpg" name="cover" /> Quote:
|
||
![]() |
![]() |
![]() |
#9 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
I also do a couple of other tweaks: To prevent the "double cover" issue, I point the "cover" guide element to the actual cover image (not the cover.xhtml file) and delete the cover.xhtml file: Code:
<reference type="cover" title="Cover" href="Images/cover.jpg"/>
Code:
<reference type="text" title="Start Reading" href="Text/Chapter001.xhtml"/>
Beyond that, I don't do anything special to the mobi-precursor epub, other than avoiding CSS selectors such as :first-line and :first-letter that don't work reliably across all or most of the kindle variants. Quote:
|
||
![]() |
![]() |
![]() |
#10 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
ERROR(OPF-032): Guide references 'OEBPS/Images/cover.jpg' which is not a valid 'OPS Content Document'. Quote:
Quote:
Quote:
![]() |
||||
![]() |
![]() |
![]() |
Tags |
cover image, sigil, svg wrapper |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using Calibre svg cover wrapper for full-page images | roger64 | Editor | 8 | 02-05-2015 08:02 PM |
Svg wrapper and image resizing | Nabodita | ePub | 24 | 05-02-2014 12:21 AM |
Need Example SVG wrapper including caption | GrannyGrump | ePub | 30 | 11-06-2013 03:20 AM |
Adding an SVG Wrapper | ghostyjack | Sigil | 16 | 06-15-2013 05:13 AM |
An Issue about a SVG wrapper | RbnJrg | Kindle Formats | 29 | 06-10-2013 08:11 PM |