![]() |
#1 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Can I create image subfolders?
I'm working on a book that's going to feature a few hundred images, and I would like to organize them into folders. So I was surprised to discover that you apparently can't create folders in the Images folder.
I created an epub with Sigil, cracked it open with eCanCrusher, and copied several folders filled with images into it. When I put my epub back together, all the images had vanished except Cover.jpg, which wasn't in a subfolder. So can anyone confirm that folders aren't allowed, or, if they are, explain how I can create them? Thanks! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
They are allowed in the ePUB specification. In fact, the images folder is not dictated by the specifications either. It is good practice since it keeps things clear and separated. However, since having a few hundred images in an ePUB is rare, usually one folder is enough. Sigil does not support multiple folders in an ePUB. In fact, if you have subfolders in your images folder, upon opening in Sigil they will be merged in one folder and all the references to them will be adjusted so everything will keep on working.
If you create additional folders and move images to them (like you did with eCanCrusher), everything should be working fine, as long as you also adapt the references to the image. After all, the image is at another location so the links must be updated to reflect that change. Now, I believe that the editor in Calibre does support multiple folders. I am not sure though, as I do not use the Calibre editor for several reasons myself. Call it personal preference. From what I heard, it is also a good editor. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,386
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes. Sigil currently demands full control of the directory structure within an epub archive. Any epub saved with Sigil will be altered to comply with those structural requirements. There is hope that that will change in the future, but it's not practical right now.
Calibre's editor will allow you to define your own internal structure if such a thing is important to you. Just don't make any edits with Sigil after you've created the internal structure you desire. |
![]() |
![]() |
![]() |
#4 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Thanks for the tips. I decided to just rename my images and put them all in one folder for this project. My second book will have far more images, so I'll take a look at Calibre when I start that project.
|
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,321
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
|
Just remember that it doesn't matter to the ePub if they are all in one folder or not. You are simply linking to a location...the ePub doesn't care where it is. This is only for your personal organization while you are working on the book.
Cheers, |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
../Book01/Chap01.xhtml ../Book01/Chap02.xhtml ../Book01/Images/WeirdImages.jpg [...] ../Book04/Chap01.xhtml ../Book04/Chap02.xhtml ../Book04/Images/MoreWeirdImages.jpg and it is helpful when you try to digitize websites (blog posts, articles, etc. etc.) so that you could keep ~ the original file structure. Makes it a hell of a lot easier when doing code comparisons. Definitely something that would be helpful when you get large/image-heavy books floating around. Quote:
../Book01/Images/WeirdImages.jpg ../Book04/Images/WeirdImages.jpg Sigil would just force both into: ../Images/WeirdImages.jpg and one would go poof. Last edited by Tex2002ans; 02-07-2017 at 11:55 AM. |
||
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,386
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
In my opinion, different folders or no, having duplicate filenames in the same epub archive is just a bad, bad idea. So is having multiple books, for that matter. Omnibi make no sense to me, personally, with regard to ebooks. |
|
![]() |
![]() |
![]() |
#8 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Would probably be better to have a popup that warns you of conflict (and maybe a basic rename that appends "-##" to the image). Quote:
Something like that would have been quite helpful... Then I could have had a structure along these lines: ..\##-NewChapterTitle\OldBookTitle\##-OldChapters.xhtml Heh, that one was definitely pretty horrible to try to code compare to make sure I didn't botch anything when adding/deleting entire subchapters. :P Last edited by Tex2002ans; 02-07-2017 at 02:58 PM. |
||
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,503
Karma: 5703586
Join Date: Nov 2009
Device: many
|
The latest version of Sigil should quietly force all file names to be unique in opening an epub. If it doesn't, please file a bug report with a test case.
KevinH |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
![]() |
![]() |
![]() |
#11 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,689
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
But I'm guessing that this is a Windows Qt problem, that you can't do anything about. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
easy way to create 3d book image from cover? (Mac/OSX) | 1611mac | Workshop | 4 | 07-24-2015 03:33 PM |
Create the same image on top of every page | fbeek | Sigil | 4 | 05-21-2015 10:56 PM |
Want to create border on image inside SVG wrapper | GrannyGrump | ePub | 8 | 10-01-2014 09:41 PM |
Classic Subfolders? | heaviside | Barnes & Noble NOOK | 5 | 09-25-2010 03:35 PM |
Question on how to create and copy folders and subfolders | tzn22 | Astak EZReader | 4 | 10-24-2009 04:31 PM |