Re: Really impressive work
| From: | Per Jessen | Date: | Thu, 06 May 2010 09:21:57 +0000 |
| Subject: | Re: Really impressive work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304941@lists.php.net to get a copy of this message | ||
tedd wrote:
> Now, I realize that this company did not take 15 factorial pictures
> of this single piece of jewelry to present all these different
> combinations but instead placed smaller images of each of the stones
> at specific coordinates on the larger image of the jewelry.
>
> I imagine that each piece of jewelry must have the coordinates of
> each setting in a database so that they can "on-the-fly" assemble the
> finished product as per user's direction.
>
> For example, let's take the image of the basket pendant showing three
> stones. Each of the stone locations would have a specific pixel
> placement (i.e., x,y). As such, the database would have a field for
> the image and three location fields for stones 1, 2, and 3.
>
> Now, we also have smaller images of 12 different stones (in heads)
> that are all the same size. Thus, as the user picks the stones and
> positions they want and the image is assembled "on the fly".
>
> Is that the way you see this?
Yes - each picture is basically a base + a number of overlays. Quickly
done with e.g. libgd or some such.
--
Per Jessen, Zürich (8.9°C)