-1

I'm super new to FME. I have lots of GEOTIFFs which I want to convert to JPEG, which works fine (as seen in the picture below (without the Tester)). But now some of my tiffs have 3 colour and some have 4 colour bands. If the tiff has 4 bands, I can easly remove it. But if it now contains only 3 colour bands it won't run. Therefore I tried including something of a "if more than 3 colour bands then remove them, but if 3 or less then just transform them."

TIFF-Transformer to JPEG

How do I insert this conditional selection?

uelf1
  • 7
  • 3

1 Answers1

0

a reddit user (u/jontyg83) answered my question with the following:

Try using a rasterbandpropertextractor and a listelementcounter. That should give you the number of bands you can then separate the 3 and 4 band rasters with a tester or testfilter

uelf1
  • 7
  • 3