Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/1j01/rezzy-zoom-and-enhance

🔎✨ Zoom and Enhance browser extension (AI powered)
https://github.com/1j01/rezzy-zoom-and-enhance

ai comic comic-book comic-books comic-reader comics comics-reader ebook ideas manga manga-reader super-resolution waifu2x web-comics webcomic webcomics

Last synced: 6 days ago
JSON representation

🔎✨ Zoom and Enhance browser extension (AI powered)

Awesome Lists containing this project

README

        

# Rezzy: Zoom and Enhance for images on the web 🔎✨

Webcomic [Zoom and Enhance](https://www.youtube.com/watch?v=LhF_56SxrGk).

Sometimes the text in a web comic is a little too small to read comfortably.
Zooming in normally makes the text blurry, so it's not much help.

Rezzy is a browser extension that automatically enhances the resolution of images on the web,
using machine learning (powered by [waifu2x-converter-cpp][]).

![](promo.png)

Image credit: Sleepless Domain

Machine learning is cool, but it's important to make it *accessible*, and get it into the hands of the masses.

**Bonus feature:** navigate any web comic with arrow keys

THIS EXTENSION IS NOT RELEASED YET

## Development Setup

- Install Git if you don't already have it.
- [Install Git Large File Storage][git lfs install] if you don't have it.
- [Clone the repo.][git clone]
- Install [Node.js][] if you don't have it, then open up a command prompt / terminal in the project directory.
- Install project dependencies with `npm install`
- For **Linux** (not needed on Windows), run the following:
```sh
sudo apt-get update -y
sudo apt-get install -y libopencv-core-dev libopencv-imgcodecs-dev
sudo ldconfig -v
# Hack it so waifu2x-converter-cpp can find the ML model.
sudo ln -s "$(pwd)/waifu2x-DeadSix27-win64_v531/models_rgb/" /usr/local/share/waifu2x-converter-cpp
# Trick it into thinking it's OpenCV 4.2, if that's not what got installed. Might be better to actually install 4.2, but 4.5 seems to work with this:
sudo ln -s /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.4.2
sudo ln -s /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.4.2
sudo ln -s /usr/lib/x86_64-linux-gnu/libopencv_core.so /usr/lib/x86_64-linux-gnu/libopencv_core.so.4.2
```
- Start the superresolution server with `npm start`
- For **Firefox**, run `npx web-ext run` in the project directory
- It will open a window with the extension temporarily installed.
- When you make changes:
- It will automatically reload the extension.
- You need to reload pages you're testing on to get the updated content script.
- For **Chrome** or **Chromium**, type `chrome://extensions` in the address bar
- Turn on Developer mode
- Click "Load unpacked" and select the root of this repository as the folder
- When you make changes:
- You need to click the Reload button in the Extensions page
- Then reload pages you're testing on to get the updated content script.

## Usage
- Visit a webcomic, such as [Paranatural](https://www.paranatural.net/comic/chapter-1)... well, maybe that's not the best example, at the beginning, but it works really well once the art gets better. [Kill Six Billion Demons](https://killsixbilliondemons.com/comic/kill-six-billion-demons-chapter-1/), [Sleepless Domain](https://www.sleeplessdomain.com/comic/chapter-1-cover)
- Click on the extension icon in the browser toolbar, and click the power button in the popup to enable the extension for the current site
- (Check the server logs to see if it's working - or, if you hear your computer's cooling fans whirring into motion, it's probably working.)
- Wait for it to buffer several pages before reading

[waifu2x-converter-cpp]: https://github.com/DeadSix27/waifu2x-converter-cpp
[Node.js]: https://nodejs.org/
[git lfs install]: https://help.github.com/en/github/managing-large-files/installing-git-large-file-storage
[git clone]: https://help.github.com/articles/cloning-a-repository/