d2phap / d2phap/ImageGlass

ImageGlass selects wrong file in the gallery when launched with a 8.3 short path

Open
#2,222 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐞 bug
Dominant language
C#
Stars
14.4k
Forks
752
Avg merge
10d 14h
Merged PRs (30d)
1

Description

Windows OS version

Windows 11 24H2

ImageGlass version

9.3.2.520

ImageGlass release

Classic

1️⃣ Steps to reproduce

Try to open an image file in a folder with multiple files (jpeg) via command line.
If the path to the image file is a full path, everything is ok.

If the path is a 8.3 short path ImageGlass "selects" the wrong image in the gallery (but displays the correct image in the main window). This is also a problem, when you for example want to print the image, it prints the wrong one. (The wrong selected in the gallery...not the image from the main window)

2️⃣ Actual behavior

Working:
C:\Program Files\ImageGlass\ImageGlass.exe "C:\Users\Test\Temp Test\img10 jslkdjsa djsakl4.jpg"

Not working:
C:\Program Files\ImageGlass\ImageGlass.exe "C:\Users\Test\TEMPTE1\IMG10J1.JPG"
-> Please see screenshot for the correct path. GitHub displays this path wrong.

3️⃣ Expected behavior

There should be no difference when open a file with a full path or a 8.3 short path in ImageGlass.

4️⃣ Screenshots / Video / Sample image file

Open file with full path (working ok):

Image

Open file with 8.3 short path (not ok):

Image

5️⃣ Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue through the command-line entry point with both the full path and the Windows 8.3 short path, then trace how the opened path is matched to the gallery selection. Done means the same image remains selected and is printed correctly for either path form.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.