You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an informational message to grdimage and colorbar regarding Apple Preview #6350
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:
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.
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.
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.
Activity
WalterHFSmith commentedon Feb 18, 2022
maxrjones commentedon Feb 18, 2022
Sounds good. I would add grdview to the list.
joa-quim commentedon Feb 19, 2022
PaulWessel commentedon Feb 19, 2022
No, that would be taking us out of the realm of vector graphics. That shall require an act of the user to do.
leouieda commentedon Feb 21, 2022
👍🏽 sounds great! Adding some screenshots of the problem can help people notice that this is what they're suffering from.
remkos commentedon Feb 21, 2022
This has been mentioned in Section 9.2 of the Cookbook for ages. I suspect for 10 years now. (I wrote it).
PaulWessel commentedon Feb 22, 2022
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.