| 
			
			 | 
		#1 | 
| 
			
			
			
			 Enthusiastic reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 424 
				Karma: 3880485 
				Join Date: Mar 2017 
				Location: Italy 
				
				
				Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Max size of a kepub
			 
			
			
			I found two epubs of over 130MB  
		
	
		
		
		
		
		
		
		
		
		
		
	
	  Both of them have inside pictures and links. I converted them with kepubify and they're working well!!So now two questions naturally rise: How did the author make them? ![]() Which is the real size limit of an epub?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,698 
				Karma: 79983758 
				Join Date: Nov 2007 
				Location: Toronto 
				
				
				Device: Libra H2O, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm not aware of any size restrictions. Yes the are suggested size limits for the individual XHTML files that comprise the kepub, and the are also guidelines for image sizes. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Here is Kibi's documentation on kepubs https://github.com/kobolabs/epub-spec Sent from my moto g(7) power using Tapatalk  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Bibliophagist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,175 
				Karma: 174315444 
				Join Date: Jul 2010 
				Location: Vancouver 
				
				
				Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 As for size limits, as long as the html/xhtml files don't get horrendously large (I've created test epubs with 1-2MB files and they worked but with some performance issues when using links between chunks) and keep the images to reasonable sizes, the maximum size is more likely to be limited by your devices hardware and software than any innate size limit in an epub. Edit: with older ereaders using RMSDK, there were issues with larger html files leading to a recommendation of 300K maximum per html file. That has not been an issue with Adobe ADE/RMSDK since ~2009. Last edited by DNSB; 07-01-2019 at 02:52 PM. Reason: Adding comment about older software  | 
|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Still reading 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,004 
				Karma: 111111255 
				Join Date: Jun 2017 
				Location: Ireland 
				
				
				Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Absolutely, it's images, then fonts that cause a big jump in size.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Enthusiastic reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 424 
				Karma: 3880485 
				Join Date: Mar 2017 
				Location: Italy 
				
				
				Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				Join Date: Nov 2006 
				Location: UK 
				
				
				Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Bibliophagist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,175 
				Karma: 174315444 
				Join Date: Jul 2010 
				Location: Vancouver 
				
				
				Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			My personal preference for an epub editor is Sigil along with calibre's editor for some tasks where switch editors makes them easier.  That both are open source and free is a bonus for me. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Please note that generally, I am not creating an epub. I am either editing an epub for my personal use to correct what I regard as egregious formatting errors or to help someone who is having issues getting their epub into a publishable form. I have used various epub authoring tools (InDesign, Vellum, Atlantis, etc.) but Sigil and calibre make it easier to get to the source files rather than using a WYSIWYG editing mode.  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I tend to create and edit my books manually using a code editor (my favourite is VSCode). I've been working intermittently on my tool, epubtool, which automates some of the common tasks I perform (unpacking/packing epubs, modifying metadata, and performing transformations on the HTML). I used to use a bunch of custom scripts, but I'm currently adding those features to epubtool as I have time.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086 
				Karma: 6719822 
				Join Date: Jul 2012 
				
				
				
				Device: Palm Pilot M105 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			How do the e-readers process a book when it's being read?  I was thinking that they'd extract the css files and have them on the drive or in ram and then stream into ram (unzipping the bytes as needed) the xhtml chapter files. I would think that with doing that that there would be minimal penalty for huge xhtml files.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
   ... far be it from me to tell you how to spend your leisure hours   but are you aware that calibre already contains loads of utilities for robust, reliable manipulation of the various innards (opf, html, css, ncx/nav, unpack/pack etc) of an epub? Many things can be done in just a few lines of python code. If they don't currently do everything you may want to do you can mix'n'match existing functions to achieve what you want.Even if you don't want to be bothered writing full-blown calibre GUI plugins you can still access all the same functions from simple python scripts outside calibre. Neither do the epubs need to be in a calibre library structure.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | ||
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Quote: 
	
 P.S. I'm also slightly stubborn about avoiding Calibre too. Last edited by geek1011; 07-02-2019 at 07:24 PM.  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			All of which is your prerogative, of course, but for the record none of the epub edit/manipulation functions I was talking about add any unwanted calibre* classes to html or css. Perhaps you're confusing simple calibre epub edit functions with full calibre format conversions.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,277 
				Karma: 5935030 
				Join Date: Jun 2011 
				Location: Ontario, Canada 
				
				
				Device: Kobo Aura HD 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821 
				Karma: 19162882 
				Join Date: Nov 2012 
				Location: Te Riu-a-Māui 
				
				
				Device: Kobo Glo 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Although it is not strictly necessary to load the entire html file before beginning to display the results, it is necessary to retain everything in memory until the end of the file is reached, and so the size of the html file (or more strictly, the size of the final data structure built from parsing the entire html file, which is probably much larger then the size of the file) is a limiting factor. From what I have observed on my Glo, there is a noticable delay in the KePub reader when starting a new chapter, more noticable when the html file is large, so the KePub reader is probably parsing the entire html file before it displays the first page. But there is no extra delay when starting a new chapter in the ePub reader, so I think the ePub reader parses the html file as it goes. (There is a delay when paging backward to the end of the previous chapter in both readers though, because in that case they both need to parse the whole file from the beginning before they can display the final page.)  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086 
				Karma: 6719822 
				Join Date: Jul 2012 
				
				
				
				Device: Palm Pilot M105 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Including the text, or just the html/xml tag tree structure?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Font size difference between ePub & kepub | JSWolf | Kobo Reader | 12 | 09-08-2020 12:03 PM | 
| Size of images in epub/kepub | Patricius | Kobo Reader | 6 | 01-20-2019 10:29 PM | 
| Smaller font size for kepub compared to epub on Kobo Aura HD | yevgeny.bezman | Kobo Reader | 2 | 07-14-2015 01:16 PM | 
| Aura HD Diferent font size in epub and kepub | ersott | Kobo Reader | 24 | 04-15-2014 08:03 AM | 
| Why the size difference between kepub & epub. | Nascarfan1972 | Kobo Reader | 3 | 12-28-2012 09:18 PM |