The whole disk (SD-card) is read, piped through gzip for compression and written to the ouput file image.gz.
dd if=/dev/mmcblk0 bs=1M | gzip --stdout > ./image.gz