Hello
This is probably OT, unless there is a Drupal way to do this.
For a client, I am designing a Drupal and UC based site. Some of the products require the buyer to choose a color from a specific range (think carpets and such).
On their previous hand-coded site, they had a little tool into which they could enter a hex RGB value, and the site would show the color (one for each color option).
I was thinking that a better way might be to provide a gif or jpg image for each color, using the UC option images module.
However, how to generate those images, which would essentially be little blocks of solid color, is the question which is plaguing me.
Surely this is not a unique problem.
I found closed source Windows based programs (ColorImpact, for example) which claim some such capability, but not only does that seem like overkill, it seems as if there should be some simple way to go about this using an open source option.
Ideas?
Thanks
Luke
Luke escribió, El 30/07/09 16:39:
Hello
This is probably OT, unless there is a Drupal way to do this.
For a client, I am designing a Drupal and UC based site. Some of the products require the buyer to choose a color from a specific range (think carpets and such).
On their previous hand-coded site, they had a little tool into which they could enter a hex RGB value, and the site would show the color (one for each color option).
I was thinking that a better way might be to provide a gif or jpg image for each color, using the UC option images module.
However, how to generate those images, which would essentially be little blocks of solid color, is the question which is plaguing me.
Surely this is not a unique problem.
I found closed source Windows based programs (ColorImpact, for example) which claim some such capability, but not only does that seem like overkill, it seems as if there should be some simple way to go about this using an open source option.
Ideas?
Thanks
Luke
[ Drupal support list | http://lists.drupal.org/ ]
http://www.ubercart.org/docs/user/3340/product_attributes_and_options
Regards
-- LeitoMonk
I am aware of how to implement attributes and options.
I need to enable the user to choose between a list of around a hundred color options for a particular product. They need to be able to see an actual approximation of each of those colors.
The former site did this with a table. The background of a cell was styled to the desired color, and the link to the product was given a 25X25PX transparent image, to allow the background to be viewed. That is not only browser dependent (among other things), it would be difficult to do, unless I create a view for each product, and even then it may not be enough.
So I thought I could find a way to generate actual color pictures to use with the UC option images module.
However, I've not any idea how to generate those color pictures.
Luke
On Thu, 30 Jul 2009, Leandro Monk wrote:
Luke escribió, El 30/07/09 16:39:
Hello
This is probably OT, unless there is a Drupal way to do this.
For a client, I am designing a Drupal and UC based site. Some of the products require the buyer to choose a color from a specific range (think carpets and such).
On their previous hand-coded site, they had a little tool into which they could enter a hex RGB value, and the site would show the color (one for each color option).
I was thinking that a better way might be to provide a gif or jpg image for each color, using the UC option images module.
However, how to generate those images, which would essentially be little blocks of solid color, is the question which is plaguing me.
Surely this is not a unique problem.
I found closed source Windows based programs (ColorImpact, for example) which claim some such capability, but not only does that seem like overkill, it seems as if there should be some simple way to go about this using an open source option.
Ideas?
Thanks
Luke
[ Drupal support list | http://lists.drupal.org/ ]
http://www.ubercart.org/docs/user/3340/product_attributes_and_options
Regards
-- LeitoMonk -- [ Drupal support list | http://lists.drupal.org/ ]
Luke wrote:
I am aware of how to implement attributes and options.
I need to enable the user to choose between a list of around a hundred color options for a particular product. They need to be able to see an actual approximation of each of those colors.
The former site did this with a table. The background of a cell was styled to the desired color, and the link to the product was given a 25X25PX transparent image, to allow the background to be viewed. That is not only browser dependent (among other things), it would be difficult to do, unless I create a view for each product, and even then it may not be enough.
So I thought I could find a way to generate actual color pictures to use with the UC option images module.
However, I've not any idea how to generate those color pictures.
Luke
Making the images with PHP/GD wouldn't be complicated. Just look through and array of the colors you want, create the block then output it with the color's hex value as the filename. If not that then you would need some graphics program that has scripting in it, like newer versions of Paint Shop Pro.
Of course a better solution might be to use something like the Jquery Color Picker to have them select the color:
http://www.eyecon.ro/colorpicker/
Jamie Holly http://www.intoxination.net http://www.hollyit.net
There's also the CCK colorpicker (http://drupal.org/project/colorpicker) although it has been in various states of brokenness since the 6.x release. I'm not sure of its current status.
On Thu, Jul 30, 2009 at 6:01 PM, Jamie Holly hovercrafter@earthlink.netwrote:
Luke wrote:
I am aware of how to implement attributes and options.
I need to enable the user to choose between a list of around a hundred color options for a particular product. They need to be able to see an actual approximation of each of those colors.
The former site did this with a table. The background of a cell was styled to the desired color, and the link to the product was given a 25X25PX transparent image, to allow the background to be viewed. That is not only browser dependent (among other things), it would be difficult to do, unless I create a view for each product, and even then it may not be enough.
So I thought I could find a way to generate actual color pictures to use with the UC option images module.
However, I've not any idea how to generate those color pictures.
Luke
Making the images with PHP/GD wouldn't be complicated. Just look through and array of the colors you want, create the block then output it with the color's hex value as the filename. If not that then you would need some graphics program that has scripting in it, like newer versions of Paint Shop Pro.
Of course a better solution might be to use something like the Jquery Color Picker to have them select the color:
http://www.eyecon.ro/colorpicker/
Jamie Holly http://www.intoxination.net http://www.hollyit.net
-- [ Drupal support list | http://lists.drupal.org/ ]
I found closed source Windows based programs (ColorImpact, for example) which claim some such capability, but not only does that seem like overkill, it seems as if there should be some simple way to go about this using an open source option.
closed source: http://www.iconico.com/colorPop/
seems like open source--he anyway provides the source code there: http://www.asahi-net.or.jp/~FX6M-FJMY/java09e.html
HTH