Page MenuHomePhabricator

TIFF files ending in .tif renamed on Commons get a .tiff extension
Open, Needs TriagePublicBUG REPORT


Rename a TIFF file (.tif) on Commons. The extension is automatically changed to .tiff,_Conway,_Arkansas,_8b32429.tiff&diff=prev&oldid=862009596

  1. The extension should not be changed automatically.
  2. All other files have a 3-letters extension by default (JPEG files can have .jpeg), TIFF files should follow the same principle.

Event Timeline

Aklapper renamed this task from TIFF files renamed on Commons get a .tiff extension to TIFF files ending in .tif renamed on Commons get a .tiff extension.Mar 20 2024, 12:14 PM

Is this a new behavior ?

All file types in Mediawiki have a ‘preferred’ file extension, and a preferred mimetype, next to allowed ‘allowed’ aliases.

.tiff (lowercase) is the preferred file type for tiff files and always has been. We also have .webm. 3 letters were a restriction of DOS that for various reasons was also a restriction in early versions of Windows, but limiting to 3 letters luckily is no longer needed (but by that time .jpg was already the preferred extension over jpeg).

It might be possible that some sort of ‘normalization’ is done when a destination filename is chosen, but im not aware of this being an automatic behavior. Will have to check later.

Tested locally. This is not a standard behavior, it takes whatever you put into the destination field name.

Screenshot 2024-03-20 at 20.41.11.png (1×1 px, 233 KB)

Screenshot 2024-03-20 at 20.41.42.png (500×1 px, 55 KB)

Maybe it’s a commons gadget ?
Unfortunately it seems im no longer allowed to move files on Commons, so i cannot check there

I gave you the file mover right for one month. You should request it on Commons to have it permanently.


IMG_8570.jpeg (1×1 px, 355 KB)

Looks to me like it is an issue with the gadget.

Here it takes the mime-type and uses that to infer a file extension..