[Solved] Batch exporting images from Impress/PowerPoint file
[Solved] Batch exporting images from Impress/PowerPoint file
Hello there,
I have a lot of .ppt files (some hundred) each containing one page with two images, nothing else. These files open without any problem in OO. Now I need these Images as graphic files (.jpg preferred, quality is not the most important thing).
Is there a way to save these images to a folder without manually open and export hundreds of files? I'm using OO 2.4 on MacOS X 10.5.2.
Tia,
womble
I have a lot of .ppt files (some hundred) each containing one page with two images, nothing else. These files open without any problem in OO. Now I need these Images as graphic files (.jpg preferred, quality is not the most important thing).
Is there a way to save these images to a folder without manually open and export hundreds of files? I'm using OO 2.4 on MacOS X 10.5.2.
Tia,
womble
Last edited by womble on Mon Apr 07, 2008 8:00 am, edited 1 time in total.
Re: Batch exporting images from Impress/Powerpoint files
You can batch convert them to .odp (ODF presentation) format. In that format, the images should be available inside the .odp file (it's really just a zip archive) as image files. You can extract them from there by a command line or simple script.
AOO4/LO5 • Linux • Fedora 23
Re: Batch exporting images from Impress/Powerpoint files
I'll try this. Thank you.
Re: Batch exporting images from Impress/Powerpoint files
Here's a sample session with this (randomly chosen) sample file:
One problem you can see is that all the images come out with these ridiculous coded names. As far as I know, there's no way around that.
Code: Select all
$ unzip -l LCPickup_SuperRes.odp
Archive: LCPickup_SuperRes.odp
Length Date Time Name
-------- ---- ---- ----
47 04-06-08 20:55 mimetype
198483 04-06-08 20:55 Pictures/10000000000003C6000005A947A18EED.png
106496 04-06-08 20:55 Pictures/100000000000027A000002208F08DA28.jpg
1058 04-06-08 20:55 Pictures/1000000000000028000000281F5C61EF.png
2853 04-06-08 20:55 Pictures/1000000000000132000000E1CB983C93.png
22116 04-06-08 20:55 Pictures/10000000000014600000033035DB7EA3.png
7636 04-06-08 20:55 Pictures/100000000000006400000064D79BE915.png
40044 04-06-08 20:55 Pictures/10000000000028A0000003C66B217032.png
238672 04-06-08 20:55 Pictures/2000001E0000BAA800009435A3CCDF67.wmf
26180 04-06-08 20:55 Pictures/10000000000000D7000000A2C6AFB2C6.png
951 04-06-08 20:55 Pictures/100000000000001400000014AA9C84A4.png
4321 04-06-08 20:55 Pictures/10000000000000660000006671EB5D69.png
23680 04-06-08 20:55 Pictures/1000000000001A1B000002DD22020C04.png
88348 04-06-08 20:55 Pictures/10000000000003E8000005141B78E313.png
5923 04-06-08 20:55 Pictures/10000000000000500000005005A927A2.png
441244 04-06-08 20:55 Pictures/200000CC0000CA0E000052FE991E83F2.wmf
8218 04-06-08 20:55 Pictures/100000000000014A0000002A192F3D99.png
298081 04-06-08 20:55 Pictures/10000000000008FE00000AEEAC48FD03.png
19612 04-06-08 20:55 Pictures/10000000000000D7000000A2C185F83A.png
444264 04-06-08 20:55 Pictures/200000CC0000CA0E000052FE00668B0A.wmf
3016 04-06-08 20:55 Pictures/1000000000000064000000647F4F20F9.png
8702 04-06-08 20:55 Pictures/10000000000000640000006419E802F3.png
24802 04-06-08 20:55 Pictures/1000000000001B58000003C6ED177232.png
7151 04-06-08 20:55 Pictures/1000000000000064000000645E0E920A.png
65583 04-06-08 20:55 Pictures/1000000000000393000002EECFD057CF.png
31502 04-06-08 20:55 Pictures/1000000000001E03000003C633E2D9C7.png
331776 04-06-08 20:55 Pictures/1000000000000321000003091ABE38C7.jpg
7559 04-06-08 20:55 Pictures/1000000000000064000000644CA12AE9.png
440494 04-06-08 20:55 Pictures/200000CE0000CA0E000052FE5A0BD6C6.wmf
108072 04-06-08 20:55 content.xml
65014 04-06-08 20:55 styles.xml
1234 04-06-08 20:55 meta.xml
15428 04-06-08 20:55 Thumbnails/thumbnail.png
0 04-06-08 20:55 Configurations2/progressbar/
0 04-06-08 20:55 Configurations2/floater/
0 04-06-08 20:55 Configurations2/popupmenu/
0 04-06-08 20:55 Configurations2/menubar/
0 04-06-08 20:55 Configurations2/toolbar/
0 04-06-08 20:55 Configurations2/images/Bitmaps/
0 04-06-08 20:55 Configurations2/statusbar/
9607 04-06-08 20:55 settings.xml
5157 04-06-08 20:55 META-INF/manifest.xml
-------- -------
3103324 42 files
$ mkdir images
$ cd images
$ unzip ../LCPickup_SuperRes.odp Pictures/*
Archive: ../LCPickup_SuperRes.odp
extracting: Pictures/10000000000003C6000005A947A18EED.png
extracting: Pictures/100000000000027A000002208F08DA28.jpg
extracting: Pictures/1000000000000028000000281F5C61EF.png
extracting: Pictures/1000000000000132000000E1CB983C93.png
extracting: Pictures/10000000000014600000033035DB7EA3.png
extracting: Pictures/100000000000006400000064D79BE915.png
extracting: Pictures/10000000000028A0000003C66B217032.png
inflating: Pictures/2000001E0000BAA800009435A3CCDF67.wmf
extracting: Pictures/10000000000000D7000000A2C6AFB2C6.png
extracting: Pictures/100000000000001400000014AA9C84A4.png
extracting: Pictures/10000000000000660000006671EB5D69.png
extracting: Pictures/1000000000001A1B000002DD22020C04.png
extracting: Pictures/10000000000003E8000005141B78E313.png
extracting: Pictures/10000000000000500000005005A927A2.png
inflating: Pictures/200000CC0000CA0E000052FE991E83F2.wmf
extracting: Pictures/100000000000014A0000002A192F3D99.png
extracting: Pictures/10000000000008FE00000AEEAC48FD03.png
extracting: Pictures/10000000000000D7000000A2C185F83A.png
inflating: Pictures/200000CC0000CA0E000052FE00668B0A.wmf
extracting: Pictures/1000000000000064000000647F4F20F9.png
extracting: Pictures/10000000000000640000006419E802F3.png
extracting: Pictures/1000000000001B58000003C6ED177232.png
extracting: Pictures/1000000000000064000000645E0E920A.png
extracting: Pictures/1000000000000393000002EECFD057CF.png
extracting: Pictures/1000000000001E03000003C633E2D9C7.png
extracting: Pictures/1000000000000321000003091ABE38C7.jpg
extracting: Pictures/1000000000000064000000644CA12AE9.png
inflating: Pictures/200000CE0000CA0E000052FE5A0BD6C6.wmf
$ ls Pictures
100000000000001400000014AA9C84A4.png 1000000000000321000003091ABE38C7.jpg
1000000000000028000000281F5C61EF.png 1000000000000393000002EECFD057CF.png
10000000000000500000005005A927A2.png 10000000000003C6000005A947A18EED.png
10000000000000640000006419E802F3.png 10000000000003E8000005141B78E313.png
1000000000000064000000644CA12AE9.png 10000000000008FE00000AEEAC48FD03.png
1000000000000064000000645E0E920A.png 10000000000014600000033035DB7EA3.png
1000000000000064000000647F4F20F9.png 1000000000001A1B000002DD22020C04.png
100000000000006400000064D79BE915.png 1000000000001B58000003C6ED177232.png
10000000000000660000006671EB5D69.png 1000000000001E03000003C633E2D9C7.png
10000000000000D7000000A2C185F83A.png 10000000000028A0000003C66B217032.png
10000000000000D7000000A2C6AFB2C6.png 2000001E0000BAA800009435A3CCDF67.wmf
1000000000000132000000E1CB983C93.png 200000CC0000CA0E000052FE00668B0A.wmf
100000000000014A0000002A192F3D99.png 200000CC0000CA0E000052FE991E83F2.wmf
100000000000027A000002208F08DA28.jpg 200000CE0000CA0E000052FE5A0BD6C6.wmf
AOO4/LO5 • Linux • Fedora 23
Re: Batch exporting images from Impress/Powerpoint files
Yes, thanks again. I did it the way you suggested and anything worked fine. The file names are really cryptic indeed, but for me this is not a problem, at least not this time.
Hint for other MacOS X Users: If you have many files (>20), don't unpack the .odp files with Stuffit as it will crash and leave a lot of garbage on your screen and your disk. Unpack the files with Automator, there is a script called "Expand" inside.
Hint for other MacOS X Users: If you have many files (>20), don't unpack the .odp files with Stuffit as it will crash and leave a lot of garbage on your screen and your disk. Unpack the files with Automator, there is a script called "Expand" inside.
-
- Posts: 4
- Joined: Tue Jun 17, 2008 10:35 pm
Re: [Solved]Batch exporting images from Impress/Powerpoint files
This DOES NOT work for Mac OS X Leopard Intel running with either OpenOffice 2.14 under X-11 or OO 3.0 Aqua beta. The batch converter works fine but the resultant files do not include pictures as PNGs but as SVMs. SVMs are not easily batch converted to png or anything else that I can find. Incidentally I checked output as PNG in the conversion dialog box but it seems to have no effect.
OOo 3.0.X on Mac OSx Leopard
Re: [Solved]Batch exporting images from Impress/Powerpoint files
Can you attach here a sample of the converted presentation? Actually, a sample of the starting file and the converted presentation would be even better.
Unless it's a bug of some sort, I don't understand what would be different about how OOo would handle this on MacOSX.
Also, I can't find any information about "SVM" as an image format. Do you have a link that describes it?
Unless it's a bug of some sort, I don't understand what would be different about how OOo would handle this on MacOSX.
Also, I can't find any information about "SVM" as an image format. Do you have a link that describes it?
AOO4/LO5 • Linux • Fedora 23
-
- Posts: 4
- Joined: Tue Jun 17, 2008 10:35 pm
Re: [Solved]Batch exporting images from Impress/Powerpoint files
I'll post it tomorrow when I get to work.
OOo 3.0.X on Mac OSx Leopard
-
- Posts: 4
- Joined: Tue Jun 17, 2008 10:35 pm
Re: [Solved]Batch exporting images from Impress/Powerpoint files
Ok I don't really understand what's going on but some Powerpoints when converted will output images in PNG format along with some that are SVMs. No rhime or reason that I can see.
Original File
Converted File
$ unzip -l /Volumes/Powerpoint/OoP\ Conversion/95-05-17\ Dig\ Lib\ final.odp Pictures/*
Archive: /Volumes/Powerpoint/OoP Conversion/95-05-17 Dig Lib final.odp
Length Date Time Name
-------- ---- ---- ----
206968 06-17-08 16:15 Pictures/20000016000064BC00004A6A5FAA3A0B.svm
491280 06-17-08 16:15 Pictures/200000160000631400004A6A1F8FAE44.svm
582536 06-17-08 16:15 Pictures/200000160000631400004A6AD2B15B9F.svm
332663 06-17-08 16:15 Pictures/200000160000631400004A6ACED805E6.svm
36339 06-17-08 16:15 Pictures/200000050000132700000EBE121D60AA.svm
218457 06-17-08 16:15 Pictures/200000160000631400004A6AD687679A.svm
87200 06-17-08 16:15 Pictures/200000180000631400004A6A1D9CA9E2.svm
-------- -------
1955443 7 files
Original File
Converted File
$ unzip -l /Volumes/Powerpoint/OoP\ Conversion/95-05-17\ Dig\ Lib\ final.odp Pictures/*
Archive: /Volumes/Powerpoint/OoP Conversion/95-05-17 Dig Lib final.odp
Length Date Time Name
-------- ---- ---- ----
206968 06-17-08 16:15 Pictures/20000016000064BC00004A6A5FAA3A0B.svm
491280 06-17-08 16:15 Pictures/200000160000631400004A6A1F8FAE44.svm
582536 06-17-08 16:15 Pictures/200000160000631400004A6AD2B15B9F.svm
332663 06-17-08 16:15 Pictures/200000160000631400004A6ACED805E6.svm
36339 06-17-08 16:15 Pictures/200000050000132700000EBE121D60AA.svm
218457 06-17-08 16:15 Pictures/200000160000631400004A6AD687679A.svm
87200 06-17-08 16:15 Pictures/200000180000631400004A6A1D9CA9E2.svm
-------- -------
1955443 7 files
OOo 3.0.X on Mac OSx Leopard
Re: [Solved]Batch exporting images from Impress/Powerpoint files
Ok, I see what's happening now.
If I open your .ppt and look at the image of the building in the slide design, or extract the .svm files from the .odp and open one, OOo tells me they are not plain images, but graphics metafiles--specifically, Star View Metafiles. Some of the metafiles are simply a wrapper around a bitmap image; others are more complex.
E.g., here are a couple that I've looked at: I doubt there is anything that will batch convert those metafiles to a different format. You can of course open them in OOo and export them as plain images, but you'll have to do one at a time, manually.
If I open your .ppt and look at the image of the building in the slide design, or extract the .svm files from the .odp and open one, OOo tells me they are not plain images, but graphics metafiles--specifically, Star View Metafiles. Some of the metafiles are simply a wrapper around a bitmap image; others are more complex.
E.g., here are a couple that I've looked at: I doubt there is anything that will batch convert those metafiles to a different format. You can of course open them in OOo and export them as plain images, but you'll have to do one at a time, manually.
AOO4/LO5 • Linux • Fedora 23
-
- Posts: 4
- Joined: Tue Jun 17, 2008 10:35 pm
Re: [Solved]Batch exporting images from Impress/Powerpoint files
Hmmmm. Thanks for looking at this.I did a batch extraction from a whole directory of converted powerpoints and got a big mix of SVMs and PNGs.
This will take more time than I expected but it's a one time thing. Lots of the images embedded in these powerpoints are duplicates since there was extensive recyclying of previous slides.
I must say this is the first time I've looked at OO for several years and it was all X-11 then. The new Aqua ports seems pretty stable and has amazing compatibility.
This will take more time than I expected but it's a one time thing. Lots of the images embedded in these powerpoints are duplicates since there was extensive recyclying of previous slides.
I must say this is the first time I've looked at OO for several years and it was all X-11 then. The new Aqua ports seems pretty stable and has amazing compatibility.
OOo 3.0.X on Mac OSx Leopard
-
- Posts: 17
- Joined: Fri Mar 26, 2010 12:14 pm
Re: [Solved]Batch exporting images from Impress/Powerpoint f
I have to say.. Anything that involves the command line, explained from a person who understands command line to someone who doesn't, drives. me. crazy. Office software is so often used by regular folks, and students, and generally non-technical people. This one's for the lamens!
Thankfully I'm in limbo these days. Dear User, did that explanation make your head hurt? Here it is again, this time broken down in to bite-sized bullets.
For starters, I'm On a Mac using Leopard / OS 10.5
When you start Terminal, you're in your Home folder by default. To go forward, type cd ("change directory"), a space, and the name of the folder you're trying to go to.
To make your life easier, press [Tab] on your keyboard to auto-finish what you're typing. If you hear an error sound, it could mean a few things. Keep these things in mind...
"Downloads" and "Documents" start with the same two letters. type a few more.
This command line thingy is based on Unix (in case you wondered), and that thing called Unix is case-sensitive. Type "Documents" with a capital "D".
If you're not sure what to type next, press [Tab] twice to see what's available
To list files, use ls
To go backwards a directory, type cd, a space, and two periods (..), like this
To get back home, use the tilde (~)
It's easier than it sounds. Check this out. When you put it all together, your Terminal should look similar to this.
There it is. We found the powerpoint file. And the Open Office file we converted it to. Bingo. We're ready to unzip.
For the technically interested: unzip is another built in unix command. the -l mentioned in turbojesse's post is like a switch that turns on the option to change all the file names exported to use lowercase letters. One he forgot to mention is -d, which is used to specify the directory yo would like unzip to push the files to. If you don't use -d, the file is unzipped to nowhere! So, I hope this command works for more people -- even those that blindly copy and paste it
This will unzip the contents into a directory called "unzippy" (or whatever you like) right next to your powerpoint and open office file.
The images from the presentation will be located in that unzippy folder, under Pictures (duh)
I hope that's clearer.
Thankfully I'm in limbo these days. Dear User, did that explanation make your head hurt? Here it is again, this time broken down in to bite-sized bullets.
For starters, I'm On a Mac using Leopard / OS 10.5
- Run Terminal. It's not under Applications. Just use spotlight to find it (the little magnifying glass in the upper right)
- Navigate to where your powerpoint file is.
When you start Terminal, you're in your Home folder by default. To go forward, type cd ("change directory"), a space, and the name of the folder you're trying to go to.
Code: Select all
cd type-something
"Downloads" and "Documents" start with the same two letters. type a few more.
This command line thingy is based on Unix (in case you wondered), and that thing called Unix is case-sensitive. Type "Documents" with a capital "D".
If you're not sure what to type next, press [Tab] twice to see what's available
To list files, use ls
Code: Select all
ls
Code: Select all
cd ..
Code: Select all
cd ~
Code: Select all
Macbook:~ bugmenot$ cd Documents/work/
Macbook:work bugmenot$ ls
blah.txt presentation.ppt presentation.odp
something.rtf
For the technically interested: unzip is another built in unix command. the -l mentioned in turbojesse's post is like a switch that turns on the option to change all the file names exported to use lowercase letters. One he forgot to mention is -d, which is used to specify the directory yo would like unzip to push the files to. If you don't use -d, the file is unzipped to nowhere! So, I hope this command works for more people -- even those that blindly copy and paste it
This will unzip the contents into a directory called "unzippy" (or whatever you like) right next to your powerpoint and open office file.
Code: Select all
unzip presentation.odp -d unzippy
I hope that's clearer.
OpenOffice 3.1 on Windows Vista
-
- Posts: 2
- Joined: Sat Jul 02, 2011 5:01 pm
Re: [Solved] Batch exporting images from Impress/PowerPoint
bugmenot111, I almost made it. I got the terminal open, I even had an unzippy folder, but no file called pictures. There was some folder called images which contained a folder called Bitmaps but everything was empty.
I do commend you on the added explanation which made me feel I was getting somewhere for just a brief moment in my life...
I do commend you on the added explanation which made me feel I was getting somewhere for just a brief moment in my life...
Clueless. Really. Ok, 10.5.8 macintosh and OOO 3.2.0
-
- Posts: 2
- Joined: Sat Jul 02, 2011 5:01 pm
Re: [Solved] Batch exporting images from Impress/PowerPoint
There is divine intervention in the Universe! A great thought just came to me and I have solved something I have been looking to find the easiest solution to.
Problem: Mac user wants to use an Impress presentation and do a batch export of the slides to use in a different format.
Solution:
1.Create your presentation.
2. Select export and manually under file type select PDF. You can tinker with the pdf choices there if you please.
3. Select the pdf you just created, but do not open it! Use file, open with, Preview.
4. From here select file, print - but do not print. You want to look in the left corner where you will see the pdf button. Click on that and select the save to iphoto option. This will import all the slides to iphoto - which by the way can be then sent to imovie where you can make a really nice movie of the whole lot.
When you import at first into Iphoto you will see the images are the wrong direction. You can immediately hit the rotate button and they will all rotate up to the right direction after a few hits (3).
The names are going to be goofy with this method, ie: bp0Kff, yhqTV8 - but the images should drop in in order which means you can rename them quickly (found in lower left corner).
This can be exported immediately to a quicktime/mov format, but I wouldn't do that. Of course it depends on your purpose. I'd import into imovie, and some additional editing can be done with the slides as well as adding some voice over.
[/Eintstein theory and back to being clueless me]
Problem: Mac user wants to use an Impress presentation and do a batch export of the slides to use in a different format.
Solution:
1.Create your presentation.
2. Select export and manually under file type select PDF. You can tinker with the pdf choices there if you please.
3. Select the pdf you just created, but do not open it! Use file, open with, Preview.
4. From here select file, print - but do not print. You want to look in the left corner where you will see the pdf button. Click on that and select the save to iphoto option. This will import all the slides to iphoto - which by the way can be then sent to imovie where you can make a really nice movie of the whole lot.
When you import at first into Iphoto you will see the images are the wrong direction. You can immediately hit the rotate button and they will all rotate up to the right direction after a few hits (3).
The names are going to be goofy with this method, ie: bp0Kff, yhqTV8 - but the images should drop in in order which means you can rename them quickly (found in lower left corner).
This can be exported immediately to a quicktime/mov format, but I wouldn't do that. Of course it depends on your purpose. I'd import into imovie, and some additional editing can be done with the slides as well as adding some voice over.
[/Eintstein theory and back to being clueless me]
Clueless. Really. Ok, 10.5.8 macintosh and OOO 3.2.0
Re: [Solved] Batch exporting images from Impress/PowerPoint
Please note that this topic was specifically about dealing with images and graphics that were used in a presentation--not about converting the slides themselves. It's a subtle but important distinction.
If you want the slides themselves exported/converted, you can use Impress to batch export them as images. The process is a bit dodgy, and it won't preserve any animations or transitions, but you can get a snapshot of each slide, as an image, with a reasonably useful file name.
If you want the slides themselves exported/converted, you can use Impress to batch export them as images. The process is a bit dodgy, and it won't preserve any animations or transitions, but you can get a snapshot of each slide, as an image, with a reasonably useful file name.
AOO4/LO5 • Linux • Fedora 23