implement size and truncate_percentage from gblob upwards