/*
* Function: PHP image watermark (watermark supports picture or text)
Parameters
* $groundimage background image, that is, need to add a watermark image, temporarily only support gif,jpg,png format;
* $waterPos watermark
Php image cropping and thumbnail examples
In php programming, the picture size is too large and the specification is not uniform. the display control needs to be completed by JavaScript. when used on mobile devices, the display effect is
Php image class that displays multiple graphical reports
Class ImageReport {
Var $ X; // Image Size X axis
Var $ Y; // the Y axis of the image size.
Var $ R; // R value of the background color
Var
This article mainly introduces the PHP image plus watermark function, interested in the friend's reference, I hope to help you.
The instance code is as follows:
Let's take a look at a support to add a watermark to a picture in two ways: Picture
: This article describes how to add text watermarks to php images. For more information about PHP tutorials, see. The php class library adds text watermarks to existing images. the code is not very complete. thank you for your advice! The code is as
PHP image uploading class and generating thumbnails
/**
* Upload images
*/
Class imgUpload {
Static protected $;
Protected $ formName; // form name
Protected $ directory; // upload a file to a
PHP image upload class; support for watermark-date folder-generating thumbnails; support for multifile Upload
You can use {Y} {m} {n} to change the current date.
Set_dir (dirname (_ FILE __). '/upload/', '{y}/{m}'); // save path.
Rewrite the jcrop plug-in + php image Upload implementation and cropping integration
-->
$velocityCount-->
-->
1. after the image is uploaded, determine whether the width and height of the image exceed the preset maximum height and width. If the
A simple example of PHP image uploading (quick start)
2. admin_upfile.php
Date_default_timezone_set ('prc ');
// Upload $ upsize here to determine the size of the
Php image upload code example
Php implements the image upload code, which can determine the file size, type, and generate the file name by year, month, day, minute, and second. this is suitable for beginners.The code is as follows.
$
Principles and code of uploading PHP image files
Php code uploads files or images, analyzes the upload principles for everyone, and provides specific code. it is recommended that you refer to and learn for beginners.1. create a file upload
PHP image shrinking function example
/**
* Function for downgrading images
* The original image is deleted and the operated image is retained.
* @ Param string $ fileName
* @ Return void
Php image cropping and scaling methods
/* Check whether the original file exists and obtain the information of the original file */
$ Org_info = @ getimagesize ($ img );
$ Img_org = $ this-> img_resource ($ img, $
This article describes how to use the imagecopy function to add an image watermark for PHP image processing. This article provides a simple entry-level user-defined function example, if you need a watermark, you can refer to the following section to
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.