JayXon / Leanify

lightweight lossless file minifier/optimizer
MIT License
832 stars 75 forks source link

Recursive compression of images within epub files #73

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, I use Leanify to recompress epub files frequently, and I noticed it doesn't compress the image files inside the epub. For now, I've been extracting the epub files and compressing the images, then compressing it into an epub before optimizing that with Leanify.

It would be a lot simpler and more streamlined to have Leanify do this on it's own.

JayXon commented 3 years ago

This should work, unless -f is passed, if you aren't doing that, could you share an epub that could reproduce this issue?

ghost commented 3 years ago

I apologize, I was using leanify via another tool and it seems that tool just doesn't use leanify correctly. I'll be sure to use leanify on it's own from now on.

Again, sorry!

JayXon commented 3 years ago

maybe that tool is using -d 1?