1. A computer-implemented method, comprising: obtaining a light-field image, wherein the light-field image comprises a plurality of microimages, wherein the dimensions of the microimages are different than blocking dimensions used by a block-based compression technique; generating a plurality of blocks in a preprocessed light-field image from the plurality of microimages in the light-field image, wherein each block in the preprocessed light-field image contains light-field information from at least one microimage in the light-field image, and wherein the dimensions of each block in the preprocessed light-field image are the same as the blocking dimensions used by the block-based compression technique; wherein, to generate a block in the preprocessed light-field image, the method further comprises applying a cropping technique to light-field information from at least one microimage, applying an interpolation technique to light-field information from at least one microimage, or applying a cropping technique followed by an interpolation technique to light-field information from at least one microimage; compressing the preprocessed light-field image in accordance with the block-based compression technique to generate a compressed light-field image; and storing the compressed light-field image to a storage medium.