PowerPoint Image Management

J

Jim McClelland

Many of the presentations I create or help with end up being very large
due to embedded images or objects. To address this we have a manual
process whereby we save the image as a picture, delete the original, and
then re-import the saved version (usually a jpg or wmf) into the same
location on the slide. This works pretty well but is quite tedious when
you have numerous images to swap. I have some experience with VBA and
have tried to automate this process but I ran into a few snags.

1) It is difficult to determine whether a picture has already been
swapped already. I have no easy way to access the size of the photo or
object and the only other indicator is that a swapped image is not
scaled at all. i.e. If the original images was many Mb and shrunk to
23% of its normal size, the swapped image will be exactly the same
physical dimensions as were displayed when it was saved but will be
scaled at 100%. So have the scaling factor at 100% is an indicator but
not conclusive. Fundamentally, my desire is to replace graphics whose
size is above some threshold. So the question is:

Q: Is there a way to determine the consumed memory or file size of an
embedded image or object in a PowerPoint presentation?

2) The second snag is quite frustrating in that it appears to be a
limitation on the programming solution only. Apparently, the "Save As
Picture" function, when accessed programmatically, will only save the
entire slide or entire presentation. I have been unable to find,
despite hours of searching through both the local and online help, any
programmatic way to replicate the "Save As Picture..." function that is
available on the right click menu. So the question is:

Q: Is there any way, once an image or object is selected, to get only
the shape saved out to the file system?
 
S

Steve Rindsberg

Rather than reinventing the (rather more complex than you might imagine) wheel,
have you considered purchasing one of the various commercial add-ins that do
this size reduction automatically for you?

We have one, see Optimizer (including a free demo) at http://www.pptools.com or
search Google for terms like "PowerPoint size" and the like. There are several
others on the market.
 
J

Jim McClelland

Steve said:
Rather than reinventing the (rather more complex than you might imagine) wheel,
have you considered purchasing one of the various commercial add-ins that do
this size reduction automatically for you?

We have one, see Optimizer (including a free demo) at http://www.pptools.com or
search Google for terms like "PowerPoint size" and the like. There are several
others on the market.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Steve,
Thanks for your reply. On your suggestion I did look at what was out
there and the solution you suggest may be a possibility. However, it
still does leave open the questions I asked. If nothing else, to satify
my curiosity:

Q1: Is there a way to determine the consumed memory or file size of an
embedded image or object in a PowerPoint presentation?

Q2: Is there any way, once an image or object is selected, to get only
the shape saved out to the file system?

Is there anything you could point me to or information you could provide
that would help me better understand these questions?

Thanks.

Jim McClelland
 
S

Steve Rindsberg

Hi Jim,
Steve,
Thanks for your reply. On your suggestion I did look at what was out
there and the solution you suggest may be a possibility. However, it
still does leave open the questions I asked. If nothing else, to satify
my curiosity:

Q1: Is there a way to determine the consumed memory or file size of an
embedded image or object in a PowerPoint presentation?

You can save the presentation or a portion of it as HTML, then look at the image
files in the supporting files folder created. Correlating each file with the image
in PPT that "provoked" it isn't too hard to work out, IIRC.

The file size of compressed images can be grossly misleading, as PPT has to
uncompress them in order to display them. A 100k JPG can turn into several megs of
data when uncompressed, so you'll have to take that into account.
Q2: Is there any way, once an image or object is selected, to get only
the shape saved out to the file system?

Like Slides, Shapes have an .Export method (you may have to enable Show Hidden
Members in the Object Browser to get at it).
Is there anything you could point me to or information you could provide
that would help me better understand these questions?

General questions like that need a book more than a newsgroup answer, and nobody's
written this chapter yet. ;-)

It's mostly a matter of going at it until you run into a specific problem; narrow it
down to specifics and you can often get a good answer on the newsgroup.
 
J

Jim McClelland

Steve said:
Hi Jim,




You can save the presentation or a portion of it as HTML, then look at the image
files in the supporting files folder created. Correlating each file with the image
in PPT that "provoked" it isn't too hard to work out, IIRC.

The file size of compressed images can be grossly misleading, as PPT has to
uncompress them in order to display them. A 100k JPG can turn into several megs of
data when uncompressed, so you'll have to take that into account.




Like Slides, Shapes have an .Export method (you may have to enable Show Hidden
Members in the Object Browser to get at it).




General questions like that need a book more than a newsgroup answer, and nobody's
written this chapter yet. ;-)

It's mostly a matter of going at it until you run into a specific problem; narrow it
down to specifics and you can often get a good answer on the newsgroup.



-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Steve,
Thanks for your suggestions. Sorry it took me so long to respond but I
only browse the newsgroups occasionally. Browsing has the tendency to
suck me into a neverending distraction that keeps me from getting my
real job done. ;)
 
S

Steve Rindsberg

Thanks for your suggestions. Sorry it took me so long to respond but I
only browse the newsgroups occasionally. Browsing has the tendency to
suck me into a neverending distraction that keeps me from getting my
real job done. ;)

Get a job reading newsgroups? ;-)

Then hire me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top