How do I hide part of an image with white space?

This is a discussion on How do I hide part of an image with white space? within the PHP Language forums, part of the PHP Programming Forums category; Hi, I'm using PHP 5. I was wondering given an image, a.jpg, how can I make an image ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2008
laredotornado@zipmail.com
 
Posts: n/a
Default How do I hide part of an image with white space?

Hi,

I'm using PHP 5. I was wondering given an image, a.jpg, how can I
make an image that would look like you slid a white index card (which
I have a file, white.jpg with the same dimensions as a.jpg) over
a.jpg? Note that you'd be sliding the image from top to bottom or
from left to right, but not both.

Thanks, let me know if this makes sense ... it's a litlte hard to
describe.

Best, - Dave
Reply With Quote
  #2 (permalink)  
Old 06-13-2008
Olaf Schinkel
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

laredotornado@zipmail.com schrieb:
> Hi,
>
> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
> make an image that would look like you slid a white index card (which
> I have a file, white.jpg with the same dimensions as a.jpg) over
> a.jpg? Note that you'd be sliding the image from top to bottom or
> from left to right, but not both.
>
> Thanks, let me know if this makes sense ... it's a litlte hard to
> describe.
>
> Best, - Dave

You are looking for:
a) z-index (HTML)
or
b) gd2 Functions (PHP)
Reply With Quote
  #3 (permalink)  
Old 06-14-2008
The Natural Philosopher
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

Olaf Schinkel wrote:
> laredotornado@zipmail.com schrieb:
>> Hi,
>>
>> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
>> make an image that would look like you slid a white index card (which
>> I have a file, white.jpg with the same dimensions as a.jpg) over
>> a.jpg? Note that you'd be sliding the image from top to bottom or
>> from left to right, but not both.
>>
>> Thanks, let me know if this makes sense ... it's a litlte hard to
>> describe.
>>
>> Best, - Dave

> You are looking for:
> a) z-index (HTML)
> or
> b) gd2 Functions (PHP)


Or even 'transparent gif movies'. And Z-index
Reply With Quote
  #4 (permalink)  
Old 06-14-2008
laredotornado@zipmail.com
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

On Jun 13, 3:49*pm, Olaf Schinkel <tr...@schinkel.tv> wrote:
> laredotorn...@zipmail.com schrieb:> Hi,
>
> > I'm using PHP 5. *I was wondering given an image, a.jpg, how can I
> > make an image that would look like you slid a white index card (which
> > I have a file, white.jpg with the same dimensions as a.jpg) over
> > a.jpg? *Note that you'd be sliding the image from top to bottom or
> > from left to right, but not both.

>
> > Thanks, let me know if this makes sense ... it's a litlte hard to
> > describe.

>
> > Best, - Dave

>
> You are looking for:
> a) z-index (HTML)
> or
> b) gd2 Functions (PHP)


Let's say I go the gd2 route. What functions/concepts would I use?
Do you have any example code?

Thanks, - Dave
Reply With Quote
  #5 (permalink)  
Old 06-15-2008
Jerry Stuckle
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

laredotornado@zipmail.com wrote:
> On Jun 13, 3:49 pm, Olaf Schinkel <tr...@schinkel.tv> wrote:
>> laredotorn...@zipmail.com schrieb:> Hi,
>>
>>> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
>>> make an image that would look like you slid a white index card (which
>>> I have a file, white.jpg with the same dimensions as a.jpg) over
>>> a.jpg? Note that you'd be sliding the image from top to bottom or
>>> from left to right, but not both.
>>> Thanks, let me know if this makes sense ... it's a litlte hard to
>>> describe.
>>> Best, - Dave

>> You are looking for:
>> a) z-index (HTML)
>> or
>> b) gd2 Functions (PHP)

>
> Let's say I go the gd2 route. What functions/concepts would I use?
> Do you have any example code?
>
> Thanks, - Dave
>


Try RTFM at php.net. It contains a lot of good information.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #6 (permalink)  
Old 06-15-2008
Olaf Schinkel
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

laredotornado@zipmail.com schrieb:
> On Jun 13, 3:49 pm, Olaf Schinkel <tr...@schinkel.tv> wrote:
>> laredotorn...@zipmail.com schrieb:> Hi,
>>
>>> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
>>> make an image that would look like you slid a white index card (which
>>> I have a file, white.jpg with the same dimensions as a.jpg) over
>>> a.jpg? Note that you'd be sliding the image from top to bottom or
>>> from left to right, but not both.
>>> Thanks, let me know if this makes sense ... it's a litlte hard to
>>> describe.
>>> Best, - Dave

>> You are looking for:
>> a) z-index (HTML)
>> or
>> b) gd2 Functions (PHP)

>
> Let's say I go the gd2 route. What functions/concepts would I use?
> Do you have any example code?
>
> Thanks, - Dave

The question is:
**WHAT** do you want to do?
Do you want to hide the picture at start and than show more an more?
If yes, Javascript is your friend (with the 2. picture with z-index).
If not, describe what the user will see.
Reply With Quote
  #7 (permalink)  
Old 06-15-2008
The Natural Philosopher
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

Olaf Schinkel wrote:
> laredotornado@zipmail.com schrieb:
>> On Jun 13, 3:49 pm, Olaf Schinkel <tr...@schinkel.tv> wrote:
>>> laredotorn...@zipmail.com schrieb:> Hi,
>>>
>>>> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
>>>> make an image that would look like you slid a white index card (which
>>>> I have a file, white.jpg with the same dimensions as a.jpg) over
>>>> a.jpg? Note that you'd be sliding the image from top to bottom or
>>>> from left to right, but not both.
>>>> Thanks, let me know if this makes sense ... it's a litlte hard to
>>>> describe.
>>>> Best, - Dave
>>> You are looking for:
>>> a) z-index (HTML)
>>> or
>>> b) gd2 Functions (PHP)

>>
>> Let's say I go the gd2 route. What functions/concepts would I use?
>> Do you have any example code?
>>
>> Thanks, - Dave

> The question is:
> **WHAT** do you want to do?
> Do you want to hide the picture at start and than show more an more?
> If yes, Javascript is your friend (with the 2. picture with z-index).
> If not, describe what the user will see.


One trick that can work, and doesn't use the Z index at all, is to set a
background image centered in a table cell, and then put a transparent
gif animation over the top of that.
Reply With Quote
  #8 (permalink)  
Old 06-15-2008
Jerry Stuckle
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

The Natural Philosopher wrote:
> Olaf Schinkel wrote:
>> laredotornado@zipmail.com schrieb:
>>> On Jun 13, 3:49 pm, Olaf Schinkel <tr...@schinkel.tv> wrote:
>>>> laredotorn...@zipmail.com schrieb:> Hi,
>>>>
>>>>> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
>>>>> make an image that would look like you slid a white index card (which
>>>>> I have a file, white.jpg with the same dimensions as a.jpg) over
>>>>> a.jpg? Note that you'd be sliding the image from top to bottom or
>>>>> from left to right, but not both.
>>>>> Thanks, let me know if this makes sense ... it's a litlte hard to
>>>>> describe.
>>>>> Best, - Dave
>>>> You are looking for:
>>>> a) z-index (HTML)
>>>> or
>>>> b) gd2 Functions (PHP)
>>>
>>> Let's say I go the gd2 route. What functions/concepts would I use?
>>> Do you have any example code?
>>>
>>> Thanks, - Dave

>> The question is:
>> **WHAT** do you want to do?
>> Do you want to hide the picture at start and than show more an more?
>> If yes, Javascript is your friend (with the 2. picture with z-index).
>> If not, describe what the user will see.

>
> One trick that can work, and doesn't use the Z index at all, is to set a
> background image centered in a table cell, and then put a transparent
> gif animation over the top of that.


Which has absolutely nothing to do with the op's question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #9 (permalink)  
Old 06-15-2008
Jerry Stuckle
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

Olaf Schinkel wrote:
> laredotornado@zipmail.com schrieb:
>> On Jun 13, 3:49 pm, Olaf Schinkel <tr...@schinkel.tv> wrote:
>>> laredotorn...@zipmail.com schrieb:> Hi,
>>>
>>>> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
>>>> make an image that would look like you slid a white index card (which
>>>> I have a file, white.jpg with the same dimensions as a.jpg) over
>>>> a.jpg? Note that you'd be sliding the image from top to bottom or
>>>> from left to right, but not both.
>>>> Thanks, let me know if this makes sense ... it's a litlte hard to
>>>> describe.
>>>> Best, - Dave
>>> You are looking for:
>>> a) z-index (HTML)
>>> or
>>> b) gd2 Functions (PHP)

>>
>> Let's say I go the gd2 route. What functions/concepts would I use?
>> Do you have any example code?
>>
>> Thanks, - Dave

> The question is:
> **WHAT** do you want to do?
> Do you want to hide the picture at start and than show more an more?
> If yes, Javascript is your friend (with the 2. picture with z-index).
> If not, describe what the user will see.


And when js is disabled?



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #10 (permalink)  
Old 06-15-2008
Jerry Stuckle
 
Posts: n/a
Default Re: How do I hide part of an image with white space?

laredotornado@zipmail.com wrote:
> Hi,
>
> I'm using PHP 5. I was wondering given an image, a.jpg, how can I
> make an image that would look like you slid a white index card (which
> I have a file, white.jpg with the same dimensions as a.jpg) over
> a.jpg? Note that you'd be sliding the image from top to bottom or
> from left to right, but not both.
>
> Thanks, let me know if this makes sense ... it's a litlte hard to
> describe.
>
> Best, - Dave


I've thought more about this. Sure, you can do it in PHP - look up the
gd functions in the manual. But if this is to be dynamic, I think flash
would be better.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0