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, 03:49 AM   #1
janneman
Member
janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.
 
Posts: 13
Karma: 2136218
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, 06:13 AM   #2
pdurrant
The Grand 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: 71,406
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
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
Advert
Old 01-05-2010, 08: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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
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, 04:43 AM   #4
janneman
Member
janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.
 
Posts: 13
Karma: 2136218
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 37 01-16-2024 06:38 PM
nytimes, missing images in EPUB ees Recipes 2 11-17-2018 08:47 AM
PDF to Epub - Images with Text ebahm Calibre 2 09-19-2010 03:23 PM
pdf to epub/breaking up images? dhume01 Calibre 1 07-06-2010 08:51 PM
Help with images in EPUB conversions, please jackie_w Calibre 11 10-30-2009 03:29 PM


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


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