PHP convert psd to jpg, selecting image layers
问题 I want to be able to select which layers from a .PSD image are merged into the final .JPG output image. I can merge all of the layers in the image with: $im = new Imagick('test.psd'); $im->flattenImages(); $im->setImageFormat('jpg'); $im->writeImage('test.jpg'); However the .psd contains about 10 layers and I want to be able to specify which specific layers should be merged together, to produce the final image. For example I want to merge only layer numbers 3, 5 and 10 or the layers with