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
The setting of transparency will affect the pdf figure.
I want to add some text to figure after I set transparency in the previous line. After transforming to PDF, the text will not be shown.
Before the official GMT 6.1, my test is ok. After I update to GMT 6.1, the problem shows up.
The gs version is 9.28 (no bug for transparency ? ).
en...
Could you tell me how to check the gs version under windows(MINGW64)?
The version 9.28rc is released before 9.50.
The GMT always give me the information: psconvert [WARNING]: Input file has transparency but your gs version 9.51 has a bug preventing it - please downgrade to 9.50
But I did not use 9.51.
I am sure this is not gs issue.
Because if I back to other gmt 6 version before the official release. It work again (means no the above problem).
It's a candidate release. Ghostscript planned to release 9.28 but actually released 9.50 instead.
The GMT always give me the information:
psconvert [WARNING]: Input file has transparency but your gs version 9.51 has a bug preventing it - please downgrade to 9.50
The GMT official Windows installers ship ghostscript which may be newer than 9.50. It's possible that you're running the one shipped with GMT installers.
I am sure this is not gs issue.
Because if I back to other gmt 6 version before the official release. It work again (means no the above problem).
Please attach your PS file and also post your PNG file here, so that we can see what's the problem.
Why ship gs under windows, since it is not perfect and always affects the transparency setting.
That is simply not true. This is what I get with your script. Together with the warning message
bash scri.sh
psconvert [WARNING]: Input file has transparency but your gs version 9.51 has a bug preventing it - please downgrade to 9.50
The warning message started to show up when we satarted to check the gs version number. It happens that I built ghostscript from source a little after they released 9.50. At that time the breaking transparency was not yet in the code but the version number had already been increased. We need to do something about it but the shipped in gs has been there since 6.0 and w had no complains so far (not countong this one ofc).
It's in the PS though, which in gsview6 also displays the transparency.
Have no time for the moment to explore this further (screen capture from ghostview bellow)
Thanks @joa-quim, you got the same result with me. The ps file could show the added text. The pdf converted by psconvert will not show it.
Exactly,I should say the setting of transparency will affect the psconvert tool. The transparency itself is not affected in the pdf figure. It is the GMT shell lines after setting transparency affected and could not be converted to pdf or png.
It is related to the GMT build-in gs (official GMT 6.1).
For the upcoming GMT 6.1.1 release, I think what we can do is to distribute gs 9.50 in the Windows installers, as gs's master branch also means unstable, and it's annoying to see the psconvert [WARNING]: Input file has transparency but your gs version 9.51 has a bug preventing it - please downgrade to 9.50 even though the gs may work.
OK, tried with the new 9.53 RC and it works but I also get these weird messages
**** WARNING: .setopcaityalpha is deprecated (as of 9.53) and will be removed in a future release
**** See .setfillconstantalpha/.setalphaisshape for the improved solution
**** WARNING: .setopcaityalpha is deprecated (as of 9.53) and will be removed in a future release
**** See .setfillconstantalpha/.setalphaisshape for the improved solution
**** WARNING: .setopcaityalpha is deprecated (as of 9.53) and will be removed in a future release
**** See .setfillconstantalpha/.setalphaisshape for the improved solution
**** WARNING: .setopcaityalpha is deprecated (as of 9.53) and will be removed in a future release
**** See .setfillconstantalpha/.setalphaisshape for the improved solution
I say weird because the only place I find reference to that offense in in the source code itself. e.g. in ghostscript\Resource\Init\pdf_main.ps
Activity
seisman commentedon Aug 1, 2020
ghostscript never released gs 9.28. Please confirm your gs version by running
gs --version.This is my output with GMT master + gs 9.50. It looks correct, right?

PaulWessel commentedon Aug 1, 2020
Was just going to post the same result. Most be gs issue.
yangleir commentedon Aug 1, 2020
en...
Could you tell me how to check the gs version under windows(MINGW64)?
The version 9.28rc is released before 9.50.
The GMT always give me the information:
psconvert [WARNING]: Input file has transparency but your gs version 9.51 has a bug preventing it - please downgrade to 9.50But I did not use 9.51.
I am sure this is not gs issue.
Because if I back to other gmt 6 version before the official release. It work again (means no the above problem).
Could someone test it under windows (MINGW64)?
seisman commentedon Aug 1, 2020
Add
-Vdto your psconvert command, then you should see some debug messages likeIt's a candidate release. Ghostscript planned to release 9.28 but actually released 9.50 instead.
The GMT official Windows installers ship ghostscript which may be newer than 9.50. It's possible that you're running the one shipped with GMT installers.
Please attach your PS file and also post your PNG file here, so that we can see what's the problem.
yangleir commentedon Aug 1, 2020
OK.
I found that in the GMT dir, there is gswin*.exe. This is the problem.
After delete it, the GMT calls my system gs. And it is fine.
So, it is clear.
Just a question? Why ship gs under windows, since it is not perfect and always affects the transparency setting.
PaulWessel commentedon Aug 1, 2020
Pretty sure @joa-quim added a working gs; he can address that tomorrow.
yangleir commentedon Aug 1, 2020
Thanks @seisman @PaulWessel .
Have a nice weekend
joa-quim commentedon Aug 1, 2020
That is simply not true. This is what I get with your script. Together with the warning message
The warning message started to show up when we satarted to check the gs version number. It happens that I built ghostscript from source a little after they released 9.50. At that time the breaking transparency was not yet in the code but the version number had already been increased. We need to do something about it but the shipped in gs has been there since 6.0 and w had no complains so far (not countong this one ofc).
seisman commentedon Aug 1, 2020
Compared to my plot in #3798 (comment), the text strings
AIRASandBOUY1MOVINGare not plotted.joa-quim commentedon Aug 1, 2020
Yes, I noticed it but that's separate from transparency
joa-quim commentedon Aug 1, 2020
It's in the PS though, which in gsview6 also displays the transparency.
Have no time for the moment to explore this further (screen capture from ghostview bellow)
yangleir commentedon Aug 2, 2020
Thanks @joa-quim, you got the same result with me. The ps file could show the added text. The pdf converted by
psconvertwill not show it.Exactly,I should say the setting of transparency will affect the
psconverttool. The transparency itself is not affected in the pdf figure. It is the GMT shell lines after setting transparency affected and could not be converted to pdf or png.It is related to the GMT build-in
gs(official GMT 6.1).joa-quim commentedon Aug 2, 2020
Yes, something is not working but the distributed GS is exactly the same as it was for 6.0 and you say that it sop working only after 6.1
seisman commentedon Aug 9, 2020
For the upcoming GMT 6.1.1 release, I think what we can do is to distribute gs 9.50 in the Windows installers, as gs's master branch also means unstable, and it's annoying to see the
psconvert [WARNING]: Input file has transparency but your gs version 9.51 has a bug preventing it - please downgrade to 9.50even though the gs may work.joa-quim commentedon Aug 20, 2020
OK, tried with the new 9.53 RC and it works but I also get these weird messages
I say weird because the only place I find reference to that offense in in the source code itself. e.g. in
ghostscript\Resource\Init\pdf_main.psPaulWessel commentedon Aug 20, 2020
Yes, we will have to rewrite how we use the transparency operators.
seisman commentedon Sep 3, 2020
We just released GMT 6.1.1, and the Windows installers now ship a working ghostscript. Closing the issue.