Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random image files don't fit the frame and scale to 0 #515

Closed
AlexPetrov108 opened this issue Jun 20, 2019 · 6 comments
Closed

Random image files don't fit the frame and scale to 0 #515

AlexPetrov108 opened this issue Jun 20, 2019 · 6 comments
Labels

Comments

@AlexPetrov108
Copy link

I've encountered that random image files (.jpg and .png) may not fit the viewer window when opening - they show at 100% scale and when you try to zoom such files, they disappear scaling to 0%. While the majority of files open correctly. It may happen randomly if the folder contains the images from different sources, but if the folder has a group of photos from one source (a camera e.g.) then they all will either work or not.

To Reproduce

  1. Download the image samples of the issue files with the links below:
    https://drive.google.com/open?id=1q6YTImylK8Br3SiHWLKlfGEG3oWBJ2kY
    https://drive.google.com/open?id=1jNi6S7qldLJ8jf_nzCAUGnpJqEzAZrgk
  2. Try previewing them with the spacebar
  3. These samples will not fit the frame and will scale to 0% when trying to zoom

Expected behavior
Any image file (png or jpeg) should fit the frame and zoom when needed

Desktop (please complete the following information):

  • OS Version: Windows 10 Pro 1903 64-bit Build 18362.175
  • QuickLook Version: 3.6.5 (I tried the versions from the Store and msi)
@AlexPetrov108
Copy link
Author

I tried to Reproduce the issue with the files I shared, on my work PC with Windows 10 1803 and they worked just fine, no problem... Actually, I've had no such issues on that work PC ever so there must be something wrong with that particular installation on my home PC.
But I don't know what to think of because I've made a clean installation of Windows just a couple of days ago and installed QuickLook first from Windows Store, and when I saw that issue I uninstalled it and downloaded the msi file from here, and tried that one. Still no go... What could be the issue?

@xupefei
Copy link
Member

xupefei commented Jun 22, 2019

Is there any new exception log in Windows Event Viewer after the images goes blank?

@AlexPetrov108
Copy link
Author

I could find nothing related to QuickLook in Windows Events. Does the app leave the logs somewhere else?

@AlexPetrov108
Copy link
Author

AlexPetrov108 commented Jun 25, 2019

Ok, I found it. This is what happens when I Ctrl+Scroll to zoom the image which doesn't fit the frame and which goes 0% scale when scaling:
========25-Jun-2019 20:55:16========
System.OverflowException: The image data generated an overflow during processing. ---> System.ArithmeticException: Overflow or underflow in the arithmetic operation.
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.TransformedBitmap.FinalizeCreation()
at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
at System.Windows.Media.Imaging.BitmapImage.EndInit()
at QuickLook.Plugin.ImageViewer.AnimatedImage.NativeImageProvider.<>c__DisplayClass1_0.b__0()

@xupefei xupefei added the bug label Jun 28, 2019
@RockyMM
Copy link

RockyMM commented May 18, 2020

Hey all,

I just wanted to report that I have exact same issue.

Do you need some more debug info/logs?

@xupefei
Copy link
Member

xupefei commented May 18, 2020

This issue has been fixed in 3.6.8.

@xupefei xupefei closed this as completed May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants