Skip to main content
Solved

Fade-out WMS image and write to pdf-File

  • October 27, 2020
  • 4 replies
  • 77 views

Forum|alt.badge.img+1

Hi FME community

 

I would like to fade-out raster image created with WMS and write to a pdf-file. For this I first create my WMS image and then overlay this image with a prepared png-File with the fade-out effect. Within FME everything works fine and the result before the pdf-writer in the Data Inspector is what I expect. But in the pdf-file the fade-out effect is no longer visible (see attached screenshot).

 

I guess it's a problem of the pdf writer. Does anyone have an idea how I can fix this?

 

Thank you very much and kind regards from Switzerland.

Dominik

Best answer by ebygomm

Could it also be that the fade out image is appearing below the WMS image?

 

I think combining both images in FME and writing it as a single image to the pdf is probably the best way forward though.

It looks like the order does matter, but it doesn't look like the pdf writer can handle the transparency in the raster anyhow so combining in FME is definitely the way to go.

 

I'd use the RasterMosaicker and choose Composite Using Alpha Band in the Overlapping Values parameter

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

david_r
Celebrity
  • October 27, 2020

Are you writing a single raster with several bands, or two rasters on top of each other?

Perhaps you could try something like the RasterbandCombiner or the MapnikRasterizer to resolve the fade-out effect before writing to the PDF.

 


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • October 27, 2020

Could it also be that the fade out image is appearing below the WMS image?

 

I think combining both images in FME and writing it as a single image to the pdf is probably the best way forward though.


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • October 27, 2020

Could it also be that the fade out image is appearing below the WMS image?

 

I think combining both images in FME and writing it as a single image to the pdf is probably the best way forward though.

It looks like the order does matter, but it doesn't look like the pdf writer can handle the transparency in the raster anyhow so combining in FME is definitely the way to go.

 

I'd use the RasterMosaicker and choose Composite Using Alpha Band in the Overlapping Values parameter


Forum|alt.badge.img+1
  • Author
  • October 29, 2020

This is it ... I have to combine to one single image before I export them. Thanks to ebygomm and david_r