Bug 363608 - File types ignored, extensions stripped
Summary: File types ignored, extensions stripped
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (other bugs)
Version First Reported In: 3.0 Release Candidate
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-27 21:22 UTC by Lake
Modified: 2016-08-23 17:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lake 2016-05-27 21:22:41 UTC
There were two brief mentions of this bug at https://bugs.kde.org/show_bug.cgi?id=363374 , but since that report is only about  4 letter extensions being cut down to 3 letter extensions ("If use in krita .jpg format for save, by default krita save random in .jpE or .jpEG, but only not .jpG.
Same problem with other formats .tif and .tiff. By default krita save in .tiFF, not in .tiF.")
and since there was no documentation to go with the mentions, I have posted a bug report for it (because it is a different bug).

Make some popcorn and read below to see this bug strip extensions and resist file type changes! Yay!

Reproducible: Always

Steps to Reproduce:
1. New file
2. Save file without selecting a file type
3. File will be saved in the .kra format but without a file extension. It will have whatever filename you choose + kra at the end (without the period - such as "MyFilekra").

4. Hit "save as"
5. File type is automaticly selected as "Krita document". Leave it.
6. Add a 1 to the end of the file name and save.
7. File is now saved as filename+"kra"+1+"kra" (such as "MyFilekra1kra") but does not have a file extension.

8. Hit "save as"
9. Change type to Photoshop image.
10. Keep name the same and save.
11. Pop up dialog says file already exists and asks if you would like to override.
12. Click "yes" and you will get a new file named filename+"kra"+1+"kra"+"kra" (such as "MyFilekra1krakra").

For the fun of it, I tried opening it in Photoshop (didn't work).
Comment 1 wolthera 2016-05-27 21:55:21 UTC
which version of krita do you have (what git hash is mentioned in help->about krita?, mine for example is git e38aa23)
Comment 2 Lake 2016-05-28 03:16:25 UTC
Good question! The version I am getting this error with is version 3.0 RC 1 (git c9522ba) on Windows 7 32 bit (no Open GL).
Comment 3 Halla Rempt 2016-05-28 06:55:32 UTC
http://files.kde.org/krita/3/windows/devbuilds/krita-3.0-RC-1-master-7785651-x86.zip

Should have fixed this bug. I had to go through several iterations of working around Qt 5 QFileDialog bugs...
Comment 4 Lake 2016-05-30 19:01:27 UTC
Awesome! I managed to break the GUI yesterday, so I'll get rid of the old RC and install this version when I have a moment.
Comment 5 wolthera 2016-05-30 19:21:25 UTC
If you wait a few hours you can get the final stable from the website, and if you think you messed up the GUI beyond recognition, delete the configuration manually: https://docs.krita.org/KritaFAQ#Resetting_Krita_configuration

Krita doesn't delete files as you deinstall it, you see.
Comment 6 Lake 2016-05-30 21:46:46 UTC
Thanks for the tip, wolthera! I am currently testing the new save dialog, which, with the shell executable, lets me see my files as images - which makes me very happy, nice job! I'm going to post what I have found so far, since you guys are so close to the release (hope it helps!).

So far, I haven't had a problem with the "save" command, but the "save as" command needs a few tweaks:

1. Save file as "Delete" - this saves the file as "Delete.kra" (yay!)
2. "Save as" and add a 1 to the end - "Delete1" - this causes the file to be saved as "Delete1..kra"
3. "Save as" and a 2 to the end - (form is auto filled with "Delete1.") "Delete1.2" - this causes the file to be saved as "Delete1.2" dropping the .kra
4. "Save as" and a 3 to the end - this results in a file named "Delete1.23"

Good luck and congrats on the upcoming release!
Comment 7 Lake 2016-05-30 21:53:39 UTC
Removing the period from the filename results in the file having a "..kra" added to the end (double period again). Removing the period and manually typing in ".kra" causes it to save correctly.
Comment 8 Halla Rempt 2016-08-23 17:13:12 UTC
This should be fixed in the 3.0.1 alpha and beta builds.