Hướng dẫn php imagick add watermark
Learn how to add a watermark to your images using Imagick on PHP. Show Basically, all that you need to add a watermark to an image is the
The coordinates given in the method are totally up to you, as your wish of watermark could be different (on the entire image or just in a corner of the
image). The Watermark file should have obviously transparency with format ExamplesIn the following examples we'll show examples of how of how to add a watermark to an image using the following watermark (the watermark could be logo of Our Code World too): For the image we'll use a copyright free happy goat: Nice isn't ? Full size watermarkNoteWe use the
Which would produce with our images the following output in the browser (or if you decided to save it into a file): Right bottom corner watermark
Which should produce the following image: Right top corner watermark
Which should produce the following image: Bottom left corner watermark
Which should produce the following image: Top left corner watermark
Which should produce the following image: Happy coding ! |