input => '$imgdir/$filename', outputpath => '$imgdir/test.$filename',