Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / May 2006

Tip: Looking for answers? Try searching our database.

Locating images in a powerpoint

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jondelac@gmail.com - 25 May 2006 03:00 GMT
Hi ... Does anyone know how I can programatically locate images in a
powerpoint presentation?  I am trying to write a program that saves all
the images that are pasted into a presentation as seperate files (I
dont care about the file names of the images... I just need the binary
image data)

Jon
Bill Dilworth - 25 May 2006 03:21 GMT
Have your software save the presentation as an HTML file, then delete any
non-picture format files from the HTML folder.

Signature

Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@     Please read the PowerPoint FAQ pages.
yahoo.             They answer most of our questions.
com                 www.pptfaq.com
.

> Hi ... Does anyone know how I can programatically locate images in a
> powerpoint presentation?  I am trying to write a program that saves all
[quoted text clipped - 3 lines]
>
> Jon
jondelac@gmail.com - 25 May 2006 03:33 GMT
Thanks... that's a good way to do it...

Do you know if there is anyway to do it with out converting the
document?  Can I locate the image in the stream by parsing the compound
document format headers etc?

Thanks
Jon
Bill Dilworth - 25 May 2006 04:11 GMT
In 2007, you will be able to, but the internal file structures in previous
versions is not published.

Signature

Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@     Please read the PowerPoint FAQ pages.
yahoo.             They answer most of our questions.
com                 www.pptfaq.com
.

> Thanks... that's a good way to do it...
>
[quoted text clipped - 4 lines]
> Thanks
> Jon
jondelac@gmail.com - 25 May 2006 04:37 GMT
Thats because in 2007 they are in XML correct?

I have a parser that knows how to parse Compound Document Files and
spit out the directory streams.  Parsing ppt documents I get a directoy
stream called "Pictures".  I just dont know what format PPT is saving
those images in... Can you help?

Jon
Steve Rindsberg - 25 May 2006 21:00 GMT
> Thats because in 2007 they are in XML correct?
>
> I have a parser that knows how to parse Compound Document Files and
> spit out the directory streams.  Parsing ppt documents I get a directoy
> stream called "Pictures".  I just dont know what format PPT is saving
> those images in... Can you help?

Images might be held internally as PNG, JPG or GIF

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
jondelac@gmail.com - 26 May 2006 03:22 GMT
Great... that answers the question... I do see JFIF headers in the
stream so this this consistent with what I see.  What is the other data
in the Pictures stream?  Also, does this imply that PPT stores the
images in the format that they were introduced into the PPT
presentation as with no conversion?

Jon.
Steve Rindsberg - 26 May 2006 16:40 GMT
> Great... that answers the question... I do see JFIF headers in the
> stream so this this consistent with what I see.  What is the other data
> in the Pictures stream?

Beats me.  MS doesn't document the file format and there's probably something
in the EULA to discourange you from trying to reverse-engineer it.  But what
fun would that be?  ;-)

>Also, does this imply that PPT stores the
> images in the format that they were introduced into the PPT
> presentation as with no conversion?

It stores graphics as PNG, JPG or GIF.  As near as I can tell, JPGs stay JPGs,
GIFs if animated stay GIF, everything else becomes PNG.  

Oddballs like EPS would need to be retained as-is.  There may be other
exceptions, but that pretty much covers the basics.

Save the presentation as HTML and look at the folder full of supporting files;  
that's pretty much a mirror of the graphics in the PPT file.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
jondelac@gmail.com - 26 May 2006 19:17 GMT
Thanks Steve!

Do you by any chance know the compression they use on the other streams
like the PowerPointDocument stream?
Steve Rindsberg - 27 May 2006 04:00 GMT
> Thanks Steve!
>
> Do you by any chance know the compression they use on the other streams
> like the PowerPointDocument stream?

Afraid not.  In 2007, it all gets simpler.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.