LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2009, 10:22 AM   #1
madh
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
PPT to JPEG conversion


Hi friends,

I want to create a software that takes .ppt (MS powerpoint or OO presentation) as input and creates jpeg files as output. I am not getting how to proceed with this work. Please suggest me how to carry on this work.
I want to do it in C in Linux.

Thanks,
Madhu
 
Old 10-14-2009, 10:48 AM   #2
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
You can use Open Office Impress to save your .ppt in open document format (odp). From the .odp file, all of the images contained in the powerpoint presentation are contained in a zipped format. Open the archive and extract what you want.

Check this link:

Batch exporting images from Impress/Powerpoint files
 
Old 10-15-2009, 01:43 AM   #3
madh
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks wfh.
I'll try it out.
 
Old 10-15-2009, 03:56 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
I'm guessing that you want to kind of export to PDF, but instead make each slide an image, right ?

If so you'll have to export to pdf then use 'pdftoppm' and 'ppmtojpeg' and you'll probably get something close to what you want. Then tweak the options of each program to make the conversion go more smoothly.
 
Old 10-21-2009, 09:31 AM   #5
madh
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you. Yes, I want to convert each slide to a jpeg image. And i want to write a script or a c program to do this conversion. i guess pdftoppm and ppmjpeg are the binaries. can i call the open office presentation and these 2 binaries from script to do this operation? I am totally new to the field of linux and also programming. pls help.

thank you
 
Old 10-21-2009, 01:55 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
I think maybe this program can convert to pdf on the command line.
http://sourceforge.net/projects/jodconverter/files/

Then you can just use the 'convert' part of imagemagick to make things simpler. 'convert file.pdf file.jpg'

Last edited by H_TeXMeX_H; 10-21-2009 at 02:10 PM.
 
Old 10-21-2009, 11:39 PM   #7
madh
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Guru. I shall try it
 
Old 10-22-2009, 03:03 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
OpenOffice will export in a variety of formats, including jpg, gif, tiff, etc. Why do we need a C program?
 
Old 10-22-2009, 08:22 AM   #9
madh
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Basically I am thinking of removing open office dependency. There are some ppt2img and ppt2movie conversion softwares on windows which convert all the slides into separate images(jpeg or other image formats) or a single movie(video). I want to develop something of that kind on linux. but i am not getting how to do it. i thought of doing a ppt file parser and integrating it with a jpeg encoder. but i am not sure whether this will work.
is it the correct approach ?
 
Old 10-22-2009, 01:38 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
I'm thinking that removing the openoffice dependency is going to be a HUGE task. I mean ppt is a seriously obfuscated format. Openoffice just barely imports them properly, only recently have they gotten it to work well. I don't know of any other program for Linux that can import ppt. What you can probably do is take some of the openoffice code for importing ppt and use it in your program. Still, I don't think it's worth the time. Going from pdf to jpg is way easier.
 
Old 10-23-2009, 12:23 AM   #11
madh
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Yes it is going to be huge task. I searched for such program on linux, but couldn't find any. Read the PPT file format and I got lost. And now that they've OpenXML added to it, it becomes more complex.
Using openoffice code is a good option. I shall try it and will be back with the results.

Thank you
Madhu
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pentax .PEF RAW to JPEG batch conversion utility needed Tom Brown Linux - Software 4 12-27-2010 07:36 PM
ppt in fedora tannu_ah Linux - Newbie 2 02-12-2009 06:18 PM
Text to JPEG/PDF Conversion BrianD18 Linux - Software 8 11-03-2007 11:51 AM
ppt file pirozzi Linux - Software 3 10-13-2004 10:29 PM
Algorithm for bmp to jpeg conversion giriprasad1979 Programming 4 03-01-2004 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration