d2phap / d2phap/ImageGlass

cannot load other image in the same directory when only passing file name

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

Nobody has claimed this yet.

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

Description

System information
  • Windows OS version: Windows 11 Pro 23H2 22631.4112
  • ImageGlass version: 9.1.8.723 (64-bit)
  • ImageGlass release: Classic (installed by winget)
To Reproduce

Steps to reproduce the behavior:

  1. add C:\Program Files\ImageGlass\ into PATH
  2. save some image files 1.jpg 2.jpg 3.jpg under C:\images\
  3. open powershell or cmd
  4. cd to C:\images\
  5. run below command:
    5.1 imageglass "C:\images\1.jpg" -->can also load 2.jpg and 3.jpg
    5.2 imageglass ".\1.jpg" -->can also load 2.jpg and 3.jpg
    5.3 imageglass "1.jpg" -->CANNOT load 2.jpg and 3.jpg
Expected behavior

always can load other image in the same directory

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 behavior with the three documented ImageGlass commands from PowerShell or cmd on Windows 11, comparing bare file names with absolute and .\ paths. Trace the command-line startup and image-directory handling; done means opening 1.jpg also permits browsing to 2.jpg and 3.jpg in the same directory for all three invocation forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, 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.