Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-25-2013, 08:57 PM   #1
Greg7976
Junior Member
Greg7976 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2013
Device: ipad
Adding photos to Sigil

With the last problem out of the way, I have another question.

When adding pics to Sigil do they have to be a certain size? I have added one and it was way way too big with no way to edit the size. Does this have to be done in G.I.M.P or another editor?

Thanks again
Greg7976 is offline   Reply With Quote
Old 05-25-2013, 09:33 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,903
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Greg7976 View Post
With the last problem out of the way, I have another question.

When adding pics to Sigil do they have to be a certain size? I have added one and it was way way too big with no way to edit the size. Does this have to be done in G.I.M.P or another editor?

Thanks again
Because of misbehaving devices, it is better to get the image size close than rely on the use of the scaling option of the img tag

The image editor is your choice
theducks is offline   Reply With Quote
Advert
Old 05-26-2013, 02:08 AM   #3
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
As a side remark, I would advise to spent some time on basic HTML/CSS knowledge. That will help you greatly on your ePUB endeavours.
Toxaris is offline   Reply With Quote
Old 05-26-2013, 07:04 AM   #4
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
You can bring the images in in whatever size then right click to open with to bring them down to size, as you go through the work in the later stages. Even free editors like irfanview can resize successfully, so any at all will do.

Note, this is a less desirable tactic if the images are jpgs or other lossy compression format pictures, since jpgs and the like lose quality with each reopening and then saving. How significant this is you will have check and judge for yourself.
mrmikel is offline   Reply With Quote
Old 05-26-2013, 09:16 AM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
I usually do something like this, at least for covers. Are there downsides?

Quote:
/* <p><img class="cover" alt="Cover Art" height="800" src="../Images/photo.jpg" /></p> */

img.cover {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
That way I don't (I think) have to worry about photos being too large

Paul
phossler is offline   Reply With Quote
Advert
Old 05-26-2013, 11:24 AM   #6
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
There is one downside. Margin auto gets ignored by a lot of readers and interpreted as 0.
Toxaris is offline   Reply With Quote
Old 05-26-2013, 05:26 PM   #7
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by Toxaris View Post
There is one downside. Margin auto gets ignored by a lot of readers and interpreted as 0.
I copied that fragment from a CSS 'cookbook' website and just added it into my 'standard' stylesheet, where I keep useful pieces of CSS

So far, it works with my Kindle, and I'm basically the only user I need to please

However, I have done favors for the rest of the family, and they don't all have a Kindle.

Is there a recommended replacement for auto, or doesn't it really matter?

Paul
phossler is offline   Reply With Quote
Old 05-26-2013, 05:28 PM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Toxaris View Post
There is one downside. Margin auto gets ignored by a lot of readers and interpreted as 0.
Most readers will interpret auto so as to center the image.

Dale
DaleDe is offline   Reply With Quote
Old 05-26-2013, 10:14 PM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Even if the reader doesn't understand "auto" the text-align:center will get it centered properly. Using them both together as you have done works well.

I'm not sure about the height:800... If it is viewed on a screen smaller than 800 (landscape?) wouldn't that clip? You could add a max height/width to a generic img tag to prevent that:

img {max-height:100%; max-width:100%}
Turtle91 is offline   Reply With Quote
Old 05-27-2013, 09:11 AM   #10
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by Turtle91 View Post
I'm not sure about the height:800... If it is viewed on a screen smaller than 800 (landscape?) wouldn't that clip? You could add a max height/width to a generic img tag to prevent that:

img {max-height:100%; max-width:100%}
Good suggestion. I'll experiment with that.

I'll also try just the max-width setting, since (at least the way I had been doing it) the image aspect ratio wasn't maintainted, and it streached

Thanks again

Paul
phossler is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding video to an ebook in Sigil mgardner Sigil 14 02-22-2013 07:47 PM
Sigil Adding White Space? beingnickb Sigil 20 07-31-2012 07:43 AM
Request Adding Photos To Gallery??? HypnoticEyez enTourage eDGe 7 01-06-2012 07:09 AM
Adding Photos to Gallery golf_squared Kobo Tablets 11 12-30-2011 10:09 AM
Sigil Automatically Adding Code christinerose Sigil 7 04-28-2011 11:07 AM


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


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