I have raspbian installed on a RPI. Back it up using W32DiskImager.
a) resize the img to either smaller or larger (and the partitions inside it. Must be able to then make a SD card with the image and boot into Raspbian.
b) once booted into Raspbian, expand the partition to the remaining space of the SD card.