GenericMappingTools / GenericMappingTools/gmt

grdvector and PDF format: gigantic files

Open
#6,815 11 comments 0 reactions 1 assignee Claimed by @PaulWessel View on GitHub
bug
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

**Description of the problem**

I have a fairly complex script (modern style) that plot a single map (using Lambert projection) on which displacements vector are plotted using grdvector.
![ENU](https://user-images.githubusercontent.com/80956795/175024571-353cf765-9d84-467c-aefd-d7ee28f76b97.png)
When outputting to PS or EPS, the file is about 1.7 MB.
When outputting to PDF, the file is over > 700 MB.

- The same issue arise when trying to convert the PS/EPS files to PDF using other software.
- The PS/EPS can be visualized without any issue with Evince (document viewer on Ubuntu).
- No issues when outputting to PNG in GMT.
- No issues when outputting to PDF when removing the `gmt grdvector` command line from the GMT script.

**Actual outcome**

A PDF file 400 times bigger than the PS/EPS formats.

**Expected outcome**

A PDF file with a size similar to the PS/EPS formats.

**System information**

* Operating system: Debian/Centos
* GMT version (`gmt --version`): 6.2.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.