In Efros's classic image quilting algorithm for texture synthesis and transfer, edge information of a target image is not used in the search of blocks to match. We present an improved algorithm where a new edge item in terms of gradients is added to the original error formula for ensuring a better matching block, and a preprocessing strategy named luminance remapping is introduced in the transfer process. The experiments show that the transfer results of our algorithm are better than the traditional one, especially in the part of edges.