Is the type that decides whether a file can be resized taken from its name? No. It is the file's real type, found from its bytes at upload, not its name. More: Image delivery, Which files can be resized