# How to save a plot as a jpeg file?

**URL:** <https://discourse.julialang.org/t/how-to-save-a-plot-as-a-jpeg-file/71005>\
**Category:** New to Julia\
**Tags:** question, io, gmt\
**Created:** [November 5, 2021, 1:31pm UTC](https://discourse.julialang.org/t/how-to-save-a-plot-as-a-jpeg-file/71005 "2021-11-05T13:31:20Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [November 6, 2021, 1:56pm UTC](https://discourse.julialang.org/t/how-to-save-a-plot-as-a-jpeg-file/71005/21 "2021-11-06T13:56:17Z")

</div>

> [@leon](#):
>
> I also noticed the `dpi` option, should I use it only on the last plotting command?

That’s a good question. Yes, use it only at the end, not sure what it will do if used before. Note that the GMT default is 700 dpi for pdf and 300 dpi for other formats.

[Previous page](https://discourse.julialang.org/t/how-to-save-a-plot-as-a-jpeg-file/71005.md?page=1)
