Download it now!
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: HTML-Export
  Show dependency treegraph
 
Reported: 2013-06-05 17:37 UTC by db2007
Modified: 2019-01-28 19:31 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