#1
|
||||
|
||||
Editing Images with PHP
Hi, so there's no "save draft" option that I can find sooooooooo I'm posting this unfinished tutorial here. Sorry about that, but feel free to post on the little bit I've got thrown up here. Thanks~
Right, first note, anything I type is not going to be related to the MysidiaScript but might be cool things to edit into your script. This is because I do not have a Mys site at the moment. Eventually I will get one (probably next release or so) but for now, bear with my random findings. BUT YES! Editing images with PHP. The most I've experimented with are merging two images and recoloring an image, so I'll talk about those for now. ;D Now you may ask yourself, why would I do this? I have -insert art program here-, why do I want to use PHP? Well, this lets you edit and merge images on the fly, and can save you lots of time and space. First, we'll start with the basics. Then I'll show you how merge images and recolor them~ For these examples I'll only be referring to PNGs and GIFs since those are most used for adoptables I'd think. Defining an image: First you need to decide which file type you're using and whether you're saving it to the server or not. Each has a basic set up like so: GIF (not saved to server): PHP Code:
PNG (not saved to server): PHP Code:
But when you save to the server there's a line you must remove and some specifications you need to add to the "imageTYPE" method: PNG (saved to server): PHP Code:
Right now this only outputs the image you just made. Which is boring...and pointless. SO NOW WE EDIT THEM!
__________________
"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo My Adoptables|Nuzlocke Webcomic Last edited by PTGigi; 10-18-2012 at 09:51 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editing Side Bar Links | GuardiansWish | Questions and Supports | 4 | 10-22-2012 08:18 AM |
Editing adoptables | Papyrus | Questions and Supports | 2 | 01-24-2012 05:53 AM |
Editing the HTML side of the CSS? | Sasoragon | Questions and Supports | 6 | 02-17-2011 09:40 AM |
Editing Content | Rozel | Questions and Supports | 4 | 01-29-2011 12:14 PM |
Editing pages. | Saphira | Questions and Supports | 1 | 01-11-2009 04:46 PM |
What's New? |
What's Hot? |
What's Popular? |