Repository navigation
Bugfix: EPS thumbnail failed - #619
Conversation
EPS thumbnail failed to resize correctly due to incorrect resolution argument (should be a function of the image size and bounding box). This is fixed in this commit.
|
Why did the Travis CI build fail? I just changed a few lines of code. |
|
This test failed: Also, do you have a test that shows the bug fails before the fix, and passes with the fix? |
|
Do you know who to correct this? |
|
@eliempje We need you to know how to fix it 😄 |
|
I will try. I get back to you. |
|
If you have a test that checks for image sizes and change the output imagesize, it has to fail. I have a fork where eps files work for me. Not patch quality: |
Python 3.4 is live on Travis CI
FIXED issue python-pillow#302: python-pillow#302 EPS file can have binary preview. Header is now also read binary. Also fix for resizing EPS. Resolution is now 2 dimensional and dependend on bbox and size.
|
Test passed this time. This commit even adds another bugfix for #302 |
|
I've submitted resize and thumbnail tests to @eliempje's fork here: eliempje#2 How can #302 be tested? |
|
make an eps with binary preview in the header (you could use ghostscript for that). I have one but its copyrighted. |
|
Thanks for adding tests. |
Tests for EPS thumbnail bugfix (including thumbnail bugfix)
|
Did mean ghostscript but photoshop (under windows). This will add a preview in the first few bytes. |
|
You're welcome for the tests. Unfortunately the build failed: https://travis-ci.org/python-imaging/Pillow/builds/24725294 Actually, I just spotted a bug in the test. If you want to run just that test locally, call I don't have Photoshop, maybe someone else can create a test image. |
|
Apologies, the reason it's failing is due to me not reading the docs properly. With the latest build, it fails like this: https://travis-ci.org/hugovk/Pillow/jobs/24741008 But
I'll fix the test properly and update the PR. |
|
OK, eliempje#3 passes now (https://travis-ci.org/hugovk/Pillow/builds/24742214). Sorry for the confusion! |
|
@hugovk Thanks for picking up the slack and looking at this (and the other issues). I'm kind of snowed under right now, but I am paying enough attention to know that I'm way behind on review and merging. |
|
@wiredfool No problem! Don't worry, there's months until the next release :) |
|
True 😄 Just under 2 months |
Fix tests so image2 is resized and thumbnailed
|
Test added. Now ready for merge |
Bugfix: EPS thumbnail failed
|
Thanks everyone. |
EPS thumbnail failed to resize correctly due to incorrect resolution argument (should be a function of the image size and bounding box). This is fixed in this commit.