azuravian / cbz_jpg-to-webp Goto Github PK
View Code? Open in Web Editor NEWConvert cbz files that contain jpg images to webp images.
License: MIT License
Convert cbz files that contain jpg images to webp images.
License: MIT License
I use 5.15.0-2-MANJARO, python 3.9
The script identifies cbz and then creates a temporary folder \\?\
in the same folder as the script and tries to extracts the first comic there, but fails with the error as it cannot find the directory.
Hi,
I want to try your script but I need to install thoses dependencies :
(distro : Lunix Mint)
You should add this recommendation into your README file.
Thanks in advance.
I have setup my Mylar docker with python and would love for it to run this script after a file is downloaded do you happen to know how i could make this possible?
Would be awesome if it run as console command.
As it is, it does not:
_tkinter.TclError: no display name and no $DISPLAY environment variable
That way it could be scripted.
As per the subject - the script correctly identifies archives with jpg files, extracts them to a temp directory and appears to convert them - but only one file is zipped.
If I stop the script part way through conversion, I cannot locate any .webp files.
Script usage is pretty simple:
Here's a sample file:
OneDrive link: https://1drv.ms/u/s!AnMfIf1tfCd8gcxln3u85uwZBNdZqQ?e=110E0v
Once you've picked up the file, I'll remove it.
As of right now it seems the latest code fails to actually convert any jpg images. The resulting cbz file is lacking any of the files that were jpg. This might skip one image (like the cover or a scanlator added page) or all of them if they were all jpg images. If it doesn't convert or repack the jpg images it can result in a cbz similar to #1 where it only contains the ComicInfo.xml metadata file.
The above is on Windows
When testing in Linux it seems to work fine until you go to convert and I get a random file not found error when attempting to do the jpg file in the test cbz file. The temp folder also seems to be created wrong. It creates a folder that shows as \\?\
and has the same hierarchy under it as to the temp folder it mean to create. The temp folder shows that the conversion to webp skipped over jpg images and only converted png images.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.