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

Saving PDF when mode is '1' saves as a pdf 1000's of inches wide, 1px tall. Same image as greyscale or color has no such problem #3829

Closed
aseelye opened this issue May 6, 2019 · 2 comments

Comments

@aseelye
Copy link

aseelye commented May 6, 2019

What did you do?

Created an image with mode='1', color=1. Altered appropriately, then image.save('filename.pdf'), leads to a large file size (2.1mb when greyscale is 0.9mb) that has it's dimensions all out of whack.

What did you expect to happen?

Expected a 1-bit pdf of the appropriate size.

What actually happened?

Large file size (2.1mb when greyscale is 0.9mb) that has it's dimensions all out of whack

What are your OS, Python and Pillow versions?

  • OS: MacOS 10.14. Confirmed on AWS Linux running Python 3.6 as well.
  • Python: 3.73
  • Pillow: 6.0.0
@radarhere
Copy link
Member

This looks like a duplicate of #3267, which was resolved by #3827. If testing with Pillow master does not fix the problem for you, then please provide a code example to demonstrate the issue.

@radarhere radarhere changed the title saving PDF when mode is '1' saves as a pdf 1000's of inches wide, 1px tall. Same image as greyscale or color has no such problem. Saving PDF when mode is '1' saves as a pdf 1000's of inches wide, 1px tall. Same image as greyscale or color has no such problem May 6, 2019
@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
Pillow automation moved this from In progress to Closed May 11, 2019
@radarhere
Copy link
Member

The file size issue is covered by #1775

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

No branches or pull requests

2 participants