Difference between revisions of "Export Resolution Draft2"
(→PBM) |
(→PGM) |
||
Line 222: | Line 222: | ||
==== PGM ==== | ==== PGM ==== | ||
− | [[Image: | + | [[Image:ExportToPBGPSpecialSettings.png]] |
+ | ''PBM need to be exchanged wtih PGM.'' | ||
The file format reflects back to the memory size texts. | The file format reflects back to the memory size texts. |
Revision as of 10:51, 19 March 2008
Setting Pixel Resolution when Exporting Graphics
Specification Status | |
Author | Regina Henschel |
Last Change | |
Status (Help) | Preliminary |
Abstract
This specification describes an User Interface to determine the amount of pixels which are used, when exporting a graphic from Draw or Impress to a raster format like BMP oder PNG. The corresponding enhancement request has 45 votes and several duplicates.
Contents
- 1 Setting Pixel Resolution when Exporting Graphics
References
Reference Document | Check | Location (URL) |
Prerequisites | [passed/failed] | n/a |
Product Requirement, RFE, Issue ID (required) | [available] | [#4499] |
Test case specification (required) | [available/not available] | <PLEASE ENTER LOCATION HERE> |
IDL Specification | [available/not available] | <PLEASE ENTER LOCATION HERE> |
Software Specification Rules | n/a | n/a |
Other, e.g. references to related specs, Product Concept Document | <PLEASE ENTER LOCATION HERE> |
Contacts
Role | Name | E-Mail Address |
Developer | <First Name, Last Name> | <User@openoffice.org> |
Quality Assurance | <First Name, Last Name> | <User@openoffice.org> |
Documentation | <First Name, Last Name> | <User@openoffice.org> |
User Experience | <First Name, Last Name> | <User@openoffice.org> |
Acronyms and Abbreviations
Acronym / Abbreviation | Definition |
<WYSIWYG> | <What You See Is What You Get> |
Detailed Specification
Current Situation in OOo2.4
OpenOffice.org can export the vector format drawings to a raster format. The amount of pixels are calculated from the screen resolution of the operating system, the view scale setting in Tools > Options and the width and height of the object. For example: An object with 1.0 x 0.5 inches, with a Windows XP screen resolution of "120DPI" and an OOo view scaling of 125% gives on export to BMP a size of 151 x 76 Pixels. This is approximately the calculation 1.0 inches ⋅ 120DPI ⋅ 125% = 150 dots. During export there is a list to determine "DPI", but that does not change the amount of pixels but only sets an meta information. There exists already some code to set pixel resolution. But this can only be used with a macro. The current export dialog uses a lot of dialogs, depending on the kind of target format.
- EMF, MET, PICT, SVM, WMF
- PBM, PPM
- BMP
- EPS
- GIF
- JPEG
- PNG
- Without any dialog are RAS, SVG, SWF, TIFF
- Export to HTML uses a wizard.
Competitor's Solutions
Corel Draw 12
Corel Draw 12 uses one dialog for all kind of target raster formats. Elements which do not apply to the specified format are greyed out. Settings which are only necessary for a specific format are set in a following dialog. In addition to the pixel resolution the user can set the color depth. Examples:
- Standard Bitmap Dialog
- Special Options Dialogs
New Behavior in OpenOffice.org
OpenOffice.org uses a unified dialog, which appears after the user has chosen the export file format. The lower section of the dialog depends on the export format. All settings are persistent during one OOo session.
There is no restriction to the settings but the available space in RAM and on disk.
The new dialog applies to all export formats but HTML, XHTML, PDF, SWF and PWP.
The values don't fit together but only show the design of the dialog.
The upper part is common to all formats. If a setting or value makes no sense for the choosen format then it is disabled or hidden.
The drop-down list for the unit of measurement offers the same items than Tool > Options > Draw > General
Millimeter Centimeter Meter Kilometer Inch Foot Miles Pica Point
Changing the unit effects the values in the fields height and width of the export size.
The drop-down list for the pixel resolution unit has the items
pixel/cm pixel/inch
Changing the unit affect the value field left from it. The value field resolution may contain decimals. Values must be positive.
Changing the resolution value effects the pixel dimensions. The values in the field height and width are rounded to integer.
Changing height or width in export size affects the corresponding field in pixel dimensions and vs. Calculations are based on the currently chosen resolution.
If keep ratio is checked, when height or width is changed, the other one is calculated automatically.
The button original size sets the height and width to that of the selection or page which is to be exported.
The color depth is a drop-down list with items
1 Bit Threshold 1 Bit Dithered 4 Bit Grayscales 4 Bit Color Palette 8 Bit Grayscales 8 Bit Color Palette 24 Bit Grayscales 24 Bit True Color
Changing the color depth effects "size in memory" and "round file size" but not the pixel dimensions.
The text in the part memory changes accordingly to the chosen object size, resolution and color depth. Both values are not guaranteed to be exact.
The lower part contains settings, which are specific to the format. The current settings should be possible, but I suggest some additions.
BMP
RLE compression reflects back to memory size texts.
All color depths are available but '24 Bit Grayscales'. Why is 24 Bit Grayscales not implemented for BMP export?
EMF
No special settings needed.
Hide color depth and pixel dimension? What to do if the selection or page which is to be exported contains bitmaps?
EPS
Compression and preview settings reflect back to memory size texts.
What further settings are used for the preview image? Are the user allowed to change them?
GIF
Color depth list shows the currently used setting, other values are disabled.
It should be possible to set the color depth.
JPEG
The compression reflects back to the memory size texts.
The color depth list shows the values '24 Bit Color' and '24 Bit Grayscales', which substitute the current radio buttons. Other values are hidden.
MET
No special settings needed.
The color depth list shows the currently used setting, other values are disabled.
PBM
The file format reflects back to the memory size texts.
The color depth list shows '1 Bit Treshold', other values are disabled. That is the color depth used in PBM format.
PGM
File:ExportToPBGPSpecialSettings.png PBM need to be exchanged wtih PGM.
The file format reflects back to the memory size texts.
The color depth list shows '8 Bit Grayscaled', other values are disabled. That is the color depth used in PGM format.
PICT
No special settings needed.
Color depth list shows the currently used setting, other values are disabled. PICT allows many settings, but currently the user cannot select any of them.
PNG
The comression reflects back to the memory size texts.
The color depth shows the currently used setting. The user should be allowed to set the color depth. It is already possible for embedded png-pictures. So why not implement it for export? The code is already there.
PPM
File:ExportToPPMSpecialSettings.png
The file type reflects back to the memory size texts.
The color depth shows the currently used setting.
RAS
Currently no export dialog exists.
The format itself allows many settings. Perhaps it should be handled like BMP.
SVG
Currently no export dialog exists.
What to do if the selection or page which is to be exported contains bitmaps?
SVM
No special settings needed.
Hide color depth and pixel dimension?
TIFF
Currently no export dialog exists.
The format itself allows many settings. Here are some additional implementations desirable.
WMF
No special settings needed.
Hide color depth and pixel dimension? What to do if the selection or page which is to be exported contains bitmaps?
XPM
Currently no export dialog exists.
I don't know this format. Are there now settings needed?
Help | User Interface Element Templates | Example Spec
Migration
Old documents need no change.
Configuration
Not decided yet. Help | Configuration Table Template
File Format
Export does not effect any of OOo's file formats. Help
Help | File Format Table Template
Open Issues
- Can the settings be saved in the user settings? Otherwise suitable settings from Tools > Options should be prefilled.
- Additional (or only) warning symbol or color change on the other tabs, if export size is to large?
- The proposed solution removes all settings, which affect aspect ratio. The user can change the aspect ratio easily inside Draw. There is no need to do it in an export dialog. Otherwise there must be not only one but two fields for DPI and a checkbox for "keep ratio".
- What about such formats, which use raster graphic as part, like PDF or EPS or HTML?
- Solve transparency for png now?
- Additional color depths?