-
Notifications
You must be signed in to change notification settings - Fork 562
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
TIFF files with “packbits compression” cannot be converted to PDF files #2320
Comments
Please provide a file to reproduce. |
If you can open the TIFF as a tif = "file.tif"
pix = fitz.Pixmap(tif)
doc=fitz.open()
page=doc.new_page(width=pix.width, height=pix.height)
page.insert_image(page.rect, filename=tif)
doc.save("file.pdf",deflate=True) |
@JorjMcKie Thank you! I tested more than ten TIFF files, but none of them could be converted to the correct PDF. The content of the converted PDF file is black. Additionally, I am unable to upload files on Github and have already uploaded them to Gitee: |
@JorjMcKie Thank You! |
Sorry cannot find any graphic file there. Please use a conventional ZIP of at least one TIFF. |
Reminder: this issue cannot be processed if you don't provide an example TIFF. |
i found your email address:[jorj.x.mckie@outlook.de],and I am now sending it to you via email. Thank you |
I'm very sorry, I provided you with an incorrect example I finally found the appropriate TIFF file and sent you a new email containing the TIFF file and my test results. Please help, thank you very much |
Thanks for the new files. I tested them with the new PyMuPDF version coming out soon. |
Thank you very much for your patient response. I am looking forward to the final result |
@JorjMcKie @radarher python-pillow/Pillow#7084 |
I just checked this file<gray.packbits.u2.tif> and realized that the content itself is black. Could it be that I misled you? However, it may be necessary to note that this file has two pages, both of which are black
At 2023-04-12 20:56:45, "Jorj X. McKie" ***@***.***> wrote:
Thanks for the new files. I tested them with the new PyMuPDF version coming out soon.
Good news: only one of the example files has problems (convered to black): gray.packbits.u2.tif, all the others work correctly.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I just checked this file<gray.packbits.u2.tif> and realized that the content itself is black. Could it be that I misled you? However, it may be necessary to note that this file has two pages, both of which are black |
According to our e-mail conversation, this issue can be closed with the new version, right? |
I would like to test it with the new version so that it can be confirmed, thanks |
Ok, sure. Then please install the new version, test it and let us know your findings. |
Thank you very much for your reply. You have completely resolved my issue through version 1.22.0. Thank you very much |
Can someone help ? generated file content is incorrect
The text was updated successfully, but these errors were encountered: