Bug 374315 - Skanlite fails to save images with error message "Failed to save image: No such file or directory"
Summary: Skanlite fails to save images with error message "Failed to save image: No su...
Status: RESOLVED FIXED
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-30 03:27 UTC by Jaime Gaspar
Modified: 2017-01-18 19:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Gaspar 2016-12-30 03:27:42 UTC
Bug:
when the file name is not given an extension, Skanlite fails to save the scanned image to the file and gives the error message "Failed to save image: No such file or directory".

How to reproduce the bug:
- click on the button "Scan";
- when the preview window appears, click on the button "Save";
- choose a directory and file name to where to save the scanned image but not adding an extension to the file name;
- click on the button "Save";
- appears the error message "Failed to save image: No such file or directory" and the scanned image is not saved to the file.

Workaround:
when choosing the file name, add an extension to the file name.

Versions:
- Skanlite 2.0.0;
- KDE Frameworks 5.26.0;
- Qt 5.6.1.
Comment 1 Kåre Särs 2016-12-30 08:02:48 UTC
Thanks for the report!

I can reproduce when I have unchecked the "Automatically select file-name extension" checkbox.

What desktop are you using? Plasma or something else? If you are using something else is there the checkbox available at all in the save dialog?
Comment 2 Jaime Gaspar 2016-12-31 19:44:45 UTC
> I can reproduce when I have unchecked the "Automatically select file-name
> extension" checkbox.
> 
> What desktop are you using? Plasma or something else? If you are using
> something else is there the checkbox available at all in the save dialog?

I can reproduce the bug using Ubuntu Unity Desktop. I cannot find an "Automatically select file-name extension" checkbox.
Comment 3 Kåre Särs 2017-01-18 19:36:44 UTC
Git commit 76574ffbbc82825fa4965bd57dc7a2270d6fc7be by Kåre Särs.
Committed on 17/01/2017 at 19:19.
Pushed by sars into branch 'master'.

Default to PNG format if no format is provided.
FIXED-IN: 2.0.2

M  +14   -2    src/skanlite.cpp

https://commits.kde.org/skanlite/76574ffbbc82825fa4965bd57dc7a2270d6fc7be