# Psconvert does not render transparency

**URL:** <https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428>\
**Category:** Q&A\
**Created:** [November 10, 2022, 5:12pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428 "2022-11-10T17:12:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![luigi](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@luigi](https://forum.generic-mapping-tools.org/u/luigi)\
**Post date:** [November 10, 2022, 5:12pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/1 "2022-11-10T17:12:14Z")

</div>

I recently upgraded to Ghostscript 10 and GMT6.4 and now I cannot see transparency in jpg plot converted with psconvert.

I use a old syntax of gmt in a csh script.

From the output of psconvert with -V seems all in order, but I cannot see the transparent symbols in the jpg.

I use a MacBook Pro with BigSur 11.6.1

Thank you in advance for your help.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 10, 2022, 7:49pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/2 "2022-11-10T19:49:04Z")

</div>

I have not tried gs 10.0.0 since the latest I see on mac ports is 9.56.1 but from past history gs has a way of screwing up transparency every few releases. We will need to see if we can reproduce it.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [November 11, 2022, 1:24am UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/3 "2022-11-11T01:24:53Z")

</div>

I was strongly suspecting of that as the GMT.jl documentation lost the transparency in all examples that use it. Very annoying this frequency at which gs fscrews.

---

<div class="post-metadata">

**Author:** ![luigi](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@luigi](https://forum.generic-mapping-tools.org/u/luigi)\
**Post date:** [November 11, 2022, 9:49am UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/4 "2022-11-11T09:49:48Z")

</div>

Will be there any attempt to fix this or any tip on how to fix myself?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 11, 2022, 4:12pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/5 "2022-11-11T16:12:29Z")

</div>

Simplest “fix” is to move back to gs 9.56.1. @Joaquim, we need a tiny example that fails with 10 but works with 9.56.1 if we are to post on the gs bugzilla site.

---

<div class="post-metadata">

**Author:** ![ghomsi123](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ghomsi123/32/79_2.png) [@ghomsi123](https://forum.generic-mapping-tools.org/u/ghomsi123)\
**Post date:** [November 14, 2022, 8:14am UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/6 "2022-11-14T08:14:31Z")

</div>

I’m using a MacBook Pro with Monterey 12.0.1 and I’m facing the same issues.  
How do I downgrade from gs10 to gs9.56.1? Is there any brew formula for that?

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 15, 2022, 10:35am UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/7 "2022-11-15T10:35:29Z")

</div>

I am sure there is a standard way. I am using mac ports so cannot help. Maybe @seisman knows?

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 15, 2022, 12:11pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/8 "2022-11-15T12:11:19Z")

</div>

If you’re a Homebrew user, you can:

1. Download the formula for ghostscript v9.56.1 ([https://raw.githubusercontent.com/Homebrew/homebrew-core/4e4d823cba1ba5d139113ae61200567956da8c7e/Formula/ghostscript.rb](https://raw.githubusercontent.com/Homebrew/homebrew-core/4e4d823cba1ba5d139113ae61200567956da8c7e/Formula/ghostscript.rb)) to your computer
2. Uninstall you ghostscript v10.00.0 by running `brew uninstall ghostscript`
3. change into the directory where you downloaded the old formula `ghostscript.rb`, and run `brew install ./ghostscript.rb`. `brew` will use the formula in the current directory by default.

---

<div class="post-metadata">

**Author:** ![luigi](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@luigi](https://forum.generic-mapping-tools.org/u/luigi)\
**Post date:** [November 15, 2022, 2:21pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/9 "2022-11-15T14:21:50Z")

</div>

I have the same problem, thanks for the tip… I followed the procedure but in my case Homebrew always fetches the \*.rb formula of the 10.00.0 version

thank you for helping

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 15, 2022, 2:42pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/10 "2022-11-15T14:42:10Z")

</div>

Sorry. The last step should be `brew install ./ghostscript.rb` instead. I’ve revised my answer above.

---

<div class="post-metadata">

**Author:** ![luigi](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@luigi](https://forum.generic-mapping-tools.org/u/luigi)\
**Post date:** [November 15, 2022, 3:37pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/11 "2022-11-15T15:37:40Z")

</div>

I should have thought myself…sorry…It totally worked and transparency are back.  
Thank you very much!

---

<div class="post-metadata">

**Author:** ![ghomsi123](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ghomsi123/32/79_2.png) [@ghomsi123](https://forum.generic-mapping-tools.org/u/ghomsi123)\
**Post date:** [November 15, 2022, 4:33pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/12 "2022-11-15T16:33:30Z")

</div>

I apply this method but brew still upgrades it to gs10. I found out that while uninstalling gs10, gs9.56.1 was still in the root. I did brew doctor and even brew link, but getting this message “psconvert [ERROR]: Cannot execute Ghostscript (gs)”.  
How could I fix that issue?

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 15, 2022, 11:39pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/13 "2022-11-15T23:39:07Z")

</div>

What happens if you just type `gs` in your terminal? Or type `which gs` to see its full path.

---

<div class="post-metadata">

**Author:** ![ghomsi123](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ghomsi123/32/79_2.png) [@ghomsi123](https://forum.generic-mapping-tools.org/u/ghomsi123)\
**Post date:** [November 16, 2022, 9:18am UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/14 "2022-11-16T09:18:41Z")

</div>

I’ve fixed it by uninstalling the existing gs9.56.1 and running later on brew install ./ghostscript.rb.  
It works now. Thank you!

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 18, 2022, 2:41pm UTC](https://forum.generic-mapping-tools.org/t/psconvert-does-not-render-transparency/3428/15 "2022-11-18T14:41:36Z")

</div>

Turns out this was actually a GMT problem (we did not check for gs version numbers \> 9). A [PR](https://github.com/GenericMappingTools/gmt/pull/7096) has been merged into master that fixes the problem on our side and now gs 10 works fine with GMT master.
