I’m renovating the core library of ImageGlass

Phap Duong
2 min readMay 13, 2019

I have been receiving many requests about supporting viewing multi-page for those image format like TIF, ICO,… but it’s tough to implement due to structure of the core library.

Besides Magick.NET, ImageGlass uses variety of third-party libraries to load particular image formats, such as IconLib for icon file, WIC for RAW formats… This helps the app to be able support more file extensions, but also makes the core library messy and fragmented.

ImageGlass Core library

After a month, I have completed the first stage of renovation, and introduced the new core library called ImageGlass.Heart which is already integrated to the latest version of ImageGlass Moon (v6.1.5.12).

ImageGlass.Heart library

So, what are the differences?

  • ImageGlass.Heart supports C# asynchronous function that does not freeze the user interface while running.
  • ImageGlass.Heart supports changing the number of maximum files can be cached in memory. ImageGlass.Core only supports 3 files.
  • In ImageGlass.Heart, ImageBooster is improved with better file position caching and resource releasing.
  • In ImageGlass.Heart, the loading functions are unified and easy to develop.

But…

  • ImageGlass.Heart consumes a little bit more memory than ImageGlass.Core. But, it’s only about 3%. 😶

And not over yet, with the above pros of ImageGlass.Heart, it’s quite promising to implement multi-page viewing feature for TIFF, ICO,.. format. In the stage 2, I may introduce “hard-disk caching” which I am currently still researching. 😚

If you want to try out ImageGlass.Heart, you can download ImageGlass Moon: https://imageglass.org/moon, which has the latest of the new ImageGlass features.

Be forewarned: ImageGlass Moon is designed for early adopters, and can contain bugs.

By the way, I’m exploring blockchain world as well. I will post articles about it in the future! 😆

Sign up to discover human stories that deepen your understanding of the world.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Phap Duong
Phap Duong

Responses (3)

Write a response

Love the app.
Would love to see a macOS quick look feature as well ( using the Spacebar)

--

Nice. I also love the app. In particular how fast and non-intrusive it is to the viewing experience.
Can I request one feature? Have F11 be Fullscreen instead of Slideshow, and have the Fullscreen Mode require you to right click to open the context…

--

I love this app too. But, please, can you put an option to exit the viewer in the context menu that appears when you press the right mouse button? I don’t want to use the keyboard (ESC key) to do it.
Thank you.

--