-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Test fixtures generate differently on newer versions of ghostscript #124
Comments
Interestingly, I have been given feedback about my treepoem-generated Aztec codes not being correct (with Ghostscript 9.22). I have been experimenting with the Anyway, as requested in #113, these are the test fixture barcodes that my system (Ubuntu 18.04, Ghostscript 9.22) generates: |
Yeah those all look like they have been smeared like I'm seeing. Did you try downgrading your ghostscript and seeing if that fulfills your user's requirements? Running here with |
Thanks for bisecting it. I've reported upstream in bwipp/postscriptbarcode#94, the maintainer of BWIPP is pretty knowledgable and may be able to help. |
N.B. Travis CI seem to have updated the version of ghostscript on their build containers so this is failing continuously now |
It looks like the fix was released in Ghostscript 9.26. I think some more work is needed to pass different flags to render, potentially by not using PIL any more. |
Now the fix is in for the smearing reported in #124. These three barcodes still look a bit smeared (perhaps we need to pass some more options to Ghostscript as I noted on the issue) but they are still readable by an online barcode scanner I checked with.
Now the fix is in for the smearing reported in #124. These three barcodes still look a bit smeared (perhaps we need to pass some more options to Ghostscript as I noted on the issue) but they are still readable by an online barcode scanner I checked with.
#499 improved image generation by bypassing the PIL EPS plugin that runs Ghostscript, so this can be considered fixed. |
Currently on Travis ghostscript 9.10 is used, and it's compatible with the files in
tests/fixtures/
. However on my Mac I now get version 9.23 and that leads to the tests failing. It seems that one extra pixel is (wrongly?) drawn on newer versions. Perhaps there's some argument we can pass to newer ghostscript versions to preserve the apparently correct older rendering.The text was updated successfully, but these errors were encountered: