Bug 87906 - Insert > Image should allow adding ODG
Summary: Insert > Image should allow adding ODG
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval, topicUI
Depends on:
Blocks: Images
  Show dependency treegraph
 
Reported: 2014-12-31 13:33 UTC by Yousuf Philips (jay) (retired)
Modified: 2024-01-22 02:40 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
example odg (12.91 KB, application/vnd.oasis.opendocument.graphics)
2016-02-17 02:46 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-12-31 13:33:50 UTC
As .odg is no different than .svg, being it a graphics document format, it should be possible to insert it through the Insert > Image dialog.
Comment 1 Cor Nouws 2014-12-31 14:00:08 UTC
Hi Jay,

What happens when one double clicks on an inserted .svg?
Cor
Comment 2 A (Andy) 2014-12-31 14:52:32 UTC
For me this sounds reasonable.

@Cor: What do you mean with double click on an inserted svg?  In my case I can then after a double click add a text to it?
Comment 3 Cor Nouws 2014-12-31 15:23:09 UTC
(In reply to A (Andy) from comment #2)

> @Cor: What do you mean with double click on an inserted svg?  In my case I
> can then after a double click add a text to it?

Double clicking on an .odg opens the Draw interface, since it's an object.
Comment 4 A (Andy) 2014-12-31 15:29:04 UTC
(In reply to Cor Nouws from comment #3)
> (In reply to A (Andy) from comment #2)
> 
> > @Cor: What do you mean with double click on an inserted svg?  In my case I
> > can then after a double click add a text to it?
> 
> Double clicking on an .odg opens the Draw interface, since it's an object.

Ok, thanks, now I know what you meant.  But would this from your point of view contradict an implementation as Jay suggested?
Comment 5 V Stuart Foote 2014-12-31 16:51:03 UTC
If possible, making the ODG graphic/image insertion more seamless would improve UX, and would increase its prevalence for use as a graphics editor within the suite. 

Not sure of all the reasons, but presently an ODG can be inserted, but only as an OLE object. 
Insert -> Object -> OLE Object: Create from File.  

Very awkward, and the object thus inserted does not receive the same treatment as other graphic/image formats (even other OLE)--different set of Properties for its frame.
Comment 6 Cor Nouws 2014-12-31 17:45:48 UTC
Well, the reason for me asking the question of course lays hidden in what Stuart writes.
Because an .odg embeds as a document, it has different behaviour as images. (though .svg seems to be what in between?)
I'm not sure if that isn't going to lead to confusion, where apart from Insert > Object, also Cut'n paste from Draw with various choices is possible.
Just saying here ;)
Comment 7 Yousuf Philips (jay) (retired) 2014-12-31 17:55:24 UTC
@Cor: Yes it should act similar to SVG when it is inserted or double-clicked.

@Stuart: In Draw, if you attempt to add an ODG to an existing document, it adds the ODG pages to the file (Insert > File).
Comment 8 Jean-Baptiste Faure 2014-12-31 19:03:28 UTC
(In reply to Jay Philips from comment #0)
> As .odg is no different than .svg, being it a graphics document format, it
> should be possible to insert it through the Insert > Image dialog.

I am tempted to disagree because a .odg is not an image. What do you expect if you insert à multipage odg file in a text document ?

Best regards. JBF
Comment 9 Yousuf Philips (jay) (retired) 2014-12-31 22:53:20 UTC
(In reply to Jean-Baptiste Faure from comment #8)
> I am tempted to disagree because a .odg is not an image.

Well it depends on what your definition of image is. JPGs are bitmap images and SVG are vector images, or if you prefer, you can call them graphics. ODG stands for OpenDocument Graphics.

http://en.wikipedia.org/wiki/Raster_graphics
http://en.wikipedia.org/wiki/Vector_graphics

> What do you expect
> if you insert à multipage odg file in a text document ?

What happens when a multipage TIFF or PDF is inserted into a document? I've never tried doing that in LO, but when i opened a multipage PDF in photoshop, it would ask me which page i wanted to insert.
Comment 10 Yousuf Philips (jay) (retired) 2016-02-17 02:46:41 UTC
Created attachment 122704 [details]
example odg

I would like to further clarify what i was proposing with this enhancement.

So the proposal isnt to change the current behaviour of inserting an ODG as an OLE Object (Insert > Object > OLE Object), but instead to allow the Insert Image dialog to insert the contents of an ODG file into the current document in the same way that it does for an SVG.

One of the main advantages that would be gained by inserting an ODG file over inserting an SVG is that an SVG file is treated as a single non-editable vector image, while an inserted ODG would be a editable grouped collection of vector and not vector objects. Basically no different than opening the ODG in Draw and copying and pasting its content into your document (Paste Special's Drawing Format).

So with this functionality, i could have sent someone the attached odg file of a button and they inserted it into their Writer and easily change the button label to whatever they like. This functionality would be highly beneficial, as we could have similar ODG files in the gallery and in Draw's future stencil/symbol gallery.
Comment 11 Xisco Faulí 2020-03-09 13:27:45 UTC
Please add keyword 'needsUXEval' and CC 'libreoffice-ux-advise@lists.freedesktop.org' if input from UX is needed.