Giter Site home page Giter Site logo

faqy003 / comicrack-plugin-mifs Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.89 MB

Modern Image Formats Support for ComicRack (decode only) included Avif and JpegXL

License: The Unlicense

C# 4.83% C 79.61% C++ 15.39% Python 0.17%
avif comicrack jpegxl plugin image-decoding

comicrack-plugin-mifs's Introduction

Modern Image Formats Support for ComicRack

Two new formats has been added to ComicRack:

  • AVIF - Better at lossy compression. Same size with best quality. However, it's not that good at high-fidelity & lossless use.
  • JpegXL - Better at lossless compression. 30% smaller than PNG image in general. Next generation of jpeg format. Only format that support lossless convert from original jpg.

Something worthy mentioning about these formats:

  • All these formats are still in development and not well & widely supported.
  • Due to the inside mechanics of ComicRack, some new features of these formats are not support. (e.g HDR & animation)

P.S: I made this project only for practice, not intended for constant maintenance.

How to use

  • Download .crplugin file from Releases page.
  • Drag & drop it on ComicRack.
  • Restart your ComicRack. The plugin should enable automatically.

How it work

You can't add any new format support without touching the core of ComicRack. That can't be done in a ordinary way. But with help of Harmony I can insert my code before or after the original method without actually modify any local file, and make it work like a plugin.

What plugin do is make ComicRack treats all new formats as webp file. When ComicRack processing webp files we check if they are new formats and decode them by ourself.

The plugin must be loaded at the very beginning in order to avoid possible issues. So it using ReaderResized hook to trigger its initialisation.

Plan

  • Replace 3rdparty decoder with a better or slim one.

comicrack-plugin-mifs's People

Contributors

faqy003 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.