You are here: Re: laying 2 pics on each other « PHP Language « IT news, forums, messages
Re: laying 2 pics on each other

Posted by Kimmo Laine on 06/08/05 22:28

"Ashok" <non2@mail.ru> kirjoitti viestissδ:d86t33$1siq$1@gavrilo.mtu.ru...
> Hi,
> I have a site where I have pictures and frames for the pictures.
> Is it possible that user picks a picture (it opens in same or a new
> window)
> and then picks a frame (which is added to the border of the picture
> selected) to see how it looks. There will be different pictures and
> frames.
>
> Any idea of how this can be achieved, if not in php, some other way?


In php you can insert a picture into another picture with image_resize. But
the simpler answer would be make a background-image of the frame to the
content-image that has padding of which width is the width of the
surrounding frame. That's how I would lay two images one over the other.

Say you have a image of the frame. Frame width is 20px and content is 100px.
So you make an image:
<img src="content.jpg" width=100 style="padding:20px;
background:url(frame.jpg);" />

That works only for previewing. But if you want to make a permanent image,
then you need to use image_resize()...
--
"I am pro death penalty. That way people learn
their lesson for the next time." -- Britney Spears

eternal.erectionN0@5P4Mgmail.com

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация