Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems that the pic rect size wrong #56

Open
Nobellcq opened this issue Nov 12, 2024 · 0 comments
Open

It seems that the pic rect size wrong #56

Nobellcq opened this issue Nov 12, 2024 · 0 comments

Comments

@Nobellcq
Copy link

Traceback (most recent call last):
File "/Users/songyang/project/sf/lab/py/parse.py", line 9, in
content, image_paths = parse_pdf(pdf_path,
^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/gptpdf/parse.py", line 260, in parse_pdf
image_infos = _parse_pdf_to_images(pdf_path, output_dir=output_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/gptpdf/parse.py", line 151, in _parse_pdf_to_images
pix.save(os.path.join(output_dir, name))
File "/opt/homebrew/lib/python3.11/site-packages/pymupdf/init.py", line 10438, in save
return self._writeIMG(filename, idx, jpg_quality)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pymupdf/init.py", line 10148, in writeIMG
if format
== 1: mupdf.fz_save_pixmap_as_png(pm, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pymupdf/mupdf.py", line 47077, in fz_save_pixmap_as_png
return _mupdf.fz_save_pixmap_as_png(pixmap, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pymupdf.mupdf.FzErrorArgument: code=4: Invalid bandwriter header dimensions/setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant