Writing On Images - ...with PHP and GD library

free web hosting
Open Discussion > CONTRIBUTE > Tutorials

Writing On Images - ...with PHP and GD library

brawler
Demo: http://www.fantastictutorials.com/files/av...er&color=random
..and: http://www.fantastictutorials.com/files/avatar/index.php

This tutorial is based on the code I used for this avatar generator.


This tutorial is for people that are reasonably comfortable with php. I have went to a lot of work making it as simple as possible so even if you are a beginer you shouldn't have problems.


After writing the tutorial, I realised how difficult it is to read when the source and tutorial seperately ... so I commented the tutorial into the source of the php. First have a look at the ZIP file, and when you open it up (ava.php) the code is quite well commented. Everything should be pretty well explained.

It took a couple of hours (I had most of ava.php made, but I made index.php and a few others to make it more appealing as a tutorial), so, all Feedback/Questions is appreciated..

Regards.

 

 

 


Reply

BuffaloHELP
Is http://www.fantastictutorials.com your site? I'm thinking it would have been nice to see the whole thing explained right here in the forum.

I clicked on your zip file link and I think you entered a wrong URL--it's not working.

Reply

Saint_Michael
thats pretty well thought out nice job, could be even better with some well design avatars.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. php gd libraries image rotate - 591.41 hr back. (1)
Similar Topics

Keywords : writing images php gd library

  1. Delete Files And Directories Using Php - following up from creating and writing (7)
    How To Delete Files and Directories follow up from creating them Hello all and
    welcome to my second tutorial involving file management. In my previous tutorial , I explained how
    to create, write and read files. In this tutorial I'll explain how to remove the files and
    directories you took so long to create. I did not explain last time how to create directories as I
    did not know, now I do, you can use the mkdir() function. Now with this tutorial.... Removing
    Files Removing files can easily be done with the unlink() function: CODE <? un...
  2. Writing An Essay - Part I: Sentences - Fragments and Run-ons (6)
  3. How To Read And Write Files Using Php - php :: reading and writing files (20)
    How To Read And Write And Files a simple trick using php For this script all you need is a
    php enabled server, a text document and a basic understanding of php itself: Beginning Create a
    text file called name.txt in any directory. Change the file permissions to 777 Create a empty
    php file in the same directory. You are now ready to begin reading and writing your files. If you
    just want to read the file scroll straight down to Reading the File else read through the whole
    tut /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> ...
  4. Uploading Images To Phpbb Galleries - (0)
    This tutorial can be used to show someone how to upload images to a PHPBB Gallerie addon. This
    tutorial is not specific to any particular phpbb mod since all mods will most likely be similar. 1)
    go to the website galleries (easy) (http://www.school-stuff.org/album.php) 2) Click on the category
    that you want to upload the images to. 3) Look for a button that says Upload and click on it. 4)
    Insert a Title in the title box this will be what people can identify the picture by, does not need
    a description. 5) Click on the Browse Button next to 'Upload a picture from ...
  5. Mootools - My Favourite Javascript Library - (3)
    It kind of amazes me that there's not even a mention of the Mootools javascript library
    throughout this whole forum. So here I'll do a brief introduction and a tutorial on how to
    produce the famous accordion effect. MooTools is a compact, modular, Object-Oriented javascript
    framework designed to make writing extensible and compatible code easier and faster. MooTools lets
    you get the job done efficiently and effectively. It is slightly based on the powerful Prototype
    javascript framework , of which Scriptaculous runs on. (But frankly, I dislike Scriptaculou...
  6. Uploading Images To The Trap17 Gallery - A How To, on uploading images to the trap17 gallery (4)
    Well, seeing as how BuffaloHelp or OpaQue has told us to upload our images to the trap17 gallery
    instead of our own, i figure that i could help out those who dont know how to do it because it
    isn't all that easy for the noobs. Uploading Images To The Trap17 Gallery Step 1:..
    Obviously You need a picture so get one of those Step 2:.. Go to "My Controlls" Step 3:.. Once
    you get there, on the left hand side look for "Invision Gallery" Step 4:.. Click On "Your Albums"
    Step 5:.. Now you need to create an album so click on "Create My First Album" S...
  7. How To Resize/host Images! - Very easy to understand! (15)
    For the tutorial I'm ganna be using IrfanVeiw. It's a freeware image program which you can
    use to resize and add effect to image, and a lot more ofcourse. If you don't have IrfanVeiw you
    can get it from download.com or anyother download site. How to resize images: First you gatta
    open Irfanveiw...gee, how obvious. First, open the picture you wish to resize. Second, click the tab
    that says "Image" -=Example=- Third, click "Resize/Resample -=Example=- Finaly, set the Height
    and Width of the picture to what you want, make sure you have "Set New Size" a...
  8. Blending Patterns Onto Images - blending patterns onto images (2)
    Hmm. I wrote this for a thread, but I decided to submit it here too. First you need to download or
    make the patterns. I have some ready made patterns here:
    http://www.members.lycos.co.uk/boysbr3akhearts/Patterns .You have to save each image in that
    directory, and place them into your Patterns folder (C:\Program Files\Jasc Software
    Inc\Paint Shop Pro 7\Patterns). I made this mini-tutorial in PSP 7, but I don't think
    it's hard to figure out how to do this in other programs. After you have downloaded the
    patterns. ^ Find that in PSP and cl...
  9. How To: Hide The Real Url Of Your Images - using php (26)
    Hiding The Real URL To Your Images Using php to protect the real url to your images In this
    tutorial I will explain how you can easily hide the real .gif or .jpg url to your images by masking
    it with php. This is not hard to do. A basic amount of php knowledge is required for this tutorial.
    Note: This will not protect your images for content robbers. 1. Create a new php file and save
    it as img.php in the public_html directory 2. Add the following code to img.php. All important
    notes and information are explained in the remming. CODE <? $ext...
  10. Making Shadows Without Images - (4)
    Im going to show you very simply how to create boxes with Shadows using div tags and css, no images
    needed, meaning fat pageload times! /biggrin.gif' border='0' style='vertical-align:middle'
    alt='biggrin.gif' /> You simple need to create two layers, one behind the other, the one behind
    will have a top and left margin on 20px, the one infront 10px, set teh background colour of the one
    behing darker than teh one infront, you should end up with something like this: Here is th html
    to create this effect: CODE <div id="Layer1" style="position:...
  11. Extending The Image Preloader With Php4 - Dynamically adds your images to Preloader! (3)
    Tutorial: Extending the Image Preloader with PHP4, by Rob J. Secord, B.Sc. (SystemWisdom)
    Second Tutorial in a Series of 2 Tutorials! Be sure to have read the First One here: "Image
    Preloader With Progress Bar Status" See a working Sample of this Script! (Note: Preloads
    100 images, some images are larger than others, and may take awhile for some people.)
    Description : A Tutorial for Extending the Image Preloader with PHP4 to Dynamically Populate the
    Array of Preloaded Images. This tutorial is the second in a series of 2 tutorials, and assume...
  12. Roll-over Image Links With Css - No preloading of images (2)
    Here is a way of having roll over image links without preloading images by using CSS and a table.
    It's very useful for a list of links as in a side bar menu or header. It also solves not having
    to make a seperate image for each different link by placing the desired text over the image. 1.
    First you need an image which comprises of the main link image, the 'mouse over' image link
    underneath plus you can have another for visited links. As for most roll over images, the images
    should be the same size. The above example - button.gif is 100x60px with each lin...
  13. Simple Image Rotator - randomly rotate images (6)
    First, It's really confusing. Do you know any tutorials on Image Manipulation on PHP?
    Here's another simple one: 1. Create a 5 image. 2. Rename them to something like:
    image1.jpg; image2.jpg; and so on... 3. Create your PHP file (rotation.php) 4. Enter the
    following code: CODE <?php header("content-type: image/jpeg");
    readfile("image".mt_rand(1,3).".jpg"); ?> 5. Execute your
    script....



Looking for writing, images, php, gd, library

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for writing, images, php, gd, library

*MORE FROM TRAP17.COM*
advertisement



Writing On Images - ...with PHP and GD library



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE