02-04-2015, 08:46 PM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Using Calibre svg cover wrapper for full-page images
Hi
The Calibre-cover svg wrapper is handy to use. I plan to use it too for other full-page images. I imagine all I would have to do would be: 1. - create an empty xhtml file where to insert the image 2. - paste the standard Calibre code within 3. - adapt it to the concerned image (src, dimensions, ViewBox...) For the second part, I do not know how I should adapt this small part: Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="calibre:cover" content="true"/> <title>Cover</title> Last edited by roger64; 02-04-2015 at 08:50 PM. |
02-04-2015, 09:05 PM | #2 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The second line is obviously not applicable and the first line is just fluff.
The third line is random filler -- EPUBs don't care what goes in the title tags. And none of it really matters AFAIK. |
Advert | |
|
02-05-2015, 02:47 AM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@eschwartz
I think I can cope with that |
02-05-2015, 03:20 AM | #4 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Or, we can use this snippet...
Code:
<div> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $1 $2" preserveAspectRatio="xMidYMid meet"> <image width="$1" height="$2" xlink:href="${3:filename}"/> </svg> </div>$4 |
02-05-2015, 05:54 AM | #5 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Up to now, I have a longer text because I wish get a full page display and use a separate page. So this is what I use today.
But of course, a python script would be most welcome... I wonder how we could use the export function of Reports/images for this purpose. Spoiler:
Last edited by roger64; 02-05-2015 at 06:03 AM. |
Advert | |
|
02-05-2015, 06:36 AM | #6 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Well yes...
But I do not mean a python script, but the snippets of Calibre's editor, that can be used in an existing or a new html, as you would like. |
02-05-2015, 08:45 AM | #7 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks for the snippet.
The csv export format from "Reports" has the values $1, $2 and $3 for all the image files. so I thought something could probably be done to automatize it. Just letting the idea float... |
02-05-2015, 10:53 AM | #8 | |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Quote:
Sorry. I thought this thread was to facilitate insertion of a svg wrapper with Calibre editor. |
|
02-05-2015, 08:02 PM | #9 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
You're absolutely right... but when you see how easily you can do it for one picture, then, there is probably nothing wrong thinking about doing it for several "full-page images"....
Last edited by roger64; 02-05-2015 at 08:10 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
How to center/fit page width SVG images with <OBJECT> | amoroso | ePub | 0 | 07-31-2010 11:48 AM |