Bug 65428 - FILESAVE: Image in HTML couldn't be saved aligned to center in Writer
Summary: FILESAVE: Image in HTML couldn't be saved aligned to center in Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.3.3 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2013-06-05 17:37 UTC by db2007
Modified: 2023-01-29 03:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description db2007 2013-06-05 17:37:18 UTC
Problem description: 
If image in HTML document was aligned to center, it would be actually saved as aligned to left.

Steps to reproduce:
1. Create HTML document
2. Insert image in it
3. Set image's wrap to None
4. Align it (image) to center
4. Save and close document
5. Open document in LibreOffice or browser

Current behavior:
Image is aligned to left

Expected behavior:
Image is aligned to center

              
Operating System: Windows (other)
Version: 4.0.3.3 release
Comment 1 ign_christian 2013-06-07 10:00:24 UTC
reproducible on LO 4.0.4.1 (Win7 32bit)
Comment 2 A (Andy) 2015-03-07 20:03:35 UTC
How can you align an image to Center?  For me it is not possible with LO 4.4.1.2, Win 8.1.  You have only the option to align it left or right.  Or is there a misunderstanding from my side?
Comment 3 tommy27 2016-04-16 07:25:37 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-05-22 13:27:19 UTC Comment hidden (obsolete)
Comment 5 kevin_libreoffice 2017-06-05 15:51:40 UTC
Confirming that I see this in 5.3.3.2.  It's been a problem for years.  When images are added using Insert->Image, the default is to center the image on the screen.  Exporting to PDF works fine (the image remains centered).  But exporting to HTML makes the image left justified.

The export-to-HTML flow is used for creating Kindle ebooks.  So this is problematic for writers.

I had to manually fix the HTML in a previous version.  In the 'div' container encapsulating the image, the width & height are specified, and appear to be the size of the image.  When I removed these, the div container spans the entire screen and allows the image to center.
Comment 6 QA Administrators 2018-06-06 02:46:01 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2019-01-28 19:31:28 UTC
still repro in

Version: 6.1.4.2
Build ID: 1:6.1.4-0ubuntu0.18.10.1
CPU threads: 4; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: ru-RU (ru_RU.UTF-8); Calc: group threaded
Comment 8 QA Administrators 2021-01-28 04:17:59 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2023-01-29 03:24:02 UTC
Dear db2007,

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