Skip to main content
Solved

get size of image, that's encoded in base64

  • January 10, 2019
  • 2 replies
  • 1024 views

vki
Contributor
Forum|alt.badge.img+7
  • Contributor

I have to write some data to a XML-File, that's afterwards transformed to a HTML-Page using xsl.

 

 

One attribute in my data is an image, that's encoded in base64. In xsl it gets decoded and displayed in HTML as png.

 

 

This works fine, but now I want to make sure, that this image is of the correct size (height/width).

 

Is there way, I can do this with FME?

Thanks, Vera

Best answer by ebygomm

You can create the image from the base64 data then use a raster properties extractor to find the size.

To get the image you can use a BinaryDecoder followed by a RasterReplacer

 

 

 

 

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

2 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • Best Answer
  • January 10, 2019

You can create the image from the base64 data then use a raster properties extractor to find the size.

To get the image you can use a BinaryDecoder followed by a RasterReplacer

 

 

 

 


vki
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • January 10, 2019

Great, thanks.


Reply


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