Git Product home page Git Product logo

cbz_jpg-to-webp's People

Contributors

azuravian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cbz_jpg-to-webp's Issues

probably problem with temporary folder (Linux)

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.

  1. in a Linux Terminal, run "py cbz_JPG-to-WEBP.py"
  2. set "scan" folder to /home/roro/Downloads/test/
  3. this folder contains 11 cbz archives
  4. set the "converted" folder to /home/roro/Downloads/test2/
  5. set the "corrupt" folder to /home/roro/Downloads/test3/
  6. watch the first cbz is extracted then fails

image

the temporary folder \\?\
image

Need to install some other dependencies

Hi,

I want to try your script but I need to install thoses dependencies :

  • sudo apt install python3-tk
  • sudo apt install python3-unrardll

(distro : Lunix Mint)

You should add this recommendation into your README file.

Thanks in advance.

As a Mylar Script?

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?

run in console

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.

Conversion attempt results in 3kb CBZ files with no images, only the ComicInfo.xml

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:

  1. in a CMD window, run "py cbz_JPG-to-WEBP.py"
  2. set "scan" folder to D:\Testing\Convert
    this folder contains a directory called "Rachel Rising (2011"), which contains a single CBZ archive.
  3. set the "converted" folder to D:\Testing\Convert
  4. set the "corrupt" folder to D:\Testing\Corrupt
  5. watch the progress bars, and note that 25 files are extracted, 24 are converted...but only 1 is zipped

image

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.

"Cleaning up..." never gets to 100%.

As per subject - during conversion, the "Cleaning up..." progress bar and percentage never appears to get to 100% before the next extraction process begins.

Looks like a visual issue only, as the temporary folder is definitely removed once the conversion has completed.

image

Script fails to convert jpg images

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.

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.