Skip to main content

Hi, I have scanned a map and saved it as a raster image. I need to compress this PDF using FME. I have tried RasterMappers and RasterResampler, but both are making my map smaller without actually reducing the file size. Do you have any recommendations, please?

Hi, ​@bsheertareq35.

Thanks for posting to the community! Wondering if you’ve come across this article: Image Compression in FME? It may provide some insight to what you’re trying to accomplish. Let me know if you have questions around it.


I’ve just tried it and RasterResampler works as intended for me. As in reducing resolution and thus file size. Have you tried setting it to a percentage value?

Otherwise if your problem still persists, please share your workspace and or the pdf if possible


Hi  AliAtSafe, Thank you for your hint, what iam trying to do, is to compress a PDF, wich didn’t work with Raster/image copmression.. the Rastermosaicker and Mapper made my PDF even bigger.


Hay ​@max_h, Here are Photos for the Reader / Writer / Transformer Settings. 

 


@bsheertareq35 Did some looking around, not sure if you bumped into this post; there’s a post a couple years ago that asks a similar question to yours: pdf compression with fme. Might provide some insight.


Hay ​@max_h, Here are Photos for the Reader / Writer / Transformer Settings. 

 

Little tip beforehand: ‘Show Summary Annotation’ (rightclick your transformer or CTRL+Shift+K) creates little notes, so you dont have to screenshot the menus.

 

It looks good, but now add a RasterResampler after the mosaiker, as I suggested earlier or as Ali’s posted similiar question.

Then set the compression to something like 90% and you should see a difference in filesize - and add a writer obviously afterwards.

 

Hope this helps!


Reply