Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-24-2009, 06:54 PM   #1
pearblossom
Junior Member
pearblossom began at the beginning.
 
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.
pearblossom is offline   Reply With Quote
Old 10-24-2009, 07:08 PM   #2
Patricia
Reader
Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.
 
Patricia's Avatar
 
Posts: 11,520
Karma: 2199070
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.
Patricia is offline   Reply With Quote
Old 10-24-2009, 09:36 PM   #3
pearblossom
Junior Member
pearblossom began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: bebook (planning)
Anyone?

Last edited by pearblossom; 10-25-2009 at 10:31 PM.
pearblossom is offline   Reply With Quote
Old 10-26-2009, 09:10 AM   #4
pedgarcia
Connoisseur
pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.
 
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
pedgarcia is offline   Reply With Quote
Old 10-26-2009, 09:38 AM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by pearblossom View Post
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?
There are several ways to do this. The IMO best and easiest way would be through CSS, but then you can only scale the image down. With SVG, you can scale it both ways.

This book uses the first approach, and this one uses the second approach. Take a look at the code they use.

Quote:
Originally Posted by pearblossom View Post
Anyone?
Sorry, I seem to have missed your post the first time around.
Valloric is offline   Reply With Quote
Old 02-23-2010, 08:06 AM   #6
Chang
Connoisseur
Chang began at the beginning.
 
Posts: 77
Karma: 34
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?
Chang is offline   Reply With Quote
Old 02-23-2010, 10:22 AM   #7
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by Chang View Post
Is it going to be supported in later Sigil versions that user can create SVG elements with the editor?
This will never be possible with Sigil. SVG is a huge format (much bigger than epub), and to create SVG images you need a full-blown vector image editor, something like Inkscape (OSS and free) or Adobe Illustrator.

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).
Valloric is offline   Reply With Quote
Old 02-24-2010, 01:36 AM   #8
Chang
Connoisseur
Chang began at the beginning.
 
Posts: 77
Karma: 34
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>
So the user could easily add a scaling cover for the ebook. But yes, SVG is a huge format. Anyway, keep up the good work!
Chang is offline   Reply With Quote
Old 02-24-2010, 11:21 AM   #9
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by Chang View Post
So the user could easily add a scaling cover for the ebook.
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".
Valloric is offline   Reply With Quote
Old 11-11-2010, 06:13 AM   #10
Chang
Connoisseur
Chang began at the beginning.
 
Posts: 77
Karma: 34
Join Date: Oct 2009
Device: none
Quote:
Originally Posted by Valloric View Post
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".
Hey! Are you still working on this feature or have you decided not to do it?
Chang is offline   Reply With Quote
Old 11-11-2010, 06:48 AM   #11
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,899
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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.
Toxaris is offline   Reply With Quote
Old 11-11-2010, 10:32 AM   #12
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
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
Fabe is offline   Reply With Quote
Old 11-11-2010, 11:26 AM   #13
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,049
Karma: 4347035
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Fabe View Post
This code does NOT work for resizing jpeg files:
<p><img alt="Cover_Name" src="../Images/Cover_Name.jpg" width="100%" height="100%" /></p>
That forces the height and with to be 100%, at the cost of changing the proportions. Also, 100% height can be actually interpreted as 100% width (i.e., a square image), depending on the context.

A bit safer would be "max-width=100%", which keep the images proportion.

The actual quality of the resizing is device dependent.
Jellby is offline   Reply With Quote
Old 11-11-2010, 12:04 PM   #14
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by Chang View Post
Hey! Are you still working on this feature or have you decided not to do it?
Neither. I haven't started work on this yet, there are currently more important things on my TODO list.
Valloric is offline   Reply With Quote
Old 11-17-2010, 11:43 AM   #15
Chang
Connoisseur
Chang began at the beginning.
 
Posts: 77
Karma: 34
Join Date: Oct 2009
Device: none
Okayh. Thank you for your answer! But I still think it would be good and useful feature
Chang is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


MobileRead.com is a privately owned, operated and funded community.