Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Java plug-in needed

Quote Reply
Java plug-in needed
This is a bit off topic, but I don't do that very often.

I need a java program that can take an image of a defined resolution (such as 300dpi) and disply a reduced version on the screen, but allow the user to select a mask of a defined size relative to the image (such as 24x36mm), and move it around the image.

It's for an area of the shopping cart. I need to show images of the item, and allow people to move masks of different shapes/sizes over it to visualize the final product that can be made from that item.

I don't do Java, and I don't track Java programs, so I'm hoping someone out there may know of a program that can do this.

It's actually kind of simple, since I don't need the program to do anything, except allow the person to move the mask over the image to visualize how it would look "cropped". No saving the selected area, or anything, just _visualizing_ it. This is a visual aid for 1) size relationship and 2) visualization of finished area. The masks can even be bit maps moved over the base image, as long as relative sizes are maintained.

I know there are programs like this out there, some incredibly more complex. I need something fairly simple.

If anyone knows of starting source code, a book that has an example that is close to this, or best yet, a finished program to do it, _PLEASE_ let me know!

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Java plug-in needed In reply to
Hello!

Nothing is off the topic so long as it stimulates the ideas of the Links SQL users directly or indirectly.

Now I saw something at Java Boutique of internet.com! Not at all directly related to what you are asking.

They had a script, small one, that showed the images in %! It was the same image whic could be later enlarged. I do not know how they did it. One whole page could be like slideshow and then when you pick up the thumbmail, you get the same bigger. The browser size could be changed and it resizes itself.

A lot more you could do with it.

Well, it may not help you directly.

Quote Reply
Re: Java plug-in needed In reply to
Sorry, I don't know much java, however image manipulation is very easy if you use ImageMagik or GD. You would lose the real time feel to it, however I have seen some nice interfaces done (where on the other hand, I've seen very few applets that I like, most bring my browser to a crash).

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Java plug-in needed In reply to
I know what you mean, but the advantage of the Java applet is that they can chose to use it or not, and if they do, it runs on their machine which allows them to position it around the image to get an idea of how it looks. That is just not practical using CGI of any sort. The bandwidth usage would make realvideo look fast.

Think of it as moving a magnifying glass of a specific size over the image, or using one of the round, or oval or fancy shaped scrap book frames to look at the base image through the little "window".

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Java plug-in needed In reply to
pugdog,

I don't know if the following Java Graphics tutorial will help you....but here it is:

http://gamelan.earthweb.com/...ntents_pottsch7.html

BTW: Gamelan has tons of cool Java tutorials that focus on image enhancements.

Regards,

Eliot Lee