Skip to content

Converting MCIDAS to PDF results in empty file #3351

Description

@OskarPersson

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')

Activity

  1. radarhere commented on Sep 15, 2018

    @radarhere
    Member

    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?

  2. OskarPersson commented on Sep 16, 2018

    @OskarPersson
    Author

    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")
  3. added
    BugAny unexpected behavior, until confirmed feature.
    on Sep 17, 2018
  4. radarhere commented on May 5, 2019

    @radarhere
    Member

    I think this is related to #3159

  5. radarhere commented on May 9, 2019

    @radarhere
    Member

    I've created PR #3838 to resolve this.

  6. radarhere commented on Jun 5, 2019

    @radarhere
    Member

    Resolved by #3838

  7. radarhere commented on Jun 11, 2019

    @radarhere
    Member

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

  8. radarhere commented on Apr 23, 2023

    @radarhere
    Member

    Closing, as part of #3159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAny unexpected behavior, until confirmed feature.ConversionPDF

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions