QL-Win / QL-Win/QuickLook

[BUG] 部分图片不能正常打开

Open
#1,697 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
24.7k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
1

Description

For all's convenience, please use English to fill this issue.

Please search within existing issues before the submission. Has this issue already been reported?

Describe the bug
图片不能正常打开,windows原生图片查看器可以正常打开

Image Image

To Reproduce
Steps to reproduce the behavior:
正常按空格预览文件

Expected behavior
原图片如下:

Image

Desktop (please complete the following information):

  • OS Version: Windows 10 22H2
  • QuickLook Version: 4.0.2 from MSI installer

Screenshots and Exception Log
System.OverflowException: 图像数据在处理过程中产生了溢出。 ---> System.ArithmeticException: 算术运算中发生溢出或下溢。
--- 内部异常堆栈跟踪的结尾 ---
在 System.Windows.Media.Imaging.TransformedBitmap.FinalizeCreation()
在 System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
在 System.Windows.Media.Imaging.BitmapImage.EndInit()
在 QuickLook.Plugin.ImageViewer.AnimatedImage.Providers.NativeProvider.<>c__DisplayClass2_0.b__0()

以下议题可能会有帮助:
https://github.com/d2phap/ImageGlass/issues/2099#issue-2884645796
https://github.com/dlemstra/Magick.NET/issues/1807#issue-2904677114

Contributor guide

No contributing guide indexed for this repository

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 at QuickLook.Plugin.ImageViewer.AnimatedImage.Providers.NativeProvider.GetRenderedFrame and trace the BitmapImage/TransformedBitmap creation shown in the exception. Reproduce with the reported images on Windows 10 and confirm that the affected images open through the normal space-bar preview without the OverflowException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.