Some questions about GD2

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
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Some questions about GD2

Post by daedalus__ »

If someone can think of a better title for this thread, I can't.

My company wants an online-store. They want it to be like [url]http://www.cafepress.com/[url].

What happens is you pick from a list of items, such as T-Shirts, Coffee Mugs, etc, and then you upload a logo or image. They then print the image on the item and send it to you.

Now the difficult part. I need to be able to take a picture of an item, and a picture of a logo and enable the user to scale, rotate, warp, and move the logo around the item.

The worst part is that it needs to be "simple". Now, at my company simple isn't just simple, it has to be so easy that a blind retard could do it. My company works in the piledriving industry. The people who will be using this deal with 150 ton hydraulic impact hammers and can hardly grasp the concept of a mouse.

I was thinking that I would need to employ a client-side technology, I would at least like to enable them to move their logo around without having to submit a form.

Could GD handle a task of this scope? I've generated banners and stuff before, but never anything this complicated.

I figure that my biggest problem will be designing this stuff. I can write code, it's just knowing what to write that I have trouble with most of the time.

Any reply of any sort, even a neat joke, would be appreciated. lol :P
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

I suggest flash, more specifically, flash 8. With Flash 8 you can upload an image and manipulate it in real time ( opposed to with GD you would have to keep refreshing the page or make ajax calls to edit the image ). Then you can send the data to php via a post or xml. And it really isn’t that hard to do.

Edit: A harder way would to use javascript and have the uploaded image overlay the supplied image.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

I've made one Flash applet in my entire life and barely know the software. If someone could direct me to enough reading, I am sure I could do it.

Alternatively, I like the sound of the AJAX thing but I don't know what that would entail.
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Thanks so much I owe you a beer.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Daedalus- wrote:Thanks so much I owe you a beer.
Yea...that's the kind of camaraderie I like to see...

You can get me one while your at it??? :P

Although I hate booze...I only drink to get drunk...so perhaps you should come prepared to buy me a few more than a dozen???

Cheers :)
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Pssh.

White and Black Russians for all!
Post Reply