Abhishek Mahanty's Weblog

Sunny Days...
Wednesday Apr 11, 2007

Embedding images in OpenOffice text documents

Whenever I copy and paste some content (text with images) from a web page into a OpenOffice text file (.odt), I notice that the OpenOffice writer application doesn't respond for few seconds. I understand that it takes time to fetch/load/render the images that are part of the copied content in the document and it's the same with other office applications like MS Word.

But what I find really frustrating is that having done so (copy+paste+save), it still tries to access the images online everytime I scroll through the document. As a result of which the OpenOffice writer application becomes slow and does not respond for few seconds. Moreover, the images don't get displayed and I get a "Read-Error", if I open the document when I'm not connected to the Internet.

The problem in the above case is that OpenOffice stores only the "link" to the online image and not the image itself. So everytime you open the document, the text content gets loaded and the application tries to access the image resource online.

(Select an image, right-click and select Picture to see the link details.)

Now, this is bound to put off any avid MS Word user as the behaviour they are used to is that images get embedded as part of the document itself.

Well after hours of tweaking here and there, I found out that OpenOffice actually allows both linking as well as embedding images in a text document, the former being the default behaviour. So, if you have a document that works with images as links to online resources and you would like to embed them instead, just do the following:

(Go to the menubar and select Edit -> Links)
The "Edit Links" Dialog gets displayed that shows all the links (mostly images/graphics) in the current document.

Now select the links to the images you want to embed and click the "Break Link" button.

To check if the images are embedded parts of the document and not links.
(Select an image, right-click and select Picture)

Comments:

thank you for your efforts to post this, very helpful

Posted by Bradley Perron on May 08, 2008 at 06:11 PM IST #

Oke tnx. but is it also possible to embed by default? I like to drag and drop pictures from a folder right away.

MS has the option to compress pictures in a document. So if you insert a 10MP picture and resize is to 2x2cm it wont take 6MB anymore. Ofcourese you cant blow it op again later. but hey it is just for school.

Posted by Sjoerd on May 18, 2008 at 05:42 PM IST #

This seems to be different in OpenOffice.org version 2.4. The graphics option in an image's context-menu doesn't exist anymore. Instead, active menu item Edit->Links, and break the links you want to include in the document.

Posted by Willem van Engen on June 21, 2008 at 04:01 PM IST #

Thanks for this hint. I couldn't find this is the documentation anywhere. I'd really like to have it embed by default, as not embedding is a problem when you email documents. I think Word by default embeds, but keeps a link to the original image in case you want to update it.

Posted by Brian Egge on June 24, 2008 at 08:55 AM IST #

ever since i downloaded opwnoffice, whenever 1 send a document to my friends, they say that they're unable to open it. it's frustrating. i don't want them to have to go through unecessary clicks and openings. help me please.

Posted by steven on August 19, 2008 at 06:16 PM IST #

Wow!
Thank you VERY MUCH!
Very helpful documentation.

Posted by Darcy on August 26, 2008 at 12:27 AM IST #

Very good. Thanks!

Posted by tdcrooks on September 24, 2008 at 06:19 AM IST #

Very helpful, thanks !

Posted by Adrian on September 24, 2008 at 07:22 PM IST #

Thank you very, very much for this tip.
This is really VERY helpful. I have to send a lot of documents to people using MS-Word and it drove me mad not to be able to embed the pictures.

Posted by Carbonara on October 06, 2008 at 09:34 PM IST #

Thank you very much, it was exactly what I needed.

Posted by Paolo on October 20, 2008 at 09:38 PM IST #

Thanks!
In my case I imported html document with images. This solved described problem with images in document on another machine.

BTW, in M$ Word, I wrote VB script to embed images (few years ago. it might be solved in recent version :-D ).

Posted by brasno on November 13, 2008 at 10:01 PM IST #

Thank you! You helped me very much.

Posted by asymmetric on November 20, 2008 at 08:27 PM IST #

I followed your steps and pasted some text and math formulas(png) from http://en.wikipedia.org/wiki/Recurrence_relation.

But there is a question, after I break all links, the images' size is not I need.

For every images embed, I need an extra step to resize it to the original. (right click --> picture-->Crop-->original size).

Posted by Xiang on November 25, 2008 at 02:36 PM IST #

Thank you so much for your help. My girlfriend and I have been preparing a "powerpoint" presentation for hours now and completely lost. Thanks for saving our grades.

Posted by Francis B on December 06, 2008 at 09:31 PM IST #

Thanks a lot for your help. It is really frustating if we're gonna copy and pasting from web on OpenOffice.Org

Posted by esetiawan on December 18, 2008 at 03:47 PM IST #

Great tip - thanks!

Posted by Jeremy on January 16, 2009 at 11:02 PM IST #

Thank you!

Posted by TiredNSleepy on April 16, 2009 at 03:55 PM IST #

ss10

Posted by w on April 23, 2009 at 12:17 AM IST #

That was a precious one!
I had a 745 pages document pasted from html, with some some hundred pictures.
Thanks!
Greg

Posted by greg on July 09, 2009 at 10:19 PM IST #

Now I can sleep! Thanks!

Posted by ChrisMc on August 14, 2009 at 05:35 AM IST #

Thank you! I was looking for this "Edit -> Links" for a long time.

Posted by Piotrek on August 26, 2009 at 12:24 AM IST #

Post a Comment:
  • HTML Syntax: NOT allowed

Archives
Feeds
Links
Blogs
Technorati
Referrers
Locations of visitors to this page




Valid HTML! Valid CSS!

Disclaimer: This is a personal weblog, I do not speak for my employer, Sun Microsystems.