Bug 82636 - FILESAVE: Export to PNG (Selection) cut off last pixel line and column
Summary: FILESAVE: Export to PNG (Selection) cut off last pixel line and column
Status: RESOLVED DUPLICATE of bug 105998
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: Other All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2014-08-14 22:00 UTC by error0x2b1
Modified: 2017-04-11 10:41 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Draw example file (10.78 KB, application/vnd.oasis.opendocument.graphics)
2015-11-05 08:17 UTC, Pedro
Details
Exported PNG (46.28 KB, image/png)
2015-11-05 08:18 UTC, Pedro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description error0x2b1 2014-08-14 22:00:48 UTC
Steps to reproduce:
1. Create a rectangle (select if it isn´t selected)
2. File > Export, choose PNG as format, check "Selection"
3. Leave the PNG options unchanged
3. Save

Current behavior:
The border on the bottom and right is cut off. 

Operating System: Windows 7
Version: 4.3.0.4 release
Comment 1 Robinson Tryon (qubit) 2014-08-17 02:01:54 UTC
TESTING on LO 4.3.1.1 + Ubuntu 12.04

(In reply to comment #0)
> Steps to reproduce:
> 1. Create a rectangle (select if it isn´t selected)
> 2. File > Export, choose PNG as format, check "Selection"
> 3. Leave the PNG options unchanged
> 3. Save
> 
> Current behavior:
> The border on the bottom and right is cut off. 

NO REPRO on Ubuntu. This could be a Windows-only bug.
Comment 2 Michael 2014-09-21 03:04:43 UTC
I don't know if my comment needs a new bug or goes with this one. On Ubuntu 14.04, tested in both LibreOffice 4.2.6 that comes with it and 4.3.1.2 from ppa:libreoffice/libreoffice-4-3, if I export without marking "Selection", I get part of the image cut off on the bottom and right, replaced with a transparent strip 30 pixels wide. All default PNG options were used (width 14 inches, height 8.5, resolution 96, compression 9, interlaced, save transparency). If I "Select All" and export the selection (default PNG options of width 13.40 inches, height 7.89, otherwise same), I get the entire image.
Comment 3 Jacques Guilleron 2014-09-21 07:34:06 UTC
Hi error0x2b1,

I reproduce with LO 4.3.2.2
Build ID: edfb5295ba211bd31ad47d0bad0118690f76407d
& Windows 7 Home Premium.

Set Status to New.

regards,

Jacques
Comment 4 Jacques Guilleron 2014-09-21 07:57:58 UTC
last version found where this worked: LO 4.2.1.1. I have no version between this last one and LO 4.2.5.1.

So: Regression.

Jacques
Comment 5 Matthew Francis 2015-02-13 07:12:28 UTC
I can reproduce this on OSX and Linux. The change appears to have occurred at the below commit.

Adding Cc: to caolanm@redhat.com; Could you possibly take a look at this? Thanks


commit a1a0830d1ac3ffabbe35bd8a0264b64f1f7a9d67
Author:     Armin Le Grand <alg@apache.org>
AuthorDate: Wed May 30 13:44:19 2012 +0000
Commit:     Caolán McNamara <caolanm@redhat.com>
CommitDate: Sat Mar 16 01:57:53 2013 +0000

    Resolves: #i119601# support for transparency in PNG export dialog
    
    Added support for transparency in PNG export dialog and support for alpha
    channnel
    
    Conflicts:
        svtools/source/filter/exportdialog.cxx
Comment 6 Pedro 2015-11-05 08:16:59 UTC
Same behavior at 4.4.3.2 version in Linux Mint. When exporting as PNG selected objects, it loses one pixel at right and bottom.

Adding two attachments, a Draw file and the exported PNG with the error.
Comment 7 Pedro 2015-11-05 08:17:38 UTC
Created attachment 120278 [details]
Draw example file
Comment 8 Pedro 2015-11-05 08:18:05 UTC
Created attachment 120279 [details]
Exported PNG
Comment 9 Robinson Tryon (qubit) 2015-12-14 00:47:28 UTC Comment hidden (obsolete)
Comment 10 Xisco Faulí 2016-09-26 15:03:06 UTC
Adding Cc: to Armin Le Grand
Comment 11 deepzen 2017-04-11 08:06:04 UTC
This error is still present on Windows 7 32-bit with LO

Version: 5.3.0.3
Build-ID: 7074905676c47b82bbcfbea1aeefc84afe1c50e1
CPU-Threads: 8; BS-Version: Windows 6.1; UI-Render: Standard; Layout-Engine: neu; 
Gebietsschema: de-DE (de_DE); Calc: CL
Comment 12 Caolán McNamara 2017-04-11 10:41:03 UTC

*** This bug has been marked as a duplicate of bug 105998 ***