Giter Site home page Giter Site logo

Comments (13)

axu2 avatar axu2 commented on August 14, 2024

If you open the epub on a PC do you still see the gray pages? The pdf might just have small gray images...

Unzip the epub and look in the images folder.

from kcc.

derzz avatar derzz commented on August 14, 2024

So on Calibre and when unzipping the epub, the gray pages are still there. I'm looking at the pdf and there doesn't seem to have small gray images in there other than the manga being black and white.

from kcc.

axu2 avatar axu2 commented on August 14, 2024

Are pages being replaced with gray? Or are additional gray pages being added?

from kcc.

derzz avatar derzz commented on August 14, 2024

Additional gray pages are being added.

from kcc.

axu2 avatar axu2 commented on August 14, 2024

Hmmm, my suspicion is that it's a problem with the source file. Are you able to obtain a CBZ instead (which can be unzipped as well)? Or an image folder? Can you test with just a folder of random .jpgs to see if you still get it? Or upload the source file here, or at least a couple pages?

from kcc.

derzz avatar derzz commented on August 14, 2024

So when I obtain the CBZ, it still is producing the same issues. The issue isn't here with a random JPG folder. Attached are some pages of the PDF, let me know if you need more information. Even testing the pdf with some pages attached still produces the gray pages.
よつばと! 第01巻_removed.pdf

from kcc.

axu2 avatar axu2 commented on August 14, 2024

I'll test myself soon. In the meantime, are you on the latest stable version 5.6.2?

from kcc.

derzz avatar derzz commented on August 14, 2024

from kcc.

axu2 avatar axu2 commented on August 14, 2024

A single gray pixel is being generated between pages.
image

The pdf file must have stray single gray pixels between pages... Are you able to get a better source?

from kcc.

derzz avatar derzz commented on August 14, 2024

Sorry, I don't have a better source for this :(

Is there a way to delete these files, I'm fine if I have to manually do it, but if I manually delete each single gray pixel file, how would I repackage the image files into an epub?

from kcc.

axu2 avatar axu2 commented on August 14, 2024

I would try another program to extract the images out of the pdf. And then use the extracted file in KCC.

If you feel brave try editing pdfjpgextract.py

from kcc.

axu2 avatar axu2 commented on August 14, 2024

Can you test #546 @derzz

I was testing the sizes of the images in pdf and got this. But this is obviously a very small test case.

And this is very hacky, please fix up the PR when you finish testing with comments.

Alternatively, there's probably a better way to extract images in 2023, that code hasn't been touched in like 10 years probably.

642423
160
302131
159
317957
160

And please change the title to reflect that's it's a pdf issue

from kcc.

derzz avatar derzz commented on August 14, 2024

Sorry, but what should I do with #546? I have the release version right now and there's no python file for me to edit in the release. Can you elaborate on what I should do to test this PR?

from kcc.

Related Issues (20)

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.