You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/01/17 09:03:39 UTC

DO NOT REPLY [Bug 118804] New: Export file as bmp, change "Resolution", the result is not correct

https://issues.apache.org/ooo/show_bug.cgi?id=118804

             Bug #: 118804
        Issue Type: DEFECT
           Summary: Export file as bmp, change "Resolution", the result is
                    not correct
    Classification: Application
           Product: Drawing
           Version: OOo 3.4 Beta
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: P5
         Component: save-export
        AssignedTo: graphicsneedsconfirm@openoffice.org
        ReportedBy: lilinyi921734@gmail.com
                CC: ooo-issues@incubator.apache.org


Created attachment 77140
  --> https://issues.apache.org/ooo/attachment.cgi?id=77140
Original file.

Steps to Reproduce:
1. Start OpenOffice.org Draw.
2. Insert->Picture->From File...->choose the attached file: test.svm.
3. Click the inserted object, File->Export..., the "Export" dialog appears.
4. Input "File name" test1, "File format" choose BMP, choose "Selection". Click
"Export...", "BMP Options" dialog appears.
5. Change "Resolution" from 96 pixels/inch to 300 pixels/inch, click "OK".
6. Back to OpenOffice.org Draw, insert a line next to the inserted object.
7. Choose both the line and the object.
8. Redo step 4, 5("File name" changes to test2).

Actual Results: 
Compare the exported 2 files test1.bmp and test2.bmp, the resolution are
different.
test1.bmp has low quality. test2.bmp has the same quality with the original.

Expected Results:
Exported files' resolution should match the entered value. The same resolution
should present the same quality.

Build Date & Platform:
Build revision is 1229490, on SUSE Linux Enterprise Desktop
11(i586)

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

[Bug 118804] Export file as bmp, change "Resolution", the result is not correct

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118804

liupingtan <do...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|VERIFIED                    |CLOSED

-- 
You are receiving this mail because:
You are on the CC list for the bug.

DO NOT REPLY [Bug 118804] Export file as bmp, change "Resolution", the result is not correct

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118804

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arielch@apache.org

--- Comment #2 from Ariel Constenla-Haile <ar...@apache.org> 2012-02-02 20:52:57 UTC ---
(In reply to comment #1)
> As described. The number of pixels are different although same outer size and
> same dpi.
> 
> The resolution problem is still not solved. The implementation has changed the
> UI, but does not set the resolution correct. It has been correct in the
> extension "EnhancedGraphicExportDialogs.oxt". The original issue is 4499. 

I had reopened that issue. The implementation has some bugs.
May be this can be closed as duplicated.

> It had been set to fiexed, but I don't know what is really implemented now.
> Because of the Oracle->Apache transfer it stuck somewhere. The issue has macros
> attached. Perhaps such macro can solve your actual export. Unfortunately the
> extension is not maintained and not adapted to newer versions and source is not
> available.

I've found there is a Java decompiler available: http://www.kpdus.com/jad.html
I'll try how it works decompiling that extension.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118804] Export file as bmp, change "Resolution", the result is not correct

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118804

--- Comment #4 from Armin Le Grand <Ar...@me.com> 2012-02-03 14:44:33 UTC ---
ALG: Problem is in the GraphicExporter component (svx). For single objects, it
tries to use shortcuts, e.g. in this case the selected object is a graphic
object and it gets the graphic directly from it (that's why it works with two
objects selected). In this case, the graphic is a vector format, despite pixels
are requested. Somwhere outside the GraphicExporter the metafile gets converted
to pixels (some fallback magic somewhere in old code), but there no info about
wanted resolution is available.

ALG: Changed GraphicExporter to only accept shortcuts to pixel-oriented graphic
objects; this was already half there, but wrong.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118804] Export file as bmp, change "Resolution", the result is not correct

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118804

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Armin Le Grand <Ar...@me.com> 2012-02-03 14:45:52 UTC ---
ALG: Works well, comitted, done in revision 1240195.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118804] Export file as bmp, change "Resolution", the result is not correct

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118804

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED
                 CC|                            |Armin.Le.Grand@me.com
         AssignedTo|graphicsneedsconfirm@openof |Armin.Le.Grand@me.com
                   |fice.org                    |

--- Comment #3 from Armin Le Grand <Ar...@me.com> 2012-02-03 14:41:10 UTC ---
ALG: Taking over

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118804] Export file as bmp, change "Resolution", the result is not correct

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118804

Regina Henschel <rb...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |rb.henschel@t-online.de
     Ever Confirmed|0                           |1

--- Comment #1 from Regina Henschel <rb...@t-online.de> 2012-01-17 11:46:18 UTC ---
As described. The number of pixels are different although same outer size and
same dpi.

The resolution problem is still not solved. The implementation has changed the
UI, but does not set the resolution correct. It has been correct in the
extension "EnhancedGraphicExportDialogs.oxt". The original issue is 4499. It
had been set to fiexed, but I don't know what is really implemented now.
Because of the Oracle->Apache transfer it stuck somewhere. The issue has macros
attached. Perhaps such macro can solve your actual export. Unfortunately the
extension is not maintained and not adapted to newer versions and source is not
available.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

[Bug 118804] Export file as bmp, change "Resolution", the result is not correct

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118804

liupingtan <do...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED
                 CC|                            |doneyourself@gmail.com

--- Comment #6 from liupingtan <do...@gmail.com> ---
verify on AOO350ml 1377620 on Win7-64bit,pass

-- 
You are receiving this mail because:
You are on the CC list for the bug.