Deobfuscate Viz-style manga images.
Project description
Viz Manga Deobfuscator
Viz manga pages are delivered to the browser as obfuscated images and the client JS is responsible for deobfuscation of those images for the viewer to read. This program reproduces the deobfuscate logic to produce a readable image.
obfuscated image:
deobfuscated image:
The image Exif metadata stores a hex digest to deobfuscate the image. Using the each byte value of the digest with it's position in the digest, we can select the appropriate tile in the obfuscated image and put it in the proper place in the deobfuscated image.
DISCLAIMER: I am not licensed or affiliated with Viz Media and this repository is meant for informational purposes only.
Installation
pip install viz-image-deobfuscate
Usage
This package exposes deobfuscate_image
that accepts a path to an image and returns an PIL Image
of the deobfuscated image.
from viz_image_deobfuscate import deobfuscate_image
deobfuscated = deobfuscate_image("raw.jpg")
deobfuscated.save("page.jpg")
CLI Usage
Bundled with this package is a CLI tool for scripting/testing purposes.
usage: image-deobfuscate-cli [-h] obfuscated_image deobfuscated_image
Deobfuscate manage page image.
positional arguments:
obfuscated_image Path to the obfuscated image.
deobfuscated_image Output path to the obfuscated image.
options:
-h, --help show this help message and exit
Example
>>> image-deobfuscate-cli raw1.jpg page1.jpg
Successfully deobfuscated image at: page1.jpg
Docker
Alternatively, you can build your own docker container to run the CLI or download an already built container from Docker Hub
>>> docker build -t viz .
>>> docker run -v /home/user/images/:/app/images viz images/raw1.jpg images/page1.jpg
Successfully deobfuscated image at: images/page1.jpg
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file viz-image-deobfuscate-0.1.4.tar.gz
.
File metadata
- Download URL: viz-image-deobfuscate-0.1.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f30b69aabc3df7094787b02f3c3d0cfd83e70ecf01b6d0f1505046fffc173608 |
|
MD5 | e490397a78e2c2e4675af62e090b97c1 |
|
BLAKE2b-256 | a5b7635b97b197678375094caac8f41bcf26a5d1cff8806253a15abe71d82751 |
File details
Details for the file viz_image_deobfuscate-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: viz_image_deobfuscate-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9271ccdde2ff122ffaea4f8cf717cca3990e4dfb5ad6ca976cc802f3b0e5d7da |
|
MD5 | 07e7f99f147735f1b07016514c1f4fae |
|
BLAKE2b-256 | 3693210a03403ee404f0a32fdf703eb41a14ffd6853bf3daf72d687525fa71bd |