IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
I tried, but the exported image is not only the blue arrow, but the arrow blue with a white background. I would like to have only the arrow cropped with transparent background.
Thank you very much! you have been very kind.
you can make it variable? I'll explain:
now the script to work it needs to indicate that the [0], [2] etc. .. you can put it all in a loop so that I export all levels and when it encounters a case like this be able to handle it.
and if we could also crop images, it would be perfect!
there is no guarantee that another image will need the same combination of layers that I used in my code for your image. In fact, another image may need totally different processing of layers to achieve what you may want.
I had to write out each layer of your image and examine then separately to see what code was needed to achieve what you wanted.
For your combined layer, no. But the first layer of the PSD file should be the combination of all layers flatted. But in your case, that was not what you wanted. So one has to examine each layer and decide how to combine them, if the first layer (image.psd[0]) is not what you want. Or create a new PSD file in Photoshop that does what you want for the combination of all the layers (as the combined layer [0]).
OK. thank you for your response.
I thought it was easier, because I found so many scripts to photoshop online, even amateur, with a few lines where you could do.
a common thing that I saw in all the script is this:
are hidden all levels, then one by one were displayed and exported.
even doing so you could solve my problem?
thank you
If all the PDS files have the very same combination of layers, then the code I sent would do what you want. But if the PSD files have other combination of layers, then that same code would not work.