User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:nnels:etext:extract-images [2018/01/09 13:12]
farrah.little
public:nnels:etext:extract-images [2022/04/11 14:07] (current)
rachel.osolen
Line 2: Line 2:
  
 The accessible e-text version of a book needs to include the original ebook's images. To preserve the original image quality, we need to first extract the images from the EPUB and then insert them into the Word document. The accessible e-text version of a book needs to include the original ebook's images. To preserve the original image quality, we need to first extract the images from the EPUB and then insert them into the Word document.
 +
 +<note>If you are dealing with a PDF file, please see [[public:nnels:etext:extract_images_from_pdf_files|Extract Images from PDF files]]
 +
 +If you are dealing with a Kindle file, please see [[public:nnels:etext:extract_images_from_kindle_files_azw_azw3|Extract Images for Kindle files]]</note>
 +
 +===== Use eCan Crusher to Extract images from an EPUB =====
  
 First, we need to unzip the EPUB file to get at the images. We can easily do this using free open-source software such as [[http://www.docdataflow.com/ecancrusher/|eCanCrusher]], which works on both PC and Mac. First, we need to unzip the EPUB file to get at the images. We can easily do this using free open-source software such as [[http://www.docdataflow.com/ecancrusher/|eCanCrusher]], which works on both PC and Mac.
Line 11: Line 17:
   - Insert these images into your DOCX file, as required (''Insert'' > ''Pictures'' > ''Picture from file'')   - Insert these images into your DOCX file, as required (''Insert'' > ''Pictures'' > ''Picture from file'')
  
-===== Using Terminal to extract images from an EPUB =====+===== Mac: Use Terminal to extract images from an EPUB =====
  
- +Alternatively, if you prefer to use command line, you can use Terminal (on Mac) to extract images from an EPUB:
-Alternatively, if you prefer to use command-line, you can use Terminal (on Mac) to extract images for an EPUB by doing the following:+
  
   - Open ''New Terminal at Folder''    - Open ''New Terminal at Folder'' 
-    * Right-click on the folder that contains the EPUB file and select ''Services'' > ''New Terminal at Folder''. You may  need to set up your Mac to allow for this shortcut.+    * Right-click on the folder that contains the EPUB file and select ''Services'' > ''New Terminal at Folder''. You may  need to [[https://lifehacker.com/launch-an-os-x-terminal-window-from-a-specific-folder-1466745514|change your Mac settings]] to create this shortcut.
   - Copy and paste the command: <code>unzip abc.epub *.jpg *.jpeg *.png *.gif</code> where abc.epub is the name of the epub file (check that there are no spaces in the filename)   - Copy and paste the command: <code>unzip abc.epub *.jpg *.jpeg *.png *.gif</code> where abc.epub is the name of the epub file (check that there are no spaces in the filename)
   - press enter   - press enter
-  - you should see a new folder appear (OEBPS) that contains the image files+  - you should see a new folder appear (OEBPS) that contains the extracted image files 
 + 
 +===== PC: Change file extension to extract images from EPUB ===== 
 + 
 +  - Navigate to your EPUB file. 
 +  - Make a copy of the file and paste it into the same folder you are in. 
 +  - Press F2 on the copied version (to make file name editable) 
 +  - Change the end of the file name from .epub to .zip and press enter. 
 +  - Windows will warn you that you are changing a file extension. Tell it okay. 
 +  - You can now access the file as you would any zip file. When you unzip the compressed file, you should see a list of items, including a folder titled "images". These will be the images you insert into your .docx.
  
 +[[public:nnels:etext:kids-books|Return to Children's Books main page]]
public/nnels/etext/extract-images.1515532359.txt.gz · Last modified: 2018/01/09 13:12 by farrah.little