Skip to content

Add an informational message to grdimage and colorbar regarding Apple Preview #6350

Closed

Description

@PaulWessel

Description of the desired feature

Lots of users are falling into the trap that they make a PDF map of a coarse image, or request a discrete color bar, and when viewing the result on macOS with Preview the image looks either blurry (coarse grdimage plots) or the CPT looks continuous (for discrete CPTs). These are decisions Apple make in Preview and we cannot fight that. However, here are some things we can do:

  1. The grdimage man page could have a Note: paragraph where it explains that coarse images viewed in PDF may look blurry depending on your PDF viewer and OS - this is a known issue on macOS.
  2. The colorbar man page could do the same. But, note that colorbar -Np would draw a discrete color bar using rectangles which would not be subject to the Apple defect. I suggest we make -Np for discrete colormaps the default. This adds just a tiny amount of more PS (draw rectangle versus a tiny image) but will avoid the most common complaint for this problems (discrete color bars).

Let me know what @GenericMappingTools/core think about this.

Activity

  1. added
    feature request
    on Feb 18, 2022
  2. self-assigned this
    on Feb 18, 2022
  3. WalterHFSmith commented on Feb 18, 2022

    @WalterHFSmith
    Contributor
  4. maxrjones commented on Feb 18, 2022

    @maxrjones
    Member

    Sounds good. I would add grdview to the list.

  5. joa-quim commented on Feb 19, 2022

    @joa-quim
    Member
    1. Since Apple screws, change the default format to PNG?
  6. PaulWessel commented on Feb 19, 2022

    @PaulWessel
    ContributorAuthor

    No, that would be taking us out of the realm of vector graphics. That shall require an act of the user to do.

  7. leouieda commented on Feb 21, 2022

    @leouieda
    Member

    👍🏽 sounds great! Adding some screenshots of the problem can help people notice that this is what they're suffering from.

  8. remkos commented on Feb 21, 2022

    @remkos
    Contributor

    This has been mentioned in Section 9.2 of the Cookbook for ages. I suspect for 10 years now. (I wrote it).

  9. PaulWessel commented on Feb 22, 2022

    @PaulWessel
    ContributorAuthor

    Well, I looked and it is not that specific on this. yes, it points out lots of issues with going form PostScript to PDF but this specific problem is not discussed. Someone who reads Chapter 9 may figure it out but the casual user just placing a colorbar in modern mode and getting that blurry PDF will be confused. So no harm done in adding the extra notes I think, and the key things was to default to plotting rectangles when it is possible in the color bar.

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

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions