data processing and shrink png api invoke