Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26478] New image extension is appended to the old one instead of replacing it

Date:
2011-03-12 17:50
Priority:
3
State:
Closed
Submitted by:
Georg K (georg)
Assigned to:
Andrea Weikert (elubie)
Category:
Interface
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
New image extension is appended to the old one instead of replacing it
Detailed description
Found in r35487 (winXP x32) & 2.56a (Ubuntu 10.04
x32)


When switching the File Type in the Image - Save As dialog, the former extension is not removed but the newly chosen one is appended to the filename.

For example untitled.png becomes untitled.png.bmp if bmp is chosen from the File Type dropdown box and it is also saved that way. If you change the FileType multiple times, the extension grows constantly leading to untitled.png.bmp.jpg.tif and so on.

What doesn't happen is a direct consecution of identical extensions like untitled.png.png

Of course, you can correct it manually, so it's not a big issue, but I thought I'd let you know anyway.

Followup

Message
  • Date: 2011-03-14 13:54
  • Sender: Ton Roosendaal
  • Andrea: F12, F3, and change file type in "Save As" panel on the left hand.
  • Date: 2011-03-14 22:32
  • Sender: Andrea Weikert
  • Fixed in Revision: 35544
    Brought back old code, a bit improved, since only known image extensions are replaced.
    One thing I noticed though is that the extension is now also corrected if the user types a wrong extension. This is caused by button callback added by Campbell. Might be good to give hint that user might want to change the image type, but could be confusing for some users.

    I am closing the report for now, but let me know if we need to find a better solution, like for example Gimp does with 'guess file type from extension'.
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2011-03-14 22:32elubie
close_dateNone2011-03-14 22:32elubie
StatusInvestigate2011-03-14 22:32elubie
assigned_tonone2011-03-14 13:54ton
CategoryNone2011-03-14 13:54ton
StatusNew2011-03-14 13:54ton