Bug 128560

Summary: libetonyek Keynote Bad image resolution and missing crop
Product: Document Liberation Project Reporter: Pablo <pablo.platt>
Component: libetonyekAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: alonso, aron.budea, dtardon, vsfoote, xiscofauli
Priority: medium Keywords: bibisected, bisected
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 124107    
Attachments: Keynote presentation with cropped image
PDF exported from Keynote

Description Pablo 2019-11-02 19:33:02 UTC
Description:
The attached Keynote has an image. The image is cropped on the left. In impress the image is not cropped and the resolution is bad.

Steps to Reproduce:
1. Open the attached Keynote presentation.
2. Compare the image resolution and crop to the attached PDF exported from Keynote.

Actual Results:
The image resolution is bad.
The image is not cropped on the left.

Expected Results:
Good image resolution.
Image should be cropped on the left.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.2.2 (x86)
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU threads: 8; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL
Comment 1 Pablo 2019-11-02 19:33:26 UTC
Created attachment 155475 [details]
Keynote presentation with cropped image
Comment 2 Pablo 2019-11-02 19:33:51 UTC
Created attachment 155476 [details]
PDF exported from Keynote
Comment 3 Xisco FaulĂ­ 2019-11-04 11:52:02 UTC
The file attached can be open since libetonyek was updated to version 0.1.9 <
https://cgit.freedesktop.org/libreoffice/core/commit/?id=c6e73f3e5bfd5b1cca94f985b5299857d0238ae3
>

@David Tardon, I thought you might be interested in this issue...
Comment 4 osnola 2021-09-21 12:56:17 UTC
I added some code to get some masks in libetonyek that should solve the cropping problem in this document.

As for the resolution of this image, it is a theme image, so KeyNote only stored a low resolution in the .key file. When you ask it to open this file, it will first look to see if a high resolution is present on your computer; then it will try to find it on the internet (probably by trying to connect to an Apple server); finally, it will display a message saying that your computer is not connected to the internet and therefore some images can be displayed in low resolution.

Note: to test this code, you can either recompile a version of libetonyek with the current code, or wait for a release of libetonyek and its integration in LibreOffice.