Open jpg and save it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mariolopes
Forum Contributor
Posts: 102
Joined: Sun May 22, 2005 7:08 am

Open jpg and save it

Post by mariolopes »

Hi
I need to make one family tree and i need to show the deseases of the ancesters (with images). I don't know how can i do that. Maybe I create a jpg file open it make some changes (add a grand parent for instance) and save it again. I don't know... any ideas?
Thank you
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Open jpg and save it

Post by Christopher »

You can probably build the page using HTML and CSS. That will be easier than putting everything in a single image. Style an image with a connecting line at the middle top and bottom. Then build a tree by centering the images in each row and creating the horizontal connecting lines.
(#10850)
mariolopes
Forum Contributor
Posts: 102
Joined: Sun May 22, 2005 7:08 am

Re: Open jpg and save it

Post by mariolopes »

Ok
How can i save it in my database? Like a CSS code?
User avatar
timWebUK
Forum Contributor
Posts: 239
Joined: Thu Oct 29, 2009 6:48 am
Location: UK

Re: Open jpg and save it

Post by timWebUK »

CSS is a style sheet language, used to modify the format and display of a page.
HTML is used to represent the data on the page and to hold places for images.

So you would need to gather all your information and images, output it using HTML and format the layout using CSS.

I don't really see a possible application for a database other than to just store the information, if this is the case then you would access the database using PHP and most likely mySQL and output the data within the HTML.

Don't over complicate it.

EDIT: I think I understand what you want now. You'd need a form where you can input the information and a field to upload an image that you've made. The rest is the same, HTML and CSS to display and format.
mariolopes
Forum Contributor
Posts: 102
Joined: Sun May 22, 2005 7:08 am

Re: Open jpg and save it

Post by mariolopes »

You'd need a form where you can input the information and a field to upload an image that you've made.
Yes it's what i need. How can i make a form for imput the information?
Thank you
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Open jpg and save it

Post by Jonah Bron »

Post Reply