App.write() does not use pixel_type
import pyotb
url = "https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/raw/develop/Data/Input/SP67_FR_subset_1.tif"
out = 255.0 * pyotb.Smoothing(url)
out.write('/tmp/test.tif', pixel_type='uint8')
The command
gdalinfo /tmp/test.tif
shows:
...
Band 1 Block=251x2 Type=Float32, ColorInterp=Gray
Band 2 Block=251x2 Type=Float32, ColorInterp=Undefined
Band 3 Block=251x2 Type=Float32, ColorInterp=Undefined
Band 4 Block=251x2 Type=Float32, ColorInterp=Undefined
it should be uint8