10-24-2009, 06:54 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: bebook (planning)
|
Question for Sigil users
I'm pearblossom from Holland.
This week I tried out Sigil. I'm very happy with it and I've created my first epub book with it. One thing I don't seem manage though....... In some epub-books I've seen that the cover image (or any other image) is being automatically scaled down or up, varying to the zoom size of the reader (for example in Adobe Digital Editions). Does anyone know what and where to change that in the automatically generated code? Last edited by pearblossom; 10-25-2009 at 07:38 PM. |
10-24-2009, 07:08 PM | #2 |
Reader
Posts: 11,504
Karma: 8720163
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
|
Welcome to the forum, pearblossom.
I'll move your post to the Sigil forum, so that you'll get an informed answer. |
Advert | |
|
10-24-2009, 09:36 PM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: bebook (planning)
|
Anyone?
Last edited by pearblossom; 10-25-2009 at 10:31 PM. |
10-26-2009, 09:10 AM | #4 |
Connoisseur
Posts: 63
Karma: 250
Join Date: Jul 2009
Device: PRS-505
|
Hi,
I'm really scratching the surface of Epub format, but I was reading the Adobe Best Practices document and the have a specific section about the cover page image. The EPUB document can be found here. Check the Cover Page and Illustrations section. Maybe you'll find your answer there. Regards Paulo |
10-26-2009, 09:38 AM | #5 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
This book uses the first approach, and this one uses the second approach. Take a look at the code they use. Sorry, I seem to have missed your post the first time around. |
|
Advert | |
|
02-23-2010, 08:06 AM | #6 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Just to make this clear..
SVG support means only that it can read ePubs with SVG elements, right? I tried with one ePub file which contains SVG element and it works fine but I want to create SVG element without copy-pasteing it from some other ebook. Afaik, this is impossible in Sigil atm, am I correct? Is it going to be supported in later Sigil versions that user can create SVG elements with the editor? |
02-23-2010, 10:22 AM | #7 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Sigil also support PNG, JPG and TIFF images, but that doesn't mean it will ever be Photoshop. An ebook editor needs support for displaying image formats, but not editing them. You use something else for that (like PS for bitmap files and Inkscape for vector art). |
|
02-24-2010, 01:36 AM | #8 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Thank you for the answer, Valloric!
This is just an example but I was more thinking about if there would be a button to create simple SVG element e.g. Code:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 685 1000" preserveAspectRatio="xMidYMid meet"> <image width="685" height="1000" xlink:href="images/image.jpg" /> </svg> |
02-24-2010, 11:21 AM | #9 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
That's different. Wrapping an image in SVG so that it automatically scales is a common use case in epub editing and is planned for inclusion into Sigil. Something like a right-click menu option on an image in the Book View, "Wrap in SVG".
|
11-11-2010, 06:13 AM | #10 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Hey! Are you still working on this feature or have you decided not to do it?
|
11-11-2010, 06:48 AM | #11 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I have some template xhtml files on my disk which I can add to an epub in Sigil. So, if I want a cover, I create a cover.xhtml in Sigil, add the cover jpg and paste the source code from my template file into the cover.xhtml. Presto, a working scalable cover with SVG.
It saves me a lot of hassle. |
11-11-2010, 10:32 AM | #12 |
Dylanologist
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
This code does NOT work for resizing jpeg files:
<p><img alt="Cover_Name" src="../Images/Cover_Name.jpg" width="100%" height="100%" /></p> The resizing taking place looks terrible.This line works, but does not resize image: <p><img alt="Cover_Name" src="../Images/Cover_Name.jpg" /></p> JUst my 2¢ from trial and error. - Fabe
|
11-11-2010, 11:26 AM | #13 | |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
A bit safer would be "max-width=100%", which keep the images proportion. The actual quality of the resizing is device dependent. |
|
11-11-2010, 12:04 PM | #14 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
11-17-2010, 11:43 AM | #15 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Okayh. Thank you for your answer! But I still think it would be good and useful feature
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about using Sigil to convert HTML | ficbot | Sigil | 9 | 03-06-2011 08:12 AM |
Question for Toronto Public Library users | ficbot | General Discussions | 5 | 05-12-2010 07:36 PM |
Sigil Newbie Question | 93terp | Sigil | 2 | 01-11-2010 07:22 PM |
Question for iPhone / ipod users | David J. Guyton | Apple Devices | 6 | 03-24-2009 11:29 AM |
Question for mac users | jerryleejr | Sony Reader | 6 | 02-06-2008 12:59 AM |