r/comicrackusers • • Oct 22 '26

How-To/Support I built a ComicRack CE WebP optimizer to make room in my 2 TB+ comic collection

Hey everyone,

This started when I was downloading the WebP versions of the weekly comic bundles from GetComics. Seeing how much smaller they were than the JPEG versions made me look at my own collection, which has grown past 1 TB, and wonder how much space I could get back.

My comic drive is nearly full, so creating a second copy of the whole collection wasn't practical. I wanted something that could check the books I already have, convert eligible JPEG pages to WebP, validate the result and replace the original archive without keeping a permanent duplicate. I also wanted a copy option for people who prefer to keep their originals.

I already organize everything in ComicRack CE using public_fred's ComicRack Guru method, so integrating it into ComicRack felt like the obvious fit. That's how WebP Optimizer came about.

You select books in ComicRack and choose whether to analyze them, create WebP copies, replace originals or run a savings/quality comparison. It supports CBZ and CBR input, with CBR-to-CBZ as the usual output route. Replacement is designed to keep the existing ComicRack entry, metadata and reading progress. Temporary working space is still needed, even when you don't retain a backup.

The comparison mode tests Q60, Q70, Q75, Q80 and Q90 on up to three books, then lets you compare full-size pages in a native viewer. You can inspect matching RGB pixels and turn on an amplified difference heatmap for subtle changes; the readings measure pixel differences, not a percentage of quality retained. Q80 is the default, with dimensions unchanged. In testing, I've typically seen 40% to 65% reductions in file size with no visible loss to my eye. I've personally found Q75–Q80 difficult to distinguish from the originals on my monitor, but I'd encourage you to compare your own books. Savings and visible differences depend on the source material; already-WebP pages aren't recompressed.

There are also options for local temporary storage when working with a NAS, 1-12 concurrent page workers, stopping after the current book, reports, run history and recognizing completed work when continuing a batch. Unknown interrupted attempts are flagged for inspection.

My earlier NAS, CBR-to-CBZ and Komga/Komelia workflow checks went well. This doesn't mean I've finished converting the full collection or tested every setup. Start with disposable copies before running replacement on books you care about.

Code and instructions: https://github.com/RayRayElite/comicrack-webp-optimizer

The Windows 64-bit download includes the ImageMagick encoder. Python/Pillow and ComicRack CE are installed separately.

Downloads: https://github.com/RayRayElite/comicrack-webp-optimizer/releases

The plugin code is MIT licensed. I'd love feedback, bug reports and pull requests, especially from people with different collections, NAS setups and ComicRack workflows. Third-party components keep their own licenses.

Thanks goes to GetComics for the inspiration, maforget and the ComicRack CE contributors for keeping ComicRack going, and public_fred for the Guru method that shaped my workflow.

47 Upvotes

46 comments sorted by

2

u/OkRequirement1427 Oct 22 '26

Thank you for contributing to the community. Much needed!

1

u/RayRayElite Oct 22 '26

I was going to use it for my purposes, thought even if only one other person uses it its a win haha

2

u/CPav 24d ago

Consider it a win, then. I used it yesterday and today, on a much smaller subset of comics (I lost my large collection earlier this year when the hard drive I had it on froze up), and it will now be a standard part of my archiving routine.

1

u/RayRayElite 24d ago

Great to hear!

2

u/Juste667 Oct 22 '26

I'm getting an error that 7-zip is missing even after installing it twice. Any tips?

2

u/ibechildish Oct 22 '26

I'm running into the same issue

1

u/RayRayElite Oct 23 '26

Fixed in v1.0.1! Close ComicRack, update the plugin while keeping your settings.xml and Reports folder, then restart and run Tools & recovery → Check setup. You shouldn’t need to reinstall 7-Zip. I had to con my brother into testing the environment for me so I could get out the kinks haha.

1

u/ibechildish Oct 23 '26

awesome! yeah everything seems to be in working order now, thanks for sharing this btw. I just wanted to know if there's a way for me to add more quality options, for some bigger files I like to go as low as Q30-40.

1

u/RayRayElite Oct 23 '26

so after my research after 60 going into 55 didnt actually make things smaller because of diminishing returns. you would just be making things look worse with no real space improvement. Anything under 55 is not recommended.

1

u/RayRayElite Oct 23 '26

Fixed in v1.0.1! Close ComicRack, update the plugin while keeping your settings.xml and Reports folder, then restart and run Tools & recovery → Check setup. You shouldn’t need to reinstall 7-Zip. I had to con my brother into testing the environment for me so I could get out the kinks haha.

2

u/jakem742 Oct 23 '26

I can't run the conversion - I get an error "Could not find a part of the path 'C://.....xml....tmp". When I check the file path there's no .xml.tmp file with the same name in the Checkpoints folder.

2

u/RayRayElite Oct 23 '26

I’ve released v1.0.2 with a fix for a checkpoint temporary-path issue that could cause this error.

Please close ComicRack completely, update the plugin in place, keeping settings.xml and the entire Reports folder—including Checkpoints—then restart and try one book first.

Don’t create the missing .tmp file manually or delete checkpoints; that file is generated during saving. Avoid extra nested plugin folders.

If the error persists, please send the complete new error and path, with your username redacted. The new message includes the failing step and path lengths. This fixes a demonstrated path-length risk, but I can’t yet confirm that was the cause on your machine.

Download: https://github.com/RayRayElite/comicrack-webp-optimizer/releases/tag/v1.0.2

2

u/jakem742 Oct 24 '26

Thanks, it's working now!

1

u/RayRayElite Oct 24 '26

great to hear!

2

u/brenticles42 Oct 23 '26

Awesome project. I had to start converting to webp once my collection got close to 2TB. I have my own workflow already but I’ll check this out.

As an aside, does anyone know why rip sizes keep growing? Some recent page widths were over 3500 and the files are just massive. Sometimes I run a python script to downsize to 1988 and I can’t tell a difference in quality.

2

u/RayRayElite Oct 23 '26

I think its just a matter of people offering more quality for the purists who want it as detailed as possible. like you discovered we can always downsize it after the fact and it just makes it so the rippers don't have to release multiple quality versions.

2

u/JRT1379 Oct 23 '26

This sounds great, but it seems I need to devote the time to learn python and all that jazz before I can install/run it. Still, it will probably be worth it, as my 14T+ collection could use some optimization. If this could help me regain a couple Ts of space, I'm in.

Do the smaller files make it easier for ComicRack to handle them, or is that predicated more on the number of page in each file? I get processing lag on opening larger files (like an omnibus).

2

u/RayRayElite Oct 23 '26

There is actually no need to learn python to run this! I can see how that may be misconstrued. all you need to do is install python 3.13 and then run one command in your CMD to install pillow (a requirement for the encoder)
I am not too sure on the answer for your second question. I would imagine its mostly based on the page size but smaller file size definitely couldn't hurt!

1

u/rmagere Oct 22 '26

How does it handle comics that were already changed into webp using the original comicrack function?

1

u/RayRayElite Oct 22 '26

currently it doesnt change anything that is already webp

1

u/daelikon Oct 22 '26

I have been formatting all my comics to WebP 70 quality, resize if exceeds to 3000 pixels long side for 10 years now, I feel like you arrived a bit late to the party.

Edit: also, I do this from comicrack, no need for external tools either.

1

u/RayRayElite Oct 22 '26 edited Oct 22 '26

Maybe, but I wanted a easy tool that can keep track of it all for me. What I found out there didn't really scratch the itch. This let me really see the differences and pick a quality that I knew I would be okay with thanks to the preview tool and quality comparison. I also didnt know how it handled this with comicrack natively and was worried about it creating extra files before moving on to the next one since I have limited space on my comic drive.

2

u/daelikon Oct 22 '26

Comicrack works pretty well, you just create a profile you are confident with (that's what you really need to decide), I feel like I can't see any artifacts or image deterioration with compression at 70, with that I get sizes usually 30 percent of the original files.

The images get converted, the comic file get compressed again with the updated files, that's it.

The process will hog your computer, it's pretty intensive but you only need it once per comic, I sometimes run it in parallel in three computers if I have big collections like a full X-men collection.

comic readers integrated the webp already years ago, so there's really no issue.

Funny enough, I decided to go this route for the same reason as you, my collection at the time reached 8tb, that was the biggest hard disk drive I had at the time and didn't want to split the collection among different disks, so I started converting everything to webp (I keep two copies on two different disks).

1

u/RayRayElite Oct 22 '26

Yeah I am running it currently on 50k comics that atleast 95% are JPEG for whatever reason. I made sure on my tool to build speed as a important factor with peoples large collections in mind running it all at once. I added a way to do 12 concurrent pages at once instead of just one page at a time but still safely keep the files in tact as well as a prefetch that additionally can save 7-10% of the time per comic by readying the next comic ahead of time which is a huge savings when your doing this amount of comics. I have it down to roughly 4 seconds for a 30-40 page comic. I am not sure how that compares to the comicrack default.

2

u/daelikon Oct 22 '26

:-D Without even trying it, I can assure you it will be waaaay faster than comicrack, that unfortunately was never one of the strong points.

1

u/No_Championship_3690 Oct 22 '26

Many thanks. A few years ago, I was looking for a way to perform this conversion. I created a list of CBR files because I didn't know how to distinguish between JPEG and WebP files within them. I then tried doing the conversion manually, but I gave up after a few attempts.

1

u/RayRayElite Oct 23 '26

Well hopefully this makes the process a lot more user-friendly for you! the newest update 1.0.1 fixes the bug where it couldn't find 7zip if you ran into that issue!

1

u/OnyxPost Oct 22 '26 edited Oct 23 '26

A cool project.  Something to consider in the future (as support for it increases over time) is a process to convert JPG images to JXL images since it can compress the file further with no quality loss, and JPGX allows for conversion back to JPG with no quality loss. 

1

u/RayRayElite Oct 23 '26

This is something I can look into however for my current stack Komga / Komelia that I use to read comics that image format isn't supported. So I didn't bother. appreciate the suggestion though!

2

u/OnyxPost Oct 23 '26

I completely understand and agree that it wasn't worth supporting when you put this together. I'm just bringing this up as I suspect JXL image support for comic archive formats is coming now that all major web browsers, operating systems and image editing software support the format.

1

u/Saskaruto Oct 22 '26

I’ll check this out. I’m pretty sure all mine are in jpg. I’m working on updating the Star Wars data manager and library Organizer from comic guru’s guide. But this will be good to check out afterwards, as I’m over 2 TB’s of comics, not to mention my manga when I get to that as well.

2

u/RayRayElite Oct 23 '26

I look forward to seeing the updated star wars data for my own collection!

2

u/Saskaruto Oct 24 '26

I'm getting pretty far into it. It takes so much work going through and figuring everything out. Then once I do that, i have some decisions to make about renaming certain sections or not. I'm trying to retain the bulk of his original layout, but I'm running into a few areas that I'm thinking about updating. I'm trying to be respectful of his prior work, but while also doing what I think make sense. Its a balancing act for sure, but I'm trying to do the best I can. Due to the sheer volume of works, this is a very daunting task.

I'm also thinking about doing this to a few other universes that have a pretty large collection and spin-off's and stuff that I think I would like them with their own organization, versus the generic Publisher/series and done. But, Star Wars is my main tackle right now, as its massive, and I want to finish this and share it online, like so many others before me have done, so I can finally say I gave back as others have done by sharing theirs, like Comic Guru guide. Without that as the started, I would have been lost without sitting down and taking so much time figuring all this out. But once looking through it, it make so much sense how this all works in conjuntion, so I am forever grateful that he did such a massive amount of work already. Especially with the whole Marvel/DC universe. I'm sure even those need some updating, but I will look later, and that it so much more in depth, and I'm not hugely into that world to know all these breakdowns that he has, and I would be lost trying to do that ;p

1

u/Fearless-Address7621 Oct 29 '26

This is a good tool. How do you handle the “Illegal character in path.” error message?

1

u/RayRayElite Oct 29 '26

can you give more details on the exact entry that caused this error?

1

u/Fearless-Address7621 Oct 29 '26

I ran the tool against my current collection, 125,000+ issues, all previously formatted to WebP. The tool runs until this error pops up. I neglected to capture the total number of issues scanned. I did see that there were at least 5 issues that were reformatted. When I checked the reviewed the interrupted work, it noted that there were two issues that required checking.

1

u/RayRayElite Oct 29 '26

I have some follow up questions if you would be so kind to provide this information so i can give you a better answer and possibly fix the tool for the future to prevent this further.

Which action were you running: Analyze Only, Create WebP Copies, or Replace Originals? Which plugin version?

To find the report, open Optimize Archives (green square plugin button) > Run history, select the affected run, then choose Open results. Open Technical report and copy the complete error section for each affected book. Please include the full “Illegal character in path” message if available.

Also open Tools & recovery > Review interrupted work and share what it says for the two books requiring checks, including the named paths.

Were the comics local or on a network share?
Did you choose a temporary work folder?
Did the error stop the whole run or only individual books?

When you say five books were reformatted, were they marked as converted in the report, or were only their ComicRack tags updated?

1

u/Fearless-Address7621 Oct 29 '26
  1. Replace Originals
  2. I conducted a run afterwards, and the prior runs are showing in the list

4. Local
5. No temporary folder chosen
6. The error stopped the entire run
7. They are marked as “replaced original archive successfully.”

1

u/RayRayElite Oct 30 '26

I have released Version 1.1.0 to fix some bugs and add some features. download it here. Download WebPOptimizer-1.1.0.zip for the standard package.

This version improves Unicode text handling and makes errors easier to review and share. I haven’t confirmed that it fixes your particular “Illegal character in path” error, so please let me know if it happens again. If you get results, you can select the affected entry and use Copy entry, or use More > Support information to prepare details for sharing.

If the error stops the run before a results window appears, a screenshot of the full error message would still be helpful. Please keep the interrupted-work records and any files they reference until they’ve been reviewed.

I will add that the tool isnt really meant for running things that are already webp. but if you run analyze only on your whole library it will then have custom field "WebPStatus" set as weithier Already WebP or "Ready" you can eithier sort by this with viewed columns or create a smart list that checks for that custom value. then you can see what in your library would actually benefit from the tool instead of just running it on everything.

1

u/almightykd 11d ago

u/RayRayElite just wanted to let you know that your webp optimizer is truly amazing a god send. I'm halfway through converting over 75k comics and have already saved close to 500GB. Installation seems daunting but it's actually very easy. It operates flawlessly, looks amazing and is feature packed for what it does. Outstanding work and thank you for sharing it.

1

u/RayRayElite 11d ago

I am so very happy to hear that its making the same task I saw as ludicrous and time consuming exponentially easier for people. If you or anyone else has anything they would like to see changed or added i would love to know. Currently as it stands i thought of everything I could add to it that would be beneficial.

1

u/almightykd 3d ago

Finished my library and saved a tonne of space. Having a slight problem though, I can't remember if it started before of after installing the most recent nightly but WebPOptimizer is causing my Comicrack to hang and will not load, just stays stuck on the loading screen "Initializing Scripts". I pulled the entire WebPOptimizer folder from the script folder and Comicrack loaded no problem. Add it back and it hangs.

1

u/RayRayElite 3d ago

Hmm, that's no good. Ill have to try the newest nightly and see what the issue is. Thanks for the report.

1

u/almightykd 19h ago

I figured it out. In the Reports -> Checkpoint folder there were 2 folders that for me had a long alpha numeric string names. In one of them there were 58,958 .xml files also with long alpha numeric names taking up 383MB of space. I moved those files out restarted CR and it opened instantly. Not sure what these file are for I'm assuming it's just a by product of the analysis but removing them solved my problem. My computer is on the older side so that could be part of the issue too.

1

u/Cozila 10d ago

First off let me say that I am absolutely loving this tool and it has done a tremendous job in helping me clean up my library size. I do want to ask, and maybe I'm missing it if the option is already there, but would it be possible to have an option to let the script place a tag on a comic one it has been converted? This would be extremely useful to have a smartlist to only see files that haven't had the script run against it. Also it could help with the time estimates if the script was able to ignore files that have the tag applied so they wouldn't be files it had to end up skipping.

1

u/RayRayElite 10d ago

I am glad you are liking the tool! This does already exist as long as you have this option selected in preferences > behaviour.

you can read more about it and some smart lists that I use in the documentation.
https://github.com/RayRayElite/comicrack-webp-optimizer/blob/main/ADVANCED_USAGE.md#comicrack-guru-cleanup-lists