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

Converting MCIDAS to PDF results in empty file #3351

Closed
OskarPersson opened this issue Sep 13, 2018 · 7 comments
Closed

Converting MCIDAS to PDF results in empty file #3351

OskarPersson opened this issue Sep 13, 2018 · 7 comments
Labels
Bug Any unexpected behavior, until confirmed feature. Conversion
Projects

Comments

@OskarPersson
Copy link

What did you do?

Converted MCIDAS .ara-file to PDF

What did you expect to happen?

A PDF would be created with content similar to the source

What actually happened?

An empty PDF was created

What versions of Pillow and Python are you using?

Pillow 5.2.0 and Python 2.7.15

The tested file

ara = Image.open("Tests/images/cmx3g8_wv_1998.260_0745_mcidas.ara")
rgb_ara = ara.convert('RGB')
rgb_ara.save('output.pdf')
@radarhere
Copy link
Member

radarhere commented Sep 15, 2018

If I run your code, the PDF is a white image 1,800 by 400.

However, this is also what I get if I show the image instead -

from PIL import Image
ara = Image.open("cmx3g8_wv_1998.260_0745_mcidas.ara")
ara.show()

I presume that you think the image is not just a while rectangle? What program are you using to view the original file?

@OskarPersson
Copy link
Author

OskarPersson commented Sep 16, 2018

I viewed it by converting it to a PNG and then opening the resulting file in Apple's Preview app

from PIL import Image
ara = Image.open("cmx3g8_wv_1998.260_0745_mcidas.ara")
ara.save("output.png")

@radarhere radarhere added the Bug Any unexpected behavior, until confirmed feature. label Sep 17, 2018
@radarhere
Copy link
Member

I think this is related to #3159

@radarhere
Copy link
Member

I've created PR #3838 to resolve this.

@aclark4life aclark4life added this to Backlog in Pillow May 11, 2019
@aclark4life aclark4life moved this from Backlog to In progress in Pillow May 11, 2019
@radarhere radarhere moved this from In progress to Review/QA in Pillow May 12, 2019
@radarhere
Copy link
Member

Resolved by #3838

Pillow automation moved this from Review/QA to Closed Jun 5, 2019
@radarhere
Copy link
Member

It turns out that this situation is more complicated. See #3838 (comment)

@radarhere radarhere reopened this Jun 11, 2019
Pillow automation moved this from Closed to New Issues Jun 11, 2019
@radarhere radarhere moved this from New Issues to In progress in Pillow Jun 11, 2019
@radarhere
Copy link
Member

Closing, as part of #3159

Pillow automation moved this from In progress to Closed Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature. Conversion
Projects
Pillow
  
Closed
Development

No branches or pull requests

2 participants