how to extract pictures from word doc

Viewed 96

I have a word doc here: newsletter

There are 7 images in the document. I am able to copy the images to outlook or to another word doc but I can't seem to be able to save the images so I can use them on a web site. Could someone take a look and provide some guidance?

1 Answers

All 7 images are in the media folder

Simply rename the docx as .zip - untar or unzip it and open \word\media folder. In fact if your on Windows, you dont need to untar as Windows will allow you to drill down zip folders anyway.

enter image description here

Selected is a 480 x 640 JPEG, quality: 75, subsampling ON (2x2) image, which may have been modified by word for copy into storage, thus no guarantee its as good as the original.

Simply copy the PNG and JPEGs where ever they are needed

enter image description here

The key command (only one line) is tar -m -xf any.docx the rest is just showing how to program a download using a web file.

H:\WordDocX> md "SWAG-News-21-10-FINAL"
H:\WordDocX> cd "SWAG-News-21-10-FINAL"
H:\WordDocX\SWAG-News-21-10-FINAL> curl -o "SWAG-News-21-10-FINAL.docx" https://www.sustainablewestonma.org/SWAG%20Newsletter%20-%20Fall%202021%20FINAL.docx

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  716k  100  716k    0     0   358k      0  0:00:02  0:00:02 --:--:--  266k

H:\WordDocX\SWAG-News-21-10-FINAL> tar -m -xf "SWAG-News-21-10-FINAL.docx"

H:\WordDocX\SWAG-News-21-10-FINAL> dir word\media

 Volume in drive H is BLANK
 Volume Serial Number is C7A8-E288
 Directory of H:\WordDocX\SWAG-News-21-10-FINAL\word\media
2021-11-08  03:51    <DIR>          .
2021-11-08  03:51    <DIR>          ..
2021-11-08  03:51           369,800 image6.png
2021-11-08  03:51            13,978 image5.png
2021-11-08  03:51           120,554 image7.jpeg
2021-11-08  03:51            54,153 image4.png
2021-11-08  03:51            30,153 image2.png
2021-11-08  03:51            33,773 image1.jpeg
2021-11-08  03:51            83,230 image3.png
               7 File(s)        705,641 bytes
               2 Dir(s)  15,065,513,984 bytes free

H:\WordDocX\SWAG-News-21-10-FINAL> write "SWAG-News-21-10-FINAL.docx"

note that last command allows you to visually see the display size of images and final byline is (replace bins with docx)

Do you have any recommendations for others who want to emulate your action?

Keep it simple and keep in mind that doing something is better than doing nothing. These bins are pretty easy to construct yourself or you can ask a handy neighbor to do it for you.

Related