Skip to main content
Solved

Fade-out WMS image and write to pdf-File


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

ebygomm wrote:

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

View original
Did this help you find an answer to your question?

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+38
  • 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+38
  • Influencer
  • Best Answer
  • October 27, 2020
ebygomm wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings