Re: 4:3 -> Widescreen PPPresentation: VBA transfer help



In article <650F3E80-3E6F-4A73-80F8-050BBC181D60@xxxxxxxxxxxxx>, Arcy wrote:
I changed that bit of code around, and tried some of the other options as
well. While it works (down to 254 mbs with jpg!), the downside is that there
is a noticable drop in the image's quality.

That's the dark side of JPGs. Might want to see how it works with PNGs instead.

Is there a way to modify the code to make it - essentially - select all,
copy, and paste into the new PPP in the same way I would do it manually,
which doesn't alter the image quality (or carry-over the black bars on images
that don't extend to the page margins).

Probably so but it'll take a lot more coding to get it right. What makes it simple
(as is) is that you can treat all the shapes on the slide as a single grouped unit
for scaling purposes.

If you copy/paste individually or copy/paste the shapes on a slide, you run into
troubles 'cause PPT won't let you group placeholders. And if you can't scale/move
the shapes as a group, it gets trickier by far.




"Steve Rindsberg" wrote:

In article <F9EFDDF7-3BDE-4153-BC08-D49441D50022@xxxxxxxxxxxxx>, Arcy wrote:
I have a powerpoint presentation that is ~1k slides (each slide containing
one image), which comes out to around 175mb. This is not much of a problem,
it loads a little slow, but it fits on our thumbdrive, and it showcases the
work we want.

The problem is that 'It Has Been Decided' that we need a widescreen version
of this presentation. I, being the lowly student hire, have been tasked with
this.

I found one way of transfering the slides' contents from one 4:3
presentation to another widescreen formatted presentation thanks to a really
old post on these boards, which linked to here:
http://www.rdpslides.com/pptfaq/FAQ00566.htm . The VBA macro at the bottom of
that page worked like a charm...

....except that the new file size exploded to ~750 mbs. Doesn't like to load,
save, close, or do anything else really.

I did come across the PPTools optimizer, which shrunk it to ~500mb, but
that's still too large and runs slow. Looking at the VBA from that page, I
noticed that it's essentially taking a screencap of the old slides and
pasting that as an enhanced metafile (whatever that is). This means that the
new images have large bars the colour of our slide background (black)
wherever the image didn't take up the entire slide, making each image that
much bigger.

Is there a way to edit that VBA code to make it copy only the existing
images and transfer them over to the new file? (A solution I'm hoping will
shrink the file-size further - I tried doing this myself, but came up eith
some exciting errors.)

Assuming you're using 2003, locate this bit of code:

For Each oSourceSlide In oSourcePres.Slides
[snip snip snip]
oSourceSlide.Copy
Set oSh = oTargetSlide.Shapes.PasteSpecial(ppPasteEnhancedMetafile)(1)

Change ppPasteEnhancedMetafile to ppPastePNG or ppPasteJPG

Make no other changes, then run the code on your original presentation, not one
that's already been "processed".

The original code uses metafiles so that you can still ungroup and edit the text
and other content if need be, but metafiles don't compress images, which is why
your converted version gets so badly bloated.

Switching to PNG or JPG images will leave the results uneditable but will give
you much better image compression.

Give it a try, c'mon back, report on the results. Thanks!

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================





-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


.



Relevant Pages

  • Re: Printing Large JPG Image from PowerPoint
    ... Which version of PPT are you using? ... Even though you've fit the JPG to the slide, it is still large -- that is, lots of pixels. ... Actually, make a copy of the slide, then select the jpg, choose Ctrl+X to cut it, then Paste Special. ...
    (microsoft.public.powerpoint)
  • Re: PPTs with lots of embedded graphics - how to cut down on file size
    ... > and then insert the jpg. ... In addition to the link Echo mentioned, you can select a graphic (or graphics) ... on a slide and press CtrlC to copy. ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: copy full screen PowerPoint slideshow image and paste into MS Word through vba code
    ... The code below gets started but the screenshot is not the full screen ... code to paste into Word from PPT? ... slide to a graphics file, then import that into Word programmatically? ... them into Word and the quality is not as good as when I used full- ...
    (microsoft.public.office.developer.vba)
  • Re: How to save as picture, preserving 100% quality?
    ... I have Adobe Acrobat. ... So from within any Office product, including PPT, ... Then, with Adobe Photoshop, I can resize an .JPG file (again, as one of many ... formats) preserving top (or any chosen compromise size<->quality) quality ...
    (microsoft.public.powerpoint)
  • Re: Save as jpg problem in PPT 2007
    ... When I go to "Save As" a jpg format, the slide is cropped - only the image in ... the upper left quadrant of my slide is seen in the jpg picture. ... I didn't have this problem in PPT 2003; also, if I save the PPT slides into ...
    (microsoft.public.powerpoint)