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 01-05-2010, 04:49 AM   #1
janneman
Member
janneman began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2010
Device: BEBOOK
Where are epub images stored?

I have an epub file which contains some pages with a (full-page) image.

I want to get the image and open them in an image editor so i can crop the borders. Then reinsert the image in the epub.

How can i do this?

In code it looks like this:
Code:
<img class="calibre1" src="../images/img0016.png" />
I read somewhere that the ../images/img0016.png is just a temporary file and folder that sigil uses.

But i can not find this temporary folder (or the original image). Any ideas?

Thanks!
janneman is offline   Reply With Quote
Old 01-05-2010, 07:13 AM   #2
pdurrant
Santa Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 33,349
Karma: 90779286
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by janneman View Post
I have an epub file which contains some pages with a (full-page) image.

I want to get the image and open them in an image editor so i can crop the borders. Then reinsert the image in the epub.
Change the .epub extension to .zip. Then unzip. Find the image in the unzipped folder, edit it, save in the same place and name, and re-zip (using a proper epub zipping method - e.g. my applescript, if you're on Macintosh), and change the extension back to .epub.
pdurrant is offline   Reply With Quote
Old 01-05-2010, 09:33 AM   #3
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 janneman View Post
I want to get the image and open them in an image editor so i can crop the borders. Then reinsert the image in the epub.

How can i do this?
This will be very easy to do in 0.2.0, where you'll be able to right click on an image in the Book Browser and open it in an external editor.

But right now, this is a bit difficult. Pdurrant gave a very good and simple way of doing this.

The image files are located in the "<SigilTempFolder>/scratchpad/<BookUUIDFolder>/OEBPS/images". The path to "<SigilTempFolder>" is "<UserHomeFolder>/My Documents/Sigil" on Windows and "<UserHomeFolder>/.Sigil" on Unices like Mac OS X and Linux (notice the dot in the folder name). The next version of Sigil will use "<UserHomeFolder>/Sigil" (no dot) on Windows.

Do be very careful if you're editing the files in the book's folder. If you screw something up, you could crash Sigil. You're not really meant to mess around in that temp folder.
Valloric is offline   Reply With Quote
Old 01-06-2010, 05:43 AM   #4
janneman
Member
janneman began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2010
Device: BEBOOK
Thumbs up



thanks pdurrant for your description. This method seems to work.

I used JPEGCrops 0.7.5b to crop the images; http://ekot.dk/programmer/JPEGCrops/
-freeware (for private use)
- goes pretty fast
- you can also rotate pictures

and also thanks to Valloric for the additional info.


Time to do some reading now ...
janneman is offline   Reply With Quote
Reply

Tags
crop, image

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tips for adding images in epub hapax legomenon ePub 14 01-22-2011 01:32 PM
PDF to Epub - Images with Text ebahm Calibre 2 09-19-2010 04:23 PM
pdf to epub/breaking up images? dhume01 Calibre 1 07-06-2010 09:51 PM
Help with images in EPUB conversions, please jackie_w Calibre 11 10-30-2009 04:29 PM
nytimes, missing images in EPUB ees Calibre 1 01-10-2009 01:52 PM


All times are GMT -4. The time now is 01:30 AM.


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