Bug 115615 - Export to HTML generates wrong ImageMap if page margins are not zero
Summary: Export to HTML generates wrong ImageMap if page margins are not zero
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2018-02-10 15:10 UTC by ace_dent
Modified: 2023-03-06 04:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test case (14.47 KB, application/vnd.oasis.opendocument.graphics)
2018-03-04 19:08 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ace_dent 2018-02-10 15:10:28 UTC
Description:
The Export to HTML function will generate an HTML page and an image for each page in the ODG file. If the page has an ImageMap  (and may also affect regular hyperlinks attached to images), an associated client-side image map is generated.

The coordinates in this image map will be offset if the page in question has margins (Format->Page, Margins) set to anything but "0". i.e. For most images the HTML ImageMap is wrongly positioned.

Steps to Reproduce:
1. Add an image to a new Drawing with default page margins.
2. Select image then Edit > Image Map. Add an image map aligned to some feature of the picture.
3. Export the HTML. View the HTML.

Actual Results:  
ImageMap is in wrong position. Editing the drawing to set all margins=0, the exported HMTL is correct.

Expected Results:
I imagine the main use of ImageMap editing is to ultimately produce an HTML file. The HTML ImageMap should be correct regardless of Page margins.


Reproducible: Always


User Profile Reset: No



Additional Info:
Based on bug report: https://bz.apache.org/ooo/show_bug.cgi?id=121668 

Tested in: 
Version: 6.0.1.1
Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; 
Locale: en-GB (en_GB.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6
Comment 1 Buovjaga 2018-03-04 19:08:47 UTC
Created attachment 140337 [details]
Test case

Repro with both html and xhtml export. You can see the result after clicking "Click here to start".

Note that image maps have been proposed to be removed: https://wiki.documentfoundation.org/Proposals_for_removing_features#Image_maps

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 13164cc99dc6184fb2c12e56e9c0dea0d5692eec
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 4th 2018
Comment 2 QA Administrators 2019-03-05 03:39:08 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2021-03-05 04:18:41 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2023-03-06 04:23:10 UTC
Dear ace_dent,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug