Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||Export file as bmp, change "Resolution", the result is not correct|
|Product:||Draw||Reporter:||Li Lin Yi <lilinyi921734>|
|Component:||save-export||Assignee:||Armin Le Grand <Armin.Le.Grand>|
|Status:||CLOSED FIXED||QA Contact:|
|Priority:||P5 (lowest)||CC:||arielch, Armin.Le.Grand, doneyourself, issues, rb.henschel|
|Version:||3.4.0 Beta (OOo)|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
Description Li Lin Yi 2012-01-17 08:03:39 UTC
Created attachment 77140 [details] 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)
Comment 1 Regina Henschel 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.
Comment 2 Ariel Constenla-Haile 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.
Comment 3 Armin Le Grand 2012-02-03 14:41:10 UTC
ALG: Taking over
Comment 4 Armin Le Grand 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.
Comment 5 Armin Le Grand 2012-02-03 14:45:52 UTC
ALG: Works well, comitted, done in revision 1240195.
Comment 6 liuping 2012-08-28 09:02:39 UTC
verify on AOO350ml 1377620 on Win7-64bit,pass