Using (Insert-Object) vs (Inserting-Picture-From File)

D

Drew Pruitt

I have a question concering methods for inserting a
picture.

Here are the details:

I have 6 jpg graphics that are about 30kb each. When
using the commands Insert-Object-Create from File, the
Word file is almost 7MB. I checked the file size when
checkin the properties. When using the traditional
commands Insert-Picture-From File, the Word doc is about
300kb which is what I would have expected.

What is the OLE method doing different? It seems to
almost decompress the graphic file which requires a
tremendous amount more. The pics even come is much larger
in appearance when using this method as well.

Just curious about the behind-the-scene differences
between the two. Thanks
 
S

Suzanne S. Barnhill

When you insert a picture as an OLE object, you are in effect embedding the
application that created the picture (or can be used to edit it). If you
double-click on a OLE object, you activate that application for editing in
place. This is not at all necessary for most pictures.
 
S

Stephen Lebans

One of the OLE object interfaces specifies that a representation of the
object be available for presentation without having to ask the parent
OLE Server application to be active and build one. You would not want to
have to have the parent app be responsible for drawing/redrawing the
object every time Word needs to render itself as you can imagine the
performance issues this would cause.
Basically what happens is your original Image, a jpeg in this instance,
is decompressed to a Device Independant Bitmap(DIB). This DIB is wrapped
within a Metafile. It's more complicated than this but it gives you the
general idea.

--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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