Merge lp:~mbarnes.redhat/simple-scan/default-save-format into lp:~simple-scan-team/simple-scan/trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~mbarnes.redhat/simple-scan/default-save-format |
Merge into: | lp:~simple-scan-team/simple-scan/trunk |
Diff against target: |
91 lines (+13/-13) 1 file modified
src/ui.vala (+13/-13) |
To merge this branch: | bzr merge lp:~mbarnes.redhat/simple-scan/default-save-format |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Ancell | Needs Fixing | ||
Matthew Barnes | Pending | ||
Review via email: mp+322293@code.launchpad.net |
Description of the change
I frequently use simple-scan to save scanned images as JPEG files. However, each time I have to manually change the save format from PDF to JPEG, even though the "document-hint" setting is "photo".
This branch sets the default save format according to the "document-hint" setting: PDF for text scans, JPEG for photo scans. (This assumes, I think correctly, that JPEG is most likely wanted for photos.)
Also, for convenience, if the user manually selects a different file format in the save dialog, simple-scan will remember that in subsequent save dialogs for the remainder of the session, or until the user changes the "document-hint" setting again.
Note, this branch alters a translated string ("Scanned Document.pdf" -> "Scanned Document").
Unmerged revisions
- 962. By Matthew Barnes
-
Choose a save format appropriate for the document-hint
Scanning text will select .pdf by default when saving, scanning photo(s)
will select .jpg by default.Also, remember the save format between save dialogs during a session
until the document-hint is changed again.
We actually changed from this behaviour because it was confusing when you had multi-page scans (bug 1480605). So I think it makes sense to save to PDF by default to be less confusing. However we should definitely remember the setting if the user changes it. This would ideally also persist between runs (i.e. store in gsettings).