DevToys-app / DevToys-app/DevToys.PngCompressor
Fails to open temporary image file in Windows 11
- Dominant language
- C#
- Stars
- 13
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
## Describe the bug
When attempting to load a PNG image for compression, the plugin returns the following error:
`Failed to compress PNG file using PNGQUANT. Exit code: 2. Error: error: cannot open C:\Users\XXXX\AppData\Local\DevToys-preview\Temp\tmpohwxq1.png for reading`
There is no `DevToys-preview` folder in `...\AppData\Local`. Creating such a folder manually does not solve the issue.
## To Reproduce
Open the plugin in DevToys-preview. Drag & drop, copy & paste, browse for a PNG file, or browse for a folder containing a PNG file.
## Expected behavior
The plugin should compress the PNG file.
## Desktop
- OS: Windows 11 Home
- DevToys v2.0-preview.1
- PNG Compressor 1.0.0-pre.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure in the DevToys-preview PNG Compressor with the drag-and-drop, paste, file, and folder inputs described. Trace the temporary PNG creation and PNGQUANT invocation, then verify that each input compresses successfully on Windows 11 without the missing-file error.
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
- 45/100