This article illustrates the method of thinkphp watermark to fix PNG transparent watermark and increase the quality of JPEG image. Share to everyone for your reference. The implementation methods are as follows:
TP comes with the picture class, has the function which adds the watermark to the picture.Here the perfect:1. PNG
Aspjpeg| Transparent company to do a customer, need to create images like Alibaba effect. Originally developed systems are using aspjpeg to reduce the figure, now need to deal with the picture, of course, think of this component. But later found that the use of AspJpeg watermark when the effect is always not ideal, especially the image effect, and the text watermark can not adjust the transparency also can
Sometimes upload images need to add a watermark to the site, watermark can be divided into text watermark and image watermark, the following implementation of these two kinds of watermark text watermark is to add text on the pictu
First step, install and open the cow image on the computer, then click on the middle, "open a picture."
The second step, then we find the image to process the watermark and then click on the upper left corner of the "Go watermark."
The third step, in the watermark to the interface to select the area to
Add watermark text on IOS images (watermark text on Weibo)
Create a category (you can go to Baidu if you don't know how to create it ).
Class Object. h file name: UIImage + watermark
# Import
@ Interface UIImage (watermark)
// Define a method
-(UIImage *) watermarkImage :( NSString *) text;
@ End
. M file impleme
Today to share the Chinese watermark and picture watermark Integrated plug-in, thinkphp only separate add text or add pictures, because the need to work with the Riga "text" and "picture" so, try to modify a bit, only one line of code to solve the image and text watermark. First, the image method of thinkphp is introduced, and the Chinese
Nonsense not to say, paste code:
Copy CodeThe code is as follows:
/************************************
Function: Watermark ($bigimg, $smallimg, $coord = 1)
Role: Adding watermarks
Parameters:
$bigimg must be selected. Big picture--a picture to add a watermark
$smallimg must be selected. Small picture
$coord is optional. The position of the watermark in the lar
Word2013 to add a picture watermark to and a text watermark method:
① start Word2013, click on the Watermark button under the Design tab, there will be several ready-made templates, if not satisfied, then click the Custom Watermark button.
② first, the text watermark
The example of this article is about C # using the original image and watermark map to realize the simple watermark method. Share to everyone for your reference, specific as follows:
Picture Action Class
public class Imagehelper {#region "watermark stored relative path" public static string Getlogopath () {return "/images/logo.png" ;
Source image
1. Use PS to open the image to remove the watermark.2. Press the shortcut key m to switch to the selection tool.
3. Drag the mouse to select the watermark to be removed.4. Press Ctrl + J to create a new layer for the watermark selected in step 3.
TP comes with an image class and can be used to add watermarks to an image.Here we have improved:1. PNG watermark transparency2. Adjust the watermark quality (only in JPG format)The Code is as follows:Red indicates the original systemGreen indicates the modified/**+ --------------------* Add a watermark to an image+ --------------------* @ Static public+ --------
In the old Chiang tribe to edit and update the article, all the images in the watermark are implemented with Dx-watermark Watermark plug-in, was manually added to find more trouble, this plug-in can still be used. But a few days ago to change the space environment, the directory should be changed so that the Dx-watermark
time kiss slightly!
4: Using batch processing, add your watermark in bulk (before you do this step, please put the pictures you want to process, separate into a folder for you to use)
Open: File → automatic → batch processing
(Jump out of a dialog box, the following figure set, set good after Press "good") OK! Your pictures are starting to splash. Automatically add watermarks)
(here if you don't know w
Android watermark camera and android watermark
The watermark camera implemented in this article is similar to the watermark camera function in the QQ space. Because I have read a demo to implement a simple watermark camera function, I think it is quite interesting. On this b
01. Open the picture, enter the text, choose your favorite font.02. Hold down the CTRL key and click on the thumbnail of the type layer to load the text into the selection. As shown in the following figure.03. Perform the Select-Save as Selection command, store the selection as a new channel, and name it "watermark," as shown in the following illustration.
04. Perform the "Select-deselect" command, and then delete the type layer. Enter the channel
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.