I tried to crop 16bits(float)/band TIFF image, but the resulting image is 8bits(byte)/band. Are there anything I should have done?
from vipsCC import *
input_file_path = 'input.tiff'
output_file_path = 'output.tiff'
bands = 4
bg = VImage.VImage.black(width,height,bands)
im = VImage.VImage(input_file_path) # Giving 16bits(float)/band TIFF image...
im_frag = im.extract_area(dx,dy,width,height)
bg.insertplace(im_frag,0,0)
bg.write(output_file_path) # Results 8bits(byte)/band ...