Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-02-2013, 10:20 AM   #1
Claire3001
Junior Member
Claire3001 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2013
Device: Kindle, Kobo, Nook, Google Nexus, iPad
Unhappy File size increases when editing in Sigil

My company had an ePub made for us and I'm editing it in Sigil on Windows Vista. It's an image heavy file, which was 26MB when I started and had about 650 photos in it. I have changed all the photos and deleted several, so I now have about 500 photos, all at the same DPI as the previous photo (150) and all less than 300Kb, totalling less than 15MB. I also changed the text on about 30 of the pages, but now the file size of my ePub is 86MB. Does anyone know what's happened to make it so big?
Claire3001 is offline   Reply With Quote
Old 09-02-2013, 10:59 AM   #2
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
Have the old files been deleted not just from the text but from the epub itself?

Are the old files shown in the book browser?
mrmikel is offline   Reply With Quote
Advert
Old 09-02-2013, 11:01 AM   #3
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,078
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
MS Office does things like also

I rename (for example) a XLSM to .zip and open the now zip file to look for clues as to what's taking all the space

Epubs are really zip files in disguise, so that might work for you to get a clue as to what's taking all the space

Paul
phossler is offline   Reply With Quote
Old 09-02-2013, 11:02 AM   #4
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: 29,836
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
AFAIK Sigil does nothing but import images
Look at the code(view) for clues.
Tidy (if enabled) will fix malformed code with inline styles.
If you see much (inline) other than class="xyzzy", your original XHTML decelerations were substandard and got worked around
theducks is offline   Reply With Quote
Old 09-02-2013, 01:07 PM   #5
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
Probably the new images are larger in size and not optimized.
Toxaris is offline   Reply With Quote
Advert
Old 09-03-2013, 09:18 AM   #6
crich70
Grand Sorcerer
crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.
 
crich70's Avatar
 
Posts: 11,305
Karma: 43993832
Join Date: Feb 2010
Location: Monroe Wisconsin
Device: K3, Kindle Paperwhite, Calibre, and Mobipocket for Pc (netbook)
Also even if the image is removed from the text if it isn't removed from the 'image' folder as well then it is still there to take up room. What I can't figure out is why the file size doubles in size when I convert the epub to Kindle format.
crich70 is offline   Reply With Quote
Old 09-03-2013, 10:08 AM   #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,078
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
What I can't figure out is why the file size doubles in size when I convert the epub to Kindle format.
http://velluminous.com/handcraftedebooks/archives/78

Quote:
If you’ve worked with many ePubs and converted them with Kindlegen while paying attention to file sizes, you might well have noticed that the Kindle files are much larger than the original ePubs — typically around twice as large. It turns out that Kindlegen stashes a copy of the original ePub sources inside its output file, which explains the doubling of size. Unfortunately, this can lead to super-sized Kindle files, particularly in heavily-illustrated works, since images get duplicated along with everything else.
Paul
phossler is offline   Reply With Quote
Old 09-03-2013, 12:26 PM   #8
crich70
Grand Sorcerer
crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.
 
crich70's Avatar
 
Posts: 11,305
Karma: 43993832
Join Date: Feb 2010
Location: Monroe Wisconsin
Device: K3, Kindle Paperwhite, Calibre, and Mobipocket for Pc (netbook)
Quote:
Originally Posted by phossler View Post
Interesting. Thanks. Had wondered what was up with that. In Sigil epubs will be one size and when I took the file and converted it (in Calibre) it usually does double in size. I imagine all conversion programs do the same. Sort of a two questions on same side of coin situation.
crich70 is offline   Reply With Quote
Old 09-03-2013, 05:41 PM   #9
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
KindleGen actually will normally triple the size of the file. Inside the file is the original ePub, a Mobi version of the file and a KF8 version of the file. You can use kindlestrip to remove the copy of the source leaving you with double the size. I would not recommend reducing it further; both internal copies are usable depending on the device. The mobi version is usable on devices that support mobi and the Kindle1 and perhaps Kindle2 and I believe KindleDX while the KF8 file matches the ePub for display capabilities and is usable on all other kindle devices.

However if you are tageting only mobi version then you can use Kindleunpack to take the file apart.

Dale
DaleDe is offline   Reply With Quote
Old 09-04-2013, 04:56 AM   #10
Claire3001
Junior Member
Claire3001 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2013
Device: Kindle, Kobo, Nook, Google Nexus, iPad
Quote:
Originally Posted by phossler View Post
Something similar happened when we converted the original file to MOBI, but when uploaded to Amazon with KDP, it reduced in size.

With regards to the original files - I deleted them all from the browser and imported the new ones into the browser. And the new files total less than 15MB, so I don't understand why it's increased by 60MB. I've not linked them all the the corresponding pages yet - could this be why it's so big?
Claire3001 is offline   Reply With Quote
Old 09-04-2013, 05:26 AM   #11
Claire3001
Junior Member
Claire3001 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2013
Device: Kindle, Kobo, Nook, Google Nexus, iPad
Okay - I've had a go at unzipping the file and it turns out I was calculating the image sizes wrong, so they are too big. I need to get them all down to less than 50Kb each - any ideas about how to do this without making the quality terrible? The old images were all 150 DPI, but somehow manage to be less than 50Kb each.
Claire3001 is offline   Reply With Quote
Old 09-04-2013, 06:00 AM   #12
Claire3001
Junior Member
Claire3001 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2013
Device: Kindle, Kobo, Nook, Google Nexus, iPad
Right - I tried converting them all to RGB, to create a smaller file size, but they all just got bigger - I'm so confused!
Claire3001 is offline   Reply With Quote
Old 09-04-2013, 06:37 AM   #13
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
What are the files? PNG or JPG? PNGs can be hard to shrink unless you understand them well (which I don't.)

Try going back to originals and save off copies as jpgs at various quality levels and see which will be acceptable. You need to be sure you preview them at the size they will be displayed at.

Irfanview (a free program) can do bulk conversions.
mrmikel is offline   Reply With Quote
Old 09-04-2013, 07:03 AM   #14
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Claire, the two big things that will impact file sizes for jpegs are --

1) resolution -- ie, the physical dimensions of the image. For example, if you have an image with a resolution of 1200 x 800 pixels, reducing it to 600 x 400 pixels will cut the size considerably, assuming the compression level used to save the images are roughly the same.

2) jpeg compression level used -- this is an adjustable setting in the program you are using to output your jpegs. Raise the compression level to reduce file size. The actual adjustment is often called "Quality" in which case you lower the "Quality" to reduce the file size.

You can do either 1 or 2 or BOTH to reduce the file sizes of your jpegs. For image heavy books, I prefer not to touch the resolution at all (as images will then appear smaller on your device) and instead simply adjust the image compression.

To do that, I "explode" the epub using Calibre's tweak epub feature. Then I select all the jpegs in the epub's image folder and drag and drop them onto the interface of Fotosizer (a free program). I then use a compression setting of anywhere from 40 to 60 in Fotosizer to resample the images and save right back to the original folder. I can usually get up to 75% space savings (sometimes more) in some image books.

Two things to note: Compression levels (or quality settings) are different with every program -- ie, 60 in Fotosizer is different from 60 in Photoshop which is different from 60 in Irfan. Just keep that in mind if you are trying out different programs. Test the output to make sure the file size is what you want.

Another thing -- Make sure you backup your original epub before resampling images, AND only resample images once. JPEG is a lossy format, which means every time you re-save the jpeg you are losing some quality. So if you have to redo something, go back to the original images.

DPI will not impact file size ... that just sets the size of the output document if printed.

--Pat

Last edited by PatNY; 09-04-2013 at 07:08 AM.
PatNY is offline   Reply With Quote
Old 09-04-2013, 07:24 AM   #15
Claire3001
Junior Member
Claire3001 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2013
Device: Kindle, Kobo, Nook, Google Nexus, iPad
Quote:
Originally Posted by PatNY View Post
Claire, the two big things that will impact file sizes for jpegs are --

1) resolution -- ie, the physical dimensions of the image. For example, if you have an image with a resolution of 1200 x 800 pixels, reducing it to 600 x 400 pixels will cut the size considerably, assuming the compression level used to save the images are roughly the same.

2) jpeg compression level used -- this is an adjustable setting in the program you are using to output your jpegs. Raise the compression level to reduce file size. The actual adjustment is often called "Quality" in which case you lower the "Quality" to reduce the file size.

You can do either 1 or 2 or BOTH to reduce the file sizes of your jpegs. For image heavy books, I prefer not to touch the resolution at all (as images will then appear smaller on your device) and instead simply adjust the image compression.

To do that, I "explode" the epub using Calibre's tweak epub feature. Then I select all the jpegs in the epub's image folder and drag and drop them onto the interface of Fotosizer (a free program). I then use a compression setting of anywhere from 40 to 60 in Fotosizer to resample the images and save right back to the original folder. I can usually get up to 75% space savings (sometimes more) in some image books.

Two things to note: Compression levels (or quality settings) are different with every program -- ie, 60 in Fotosizer is different from 60 in Photoshop which is different from 60 in Irfan. Just keep that in mind if you are trying out different programs. Test the output to make sure the file size is what you want.

Another thing -- Make sure you backup your original epub before resampling images, AND only resample images once. JPEG is a lossy format, which means every time you re-save the jpeg you are losing some quality. So if you have to redo something, go back to the original images.

DPI will not impact file size ... that just sets the size of the output document if printed.

--Pat
My photos are all JPEGs, 500x285 pixels. I re-saved them all in RGB format, which cut the overall size by about 20MB. I will try going back and convert to RGB and lowering the 'Quality' setting (I'm using Photoshop). Thanks for the help.
Claire3001 is offline   Reply With Quote
Reply

Tags
photo, sigil, size


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KindleGen INCREASES image file size? Oxford-eBooks Kindle Formats 13 09-14-2012 07:10 AM
Editing an epub with Sigil Artha Calibre 7 07-01-2011 01:57 PM
pdf to epub - file size increases tmg820 Conversion 8 04-28-2011 04:23 PM
Editing Feedbooks with Sigil castel15 Sigil 5 03-25-2011 09:00 PM
editing OPF on sigil and adding flash file shlomof Sigil 5 02-23-2011 02:39 PM


All times are GMT -4. The time now is 05:52 AM.


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