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?
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?