How to merge two picture smoothly with PHP

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
tunisiano32
Forum Newbie
Posts: 3
Joined: Thu Mar 06, 2008 12:10 pm

How to merge two picture smoothly with PHP

Post by tunisiano32 »

Hello everybody,
I'm working on a project that require that i take two pictures and merge them smoothly using PHP
I can't use photoshop because the two picture will be extracted from an xml file depend on the key word
I was searching for two day all i can get is to merge two picture without that any picture fade in the other
I appreciate you help folks !
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: How to merge two picture smoothly with PHP

Post by John Cartwright »

You want to merge a picture on top another? Or you want to extend an image?
tunisiano32
Forum Newbie
Posts: 3
Joined: Thu Mar 06, 2008 12:10 pm

Re: How to merge two picture smoothly with PHP

Post by tunisiano32 »

merge it on the top, with a fade in effect
User avatar
Christopher
Site Administrator
Posts: 13592
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to merge two picture smoothly with PHP

Post by Christopher »

So you want to cross-fade in the browser using Javascript or Flash? Or merge the two images using a graphics library like GD or ImageMagick?
(#10850)
tunisiano32
Forum Newbie
Posts: 3
Joined: Thu Mar 06, 2008 12:10 pm

Re: How to merge two picture smoothly with PHP

Post by tunisiano32 »

I will try ImageMagick because i didn't try it
i was trying with GD and GD2+ without resulat
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: How to merge two picture smoothly with PHP

Post by onion2k »

Can you post an example (one made in Photoshop)? We'll need to see the 2 starting images and the result you want.
User avatar
Greenconure
Forum Commoner
Posts: 30
Joined: Mon Jun 16, 2008 8:19 am

Re: How to merge two picture smoothly with PHP

Post by Greenconure »

Just to understand this, you want to:

- Have two images with alpha and "layer" them on top of each other. eg: making a "pixelized dress-up doll"

or

- Have two images, make them both transparent (50%) and overlay them on top of each other.

or

- Have two images and transition from one to another. I don't know if this is capable using GD by making an animated .gif but I think using javascript would be easier and faster.
Post Reply