https://bugs.kde.org/show_bug.cgi?id=381810

Victor Wåhlström <victor.wahlst...@initiali.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |victor.wahlstrom@initiali.s
                   |                            |e

--- Comment #2 from Victor Wåhlström <victor.wahlst...@initiali.se> ---
Other than accidentally saving as the wrong file extension, there are websites
like imgur where you can change the extension in the URL and still get the same
image. It's not converted, it just has the wrong extension.

One thing that can be done to improve the situation is to parse the header if
there is a problem while loading the file, then either:

1. Notify the user of the problem, then attempt to "import" the image rather
than opening it: Create a new file and load the data from the "opened" file
into it. Since Krita won't have any references to the original file, saving
will ask the user where to save the file instead of just overwriting the source
file. 

or:

2. Keep the current behaviour of not opening the file, but improve the error
message:

"Couldn't load file.jpg: Image format is actually png, not jpeg. Please change
the file extension and try again."

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to