Skip to content

GhostScript 9.27 released with yet another bug #880

Closed

Description

@PaulWessel

Fixed one bug, introduced another

I think they have fixed the #195 but added another bug. The attached minimal pure PostScript example demonstrates the problem. It looks fine in previewers as a full US Letter page. To crop tightly we need the bounding box. In gs 9.26 we get the correct box:

gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox bug.ps

which gives

%%BoundingBox: 71 71 361 385
%%HiResBoundingBox: 71.278803 71.278803 360.721184 384.173988

while in 9.27 we now get

%%BoundingBox: 71 71 361 377
%%HiResBoundingBox: 71.278803 71.278803 360.721184 376.541989

The smaller y-max means we crop across the Title and we get an error. Before I post this to the ghostscript issue tracker, can at least one confirm that this is the case please?

bug.ps.zip

Activity

  1. seisman commented on Jun 11, 2019

    @seisman
    Member

    How did you install ghostscript 9.27?

    The ghostscript from homebrew is still in 9.26. I also don't find a binary package from ghostscript website.

  2. PaulWessel commented on Jun 11, 2019

    @PaulWessel
    ContributorAuthor

    I am using macports and they finally updated to 9.27 today. Surprised the homebrew is behind - they seem to be ahead of macports for most things. 9.27 was released 4 months ago.

  3. joa-quim commented on Jun 11, 2019

    @joa-quim
    Member
  4. added
    help wanted
    on Jun 11, 2019
  5. seisman commented on Jun 11, 2019

    @seisman
    Member

    I can reproduce the issue with the Linux x64 binary package provided by ghostscript website.

  6. removed
    help wanted
    on Jun 11, 2019
  7. added
    longterm
    on Jun 11, 2019
  8. PaulWessel commented on Jun 11, 2019

    @PaulWessel
    ContributorAuthor
  9. joa-quim commented on Jun 11, 2019

    @joa-quim
    Member

    This is even worst than the bugs. No more previewer on Windows (not even the abandoned gsview is now available to dowload)

    Capture

  10. PaulWessel commented on Jun 11, 2019

    @PaulWessel
    ContributorAuthor

    Are there really no other viewers for Windows? Presumably you will be OK producing PDFs instead.

  11. joa-quim commented on Jun 11, 2019

    @joa-quim
    Member

    Not an issue for me that have both gsview 5 and 6 but highly disturbing news.

  12. PaulWessel commented on Jun 11, 2019

    @PaulWessel
    ContributorAuthor

    Well, you know the old story about rats and sinking ships.

  13. joa-quim commented on Jun 11, 2019

    @joa-quim
    Member

    Yes, but there is also that story about the Ghost ships squad (Mary Celeste, of its name, was the head of them).

    Nice name for a gsview replacement.

  14. PaulWessel commented on Jun 12, 2019

    @PaulWessel
    ContributorAuthor

    My bug report was seen as a duplicate of another report and apparently the problem has been fixed in the repo (https://bugs.ghostscript.com/show_bug.cgi?id=700952).

  15. anbj commented on Jun 12, 2019

    @anbj
    Contributor

    Is there an alternative to postscript to create figures? Will this ever be necessary? It appears to me that postscript is becoming more and more peripheral, and the tools to show and process (at least free/open source) are fading away. Is this true?

    As of know, GMT is totally dependant on gs, right? Any danger that gs will disappear? What happens then?

    I do not know my gs history, so please dont keelhaul me.

  16. 7 remaining items

  17. PaulWessel commented on Jun 27, 2019

    @PaulWessel
    ContributorAuthor

    Yep, I grepped for too much and @joa-quim breaks lines to fit his tiny screen.

  18. seisman commented on Jun 27, 2019

    @seisman
    Member

    Run psconvert with -S option:

    $ gmt psconvert -A -P -Tj -S test.ps
    gs -q -dNOPAUSE -dBATCH -dSCANCONVERTERTYPE=2 -dMaxBitmap=2147483647 -dUseFastColor=true -dGraphicsAlphaBits=2 -dTextAlphaBits=4 -sDEVICE=jpeg -dJPEGQ=90 -g1369x1338 -r300 -sOutputFile='test.jpg' -f'./psconvert_59826d.eps'
    psconvert [ERROR]: Could not create test.jpg. Maybe input file does not fulfill PS specifications.
    

    Copy the raw gs command and run it give nothing. No errors, no test.jpg generated. Removing the -q option in the gs command doesn't help.

  19. PaulWessel commented on Jun 27, 2019

    @PaulWessel
    ContributorAuthor

    Maybe see if removing any of the -d choices affects the outcome, i.e., find the fewest arguments that still fails so we can report a simple case.

  20. seisman commented on Jun 27, 2019

    @seisman
    Member

    I removed all -d choices and used following command:

    gs -sDEVICE=jpeg -g1369x1338 -r300 -sOutputFile='test.jpg' -f'./psconvert_59910d.eps'
    

    gs development version still fails to generate the JPG file and gives no warnings. However, gs 9.26 works well.

  21. PaulWessel commented on Jun 27, 2019

    @PaulWessel
    ContributorAuthor

    Presumably the same with using test.ps directly? Please post that file (just in case) and gs --version output and I can submit a bug report. Alternatively, you could do the same at bugs.ghostscript.com.

  22. seisman commented on Jun 27, 2019

    @seisman
    Member

    EPS file (zipped): psconvert_59910d.eps.zip

    gs command

    gs -sDEVICE=jpeg -g1369x1338 -r300 -sOutputFile='test.jpg' -f'./psconvert_59910d.eps'
    

    gs is installed via brew install ghostscript --HEAD, which compiles the gs source codes from the master branch. The commit hash is 12ffa0f40.

  23. PaulWessel commented on Jun 27, 2019

    @PaulWessel
    ContributorAuthor
  24. PaulWessel commented on Jun 27, 2019

    @PaulWessel
    ContributorAuthor

    Developers say:
    --- Comment #1 from Chris Liddell (chrisl) [email protected] ---
    It does produce the output file for me, on Linux.

  25. joa-quim commented on Jun 27, 2019

    @joa-quim
    Member

    And it's only getting narrower. Because my eyes are f I'm forced to increase font size.

    Maybe we should simply shut up that warning. Things initiated long ago when in our (almost unused -J proj4 codes we have an -Jxy. But probably I don't know anymore what to do with it and when psconvert finds that for likely geog limits, it issues that warning.

  26. seisman commented on Jun 27, 2019

    @seisman
    Member

    This gs (9.28) command doesn't work:

    gs -sDEVICE=jpeg -g1369x1338 -r300 -sOutputFile='test.jpg' -f'./psconvert_59910d.eps'
    

    This gs (9.28) command works well:

    gs -sDEVICE=jpeg -g1369x1338 -r300 -sOutputFile='test.jpg' './psconvert_59910d.eps'
    

    The only difference is the -f.

  27. PaulWessel commented on Jul 1, 2019

    @PaulWessel
    ContributorAuthor

    Update: At least macports have moved to @9.27_1 from @9.27_0 and this fixes the original bug reported at the top. This is a patch since there is no 9.28 out, but it does mean that perhaps most non-Linux users will be OK by just getting the latest from fink, macports, home-brew. I just noticed that my gs was updated June 27 to 9.27_1.

  28. claudiodsf commented on Oct 29, 2019

    @claudiodsf
    Contributor

    Hi, gs on homebrew (and maybe on other distributions as well) is now at version 9.50.
    All the above examples work for me.
    Should this issue be closed?

  29. joa-quim commented on Oct 29, 2019

    @joa-quim
    Member

    Yes, I think so.

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

    longterm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions