![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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" /> But i can not find this temporary folder (or the original image). Any ideas? Thanks! |
![]() |
![]() |
![]() |
#2 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,590
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#4 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 2136218
Join Date: Jan 2010
Device: BEBOOK
|
![]() ![]() 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 ... |
![]() |
![]() |
![]() |
Tags |
crop, image |
|
![]() |
||||
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 |