note 74084 added to function.imagecopyresized

From: Date: Fri, 23 Mar 2007 16:34:16 +0000
Subject: note 74084 added to function.imagecopyresized
Groups: php.notes 
Request: Send a blank email to php-notes+get-124750@lists.php.net to get a copy of this message
This Class image resize or crop, your copyright text write on the image and your logo marge on the image. Full Class code => http://www.phpbuilder.com/snippet/download.php?type=snippet&id=2188 /** * Author : Halit YESIL * www : www.halityesil.com, www.prografik.net, www.trteknik.net * email : mail@halityesil.com, halit.yesil@prografik.net, halit.yesil@trteknik.net * GSM : +90.535 648 3504 * Create Date : 21 / 03 / 2007 * * * Script : Image resize and croping class. * You can Write copyright text and attach your logo write on image with this class * * * $obj = new pg_image($arg); * * * Varibles Information * [0] type => (POST | FILE) => Source File Send Type _FILES OR Dir * [1] file => ({if POST Array file = $_FILES['yourfile']}|{if FILE false}) => Source File filesource * [2] path => ({if FILE String [ dirname/filename.extension ]}) => Source File Root Path * [3] target => ({if FILE String [ dirname/filename.extension ]}) => Target File Root Path * [4] width => (integer) => Target File Width * [5] height => (integer) => Target File Height * [6] quality => (integer 1 - 100) => Target File Quality 0-100 % * [7] action => (crop | resize) => Target Action "resize" OR "crop" * [8] bordersize => (integer 0-5) => Target Border Size * [9] bordercolor => (color hex) => Target Border Color * [10] bgcolor => (color hex) => Target Background Color * [11] copytext => (String) => Copyright Content Text * [12] copycolor => (color hex) => Copyright Text Color * [13] copyshadow => (color hex) => Copyright Text Shadow color * [14] copybgcolor => (color hex) => Copyright Background Color * [15] copybgshadow => (color hex) => Copyright Background Shadow Color * [16] copybordersize => (integer 0-5) => Copyright Border Size 1-3 * [17] copybordercolor => (color hex) => Copyright Border Color * [18] copyposition => (top | topright | topleft | center | left | right | bottom | bottomright | bottomleft) => Copyright Position * [19] logoposition => (top | topright | topleft | center | left | right | bottom | bottomright | bottomleft) => Logo Image Position * [20] logoimage => (String [ dirname/filename.extension] Allow Extension (PNG | GIF | JPG)) => Logo Image Root Path "PNG" OR "GIF" OR "JPG" * * * * */ <?php $source = ($_REQUEST['img'] != '')?$_REQUEST['img']:'braille3.jpg'; $arg =array( type =>'FILE', file =>false, path =>$source, target =>'', width =>150, height =>50, quality =>80, action =>'resize', bordersize =>1, bordercolor =>'#00CCFF', bgcolor =>'#000000', copytext =>'Bodrum 1998', copycolor =>'#FFFFFF', //copyshadow =>'#000000', //copybgcolor =>'#D0FFCC', //copybgshadow =>'#656565', copybordersize =>0, copybordercolor =>'#FFFFFF', copyposition =>'bottom', logoposition =>'topleft', logoimage =>'logo.png'); //$arg = "$source,,400,300,80,resize"; new pg_image($arg); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 144.122.180.150 ---- Manual Page -- http://www.php.net/manual/en/function.imagecopyresized.php Edit -- https://master.php.net/note/edit/74084 Del: integrated -- https://master.php.net/note/delete/74084/integrated Del: useless -- https://master.php.net/note/delete/74084/useless Del: bad code -- https://master.php.net/note/delete/74084/bad+code Del: spam -- https://master.php.net/note/delete/74084/spam Del: non-english -- https://master.php.net/note/delete/74084/non-english Del: in docs -- https://master.php.net/note/delete/74084/in+docs Del: other reasons-- https://master.php.net/note/delete/74084 Reject -- https://master.php.net/note/reject/74084 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124750) next »