PHP Image manipulation: 3D graph, zoom, rotate, crop, add watermark (iii)
Source: http://www.ido321.com/887.html
5, PHP rotation of the image
2: Before rotation
3:
5:
6:header ("Content-type", "text/html;charset=utf-8"); 7: 8:/* 9: * Picture is rotated along the y-axis, for example in PNG format : * @param string $filename The URL of the picture 11: */ 12:function turn
Picture Add watermark I believe all friends know, today we look at a section of PHP image add watermark example, I hope the article can help friends.
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.
the long edge, and generate a small figure
Imgwidth=jpeg.originalwidth
Imgheight=jpeg.originalheight
If Imgwidth>=imgheight and imgwidth>120 then
jpeg.width=150
jpeg.height=jpeg.originalheight/(jpeg.originalwidth/150)
End If
If Imgheight>imgwidth and imgheight>113 then
jpeg.height=113
jpeg.width=jpeg.originalwidth/(jpeg.originalheight/113)
End If
Jpeg.sharpen 1, 130
Jpeg.save (smallfilepath "S_" file.filename)
' Add a
Using PHP to add text watermark to images--object-oriented and process-oriented implementation of two methods,
1: Process-oriented writing method
//Specify picture Path$src= ' 001.png ';//Get picture information$info=getimagesize($src);//get the picture name extension$type= Image_type_to_extension ($info[2],false);//dynamically import images into memory$fun= "imagecreatefrom{$type}";$image=$fun(' 001.png '
cons of each method.
1: Object-oriented implementation using PHP to add a watermark method to the picture
Class Image_class {private $image;
Private $info;
/** * @param $src: Picture path * load picture into memory/function __construct ($src) {$info = getimagesize ($SRC);
$type = Image_type_to_extension ($info [2],false);
$this-> info = $info;
$this->info[' type '] = $type;
$fun
This article explains the common PS frosted effect of the watermark description text to add the method.
PS Frosted effect of the watermark text, in many pictures can see its application.
For example, the left image below is the original, and the right side is the preview after adding the PS frosted effect.
PS Make image
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. After uploading the picture, the process is as followsFirst you add a reference to System.Drawing.dllThe front end as long as there is a picture upload function can beBackground code is also simple, just save the picture, and then callAfter the words: the principle of the watermark is very simple, no
PHP add watermark scale thumbnail fixed height fixed width class.When using the Foreach Loop, sleep is required to set a time or follow the returned value after processing, otherwise the processing is not complete.Download: Http://pan.baidu.com/s/1ntKAfFF
File name: image_process.class.php
Class image_process{
public $source;//Original
Public $source _width;//Wide
P
Has anyone ever used a imageimagick to add a watermark to a picture?
Don't know why
1. On the Linux server is the 3.0.1 version of Imagick that performs the following code-report exception
Fatal error:uncaught exception ' imagickdrawexception ' with message ' unable to composite '
I'm talking about an error while executing the composite function, and it's okay to change the
1. Add watermark function to picture
Dim Jpeg
Set Jpeg = Server.CreateObject ("persits.jpeg") ' establishes object
Jpeg.open Blogpath "/upload/" FileName image location
Jpeg.Canvas.Font.Color = h000000 ' color, here is set to: Black
Jpeg.Canvas.Font.Family = "founder of the Simplified" ' Set font
Jpeg.Canvas.Font.Bold = False ' is set to bold
Jpeg.Canvas.Font.Size = 26 ' font size
Jpeg.Canvas.Font.Quali
Often see someone on the mop of that dynamic picture, is a string as parameters to a Dynamic Web page, you will generate a picture with this string, called a text watermark. Like what the original Panda series, as well as the later trees and gold bars, are very interesting. I wrote a very simple one with asp.net. All the code is as follows:
Copy Code code as follows:
Just save this code as an ASPX file, such as Test.aspx. Then put
Code:
function Water_test () {
//1. Instantiating the Image class
$img = new \think\image ();
2. Invoke the Open method to load the picture
$img->open ('./uploads/kebi.jpg ');
3. Call water method Add watermark
//Parameter 1: Watermark picture path
//Parameter 2: Watermark positio
asp.net
Program codeSelect Upload file: Image width: Image height: Text title: Title Font size: Title font:
Background codeDescription1. Add pictures and text can not coexist is that you can only use a2. Add the picture when you have to ensure that you are added watermark picture 3.png in (you can change the other, the program will also change)Must have this fol
Format Factory is a free Universal video format conversion software, a lot of friends to download the movie will use it to convert the format, RMVB to MP4, and some friends want to add a watermark to the video, here is a format factory for video files with watermark graphics and text tutorial.
1 in the source file add
Add a php watermark to your image at any time. Add text to your picture at any time? Header (Content-type: imagejpeg); functionmakethumb ($ srcFile, $ text, $ size12, $ R0, $ G0, $ B0) {if (! $ Text) {$ textwelcomexs.net. ruxayle; $ size add text to your image at any time
Header ("Content-type: image/jpeg ");
Function
Asp.net is an example of how to generate a thumbnail and add a watermark to the original image.
This document describes how to use asp.net to generate thumbnails and add watermarks to original images. We will share this with you for your reference. The details are as follows:
Using System. IO; using System. drawing. imaging; private void button#serverclick (objec
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.