Texture synthesis is the process of generating a large texture image from a small texture sample. The synthesized image must appear as though it has the same underlying structural content as the input texture sample. However, most texture synthesis methods require the user to tune parameters for different input or provide feedback to the system to achieve satisfactory results. To make texture synthesis approaches more efficient and user friendly, we propose a fully automatic method to select a set of suitable parameters for texture synthesis that can be applied on commonly used textures. Our method uses Convolutional Neural Network (CNN) to predict the optimal parameters for texture synthesis based on image quilting algorithm . Our method showed satisfactory results on different types of textures.