Import of 3D-Image from pptx
Miklos Vajna
vmiklos at collabora.com
Fri Mar 22 07:40:54 UTC 2024
Hi Regina,
On Thu, Mar 21, 2024 at 11:41:07PM +0100, Regina Henschel <rb.henschel at t-online.de> wrote:
> at the moment, a 3D image is imported as an image and displayed in Impress
> without 3D. The 3D properties are in the InteropGrabBag and are written out
> again on export, in addition to a rotation or mirroring that the user has
> made with the image in LO.
>
> The 3D image could be treated in the same way as an image that has been
> cropped to a shape in PowerPoint. Such an image is imported as a custom
> shape with bitmap filling. Such a custom shape can then be displayed in 3D
> mode. When saving, however, as with the cropped image, the result would not
> be a pure image but a shape with a bitmap fill.
>
> What do you think? Should I implement this or should I continue to import a
> 3D image as a pure image?
I think in both cases the ideal would be to extend SdrGrafObj, to
support cropping and 3D properties if PPTX supports that. Of course,
it's good to share code with SdrObjCustomShape in the implementation if
possible.
If that's not possible (takes too much time, too complex), then it's an
option to map the images to custom shapes in our side, but sooner or
later these workarounds cause some problems. So at least some TODO /
FIXME comment would be nice, if you go this way.
Thanks,
Miklos
More information about the LibreOffice
mailing list