By ctalley5 on
I am working on an ubercart site that sells custom-made, multi-colored shirts.
The customer chooses which colors they want on different fabric cuts.... and an image change and show them what the shirt will look like with their color combinations.
Since there would be so many different color combinations, I imagine making a picture for each possible combination would not be the best thing to do.
So it sounds like the best thing would be some type of java work that would change particular pixels to match their color choices.
If there is a better solution, I am open to suggestions.
Thanks
Comments
Hi ctalley5, I'm a Java
Hi ctalley5,
I'm a Java developer looking for new projects with 11 years of experience and a true passion for this language and its ecosystem. but believe me: this is not a good idea.
If you want to generate the colors in the server you will probably use a noticeable amount of CPU power for such a simple task (to pixelate, encode and send the image). Also you'd add a lag to the user (AJAX call) who probably wants to change the colors as fast as possible.
If you want to use an applet, that'd be a better idea but still, whether we like it or not, Java support in the browsers is not as good as the alternatives (JavaFX still has a lot to probe no matter how good a few demos show it is) and many people are using old JREs.
Java is not the way to go for this.