Skip to main content
Participant
July 5, 2023
질문

Long File names failing to import with Lightroom Classic

  • July 5, 2023
  • 2 답변들
  • 654 조회

Re: Importing long file names

It appears that LRC will fail to recognise a valid file (TIFF,RAW etc) if the file name including the path exceeds 255 chars. So when you try to import I just get "No Photos Found". My file name + path was actually 288 chars including spaces and backslashes

If I reduced the char count to 255 using the same TIFF file it works fine.

Anybody else had this problem?

I am using the latest Lightroom Classic version 12.4 Release running under latest Windows 10 update

이 주제는 답변이 닫혔습니다.

2 답변

Phil5C29작성자
Participant
July 5, 2023

Thanks for that. I spent ages trying to work out why LR was failing to see a valid image. A more helpful error message would have been useful such as "Cannot import - Filename+Path exceeds Windows 255 limit"  It was just a guess that might be the problem.

dj_paige
Legend
July 5, 2023

Please suggest an improvement to Adobe.

Phil5C29작성자
Participant
July 6, 2023

Will do. Actually you can set Windows 10 to accept long file names by several methods such as Registry or Group policy edits. But that does not mean applications such as LR have to allow it. The odd thing is that the file opens perfectly ok in PS.

dj_paige
Legend
July 5, 2023

Lightroom Classic, and really all programs, cannot override the limits set by Windows for length of path+filename

Inspiring
July 6, 2023

Actually, it can.

 

https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file

In editions of Windows before Windows 10 version 1607, the maximum length for a path is MAX_PATH, which is defined as 260 characters. In later versions of Windows, changing a registry key or using the Group Policy tool is required to remove the limit.

 

For file I/O, the "\\?\" prefix to a path string tells the Windows APIs to disable all string parsing and to send the string that follows it straight to the file system. For example, if the file system supports large paths and file names, you can exceed the MAX_PATH limits that are otherwise enforced by the Windows APIs.

https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea

The name of the file or device to be created or opened. You may use either forward slashes (/) or backslashes (\) in this name.

By default, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, prepend "\\?\" to the path.

 

It just also requires support from the application.

It's not implemented not because it's impossible, but because noone cares.