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

HEIC opening is somewhat slow #995

Closed
kleuter opened this issue Mar 5, 2021 · 9 comments
Closed

HEIC opening is somewhat slow #995

kleuter opened this issue Mar 5, 2021 · 9 comments
Assignees
Labels

Comments

@kleuter
Copy link

kleuter commented Mar 5, 2021

System information:

  • Windows OS version: 10x64
  • ImageGlass version: 8

Before opening a 1MB image I need to wait ~3 seconds on my Core i7 8700K

Any change to get it improved? Thanks.

@d2phap
Copy link
Owner

d2phap commented Mar 5, 2021

Hi @kleuter

Before opening a 1MB image I need to wait ~3 seconds on my Core i7 8700K

Can you describe more about 3 seconds.

  • Is that the time you waited for ImageGlass window open, or to view the image?
  • Can you attach your HEIC file, it's better for investigation?

Thanks!

@kleuter
Copy link
Author

kleuter commented Mar 5, 2021

The window opens normally for a .NET app, not instantly as native apps but fine.
After it opens I have to wait the file to be rendered.
Can't attach a file, it happens to any file from the library, even for small files.

I can record a video if you'd like

@d2phap
Copy link
Owner

d2phap commented Mar 7, 2021

You can attach a zip file instead

@kleuter
Copy link
Author

kleuter commented Mar 7, 2021

IMG_8080.zip

@fire-eggs
Copy link
Collaborator

Here's my experience on my Win7x64, I7-4790.

Your sample image takes me about 2 seconds to load. I get the impression that IG 8.0 takes a smidge longer than IG 7.6 or the latest IG Moon. You might give the latter a try.

IG 7.6/Moon takes me three seconds to load a 5000x8889 pixel HEIC (see issue #647); IG 8.0 takes about 5 seconds. [A larger resolution image may take longer than a larger disk size.]

You don't tell us if you are loading files across the network. Mine are on a local, spinning rust disk.

@kleuter
Copy link
Author

kleuter commented Mar 9, 2021

Local SSD drive, I don't think I must use the older version if 8.0 is the latest

@fire-eggs
Copy link
Collaborator

Sorry if I was unclear. The ImageGlass Moon releases are newer than 8.0 but might not be considered "stable" by some. Issue #977 is a HEIC related bug which was addressed in the most recent ImageGlass Moon.

@dingshi
Copy link

dingshi commented Jul 21, 2021

I'm experiencing similar problem. ~2 seconds for the app to load, another 3 seconds for the image to load, Most annoyingly the loading message at the center of the screen stays on for about 10 seconds after the image is rendered. Noticed CPU keeps up in the high during the entire 12 seconds. Most my files are local on SSD, and around 8-10 MB in size., Installed the Moon version. Same issue., Windows 10 x64, CPU is i7-7820X

@d2phap
Copy link
Owner

d2phap commented Sep 11, 2024

HEIC format is always slower compared to others such as JPG, PNG, JXL,... Unfortunately, ImageGlass does not have built-in decoders, it uses the third-party library Magick.NET which also uses other third-party libraries to decode the image formats. ImageGlass can only help by preloading the images into memory. Hence, there is no fix for this.

@d2phap d2phap closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
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

4 participants