Page 1 of 1

Creating Grayscale-thumbs from color-photos in PhotoAlbum...

Posted: Tue Mar 08, 2005 3:31 pm
by BigBlockMopar
For the PhotoAlbum on my forum, I'm looking for a way to generate Grayscale-thumbnails from (normal) color-photos and pictures.

I've been eyeballing the GD-commands, but my knowledge of PHP and GD is to little so that I can alter the album_thumbnail.php-file so it will generate Grayscale thumbs instead of just resize the color-images.

Anyone can show me a way or a hack/mod for this?
Thanks.

Posted: Wed Sep 14, 2005 10:28 am
by BigBlockMopar
Retry.. 8)

Posted: Wed Sep 14, 2005 10:28 am
by Ramon Fincken
so grayscale pic with a onmouseOver color fade/show ?

Posted: Wed Sep 14, 2005 10:49 am
by BigBlockMopar
A mouseover-effect would be great too ofcourse, but I will settle for a simple grayscale-thumbnail aswell... ;)

Posted: Wed Sep 14, 2005 11:00 am
by Ramon Fincken
BigBlockMopar wrote: A mouseover-effect would be great too ofcourse, but I will settle for a simple grayscale-thumbnail aswell... ;)


it can be done, I'll make something

rfn

Posted: Wed Sep 14, 2005 8:07 pm
by BigBlockMopar
Thanks in advance... Image

Posted: Wed Sep 14, 2005 9:46 pm
by Ramon Fincken
make a html file

paste this chunk upon in it:

Code: Select all

<div style="height:50; width:80; filter:progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)" align=center onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.BasicImage(grayScale=0)'" onmouseout="this.style.filter='progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)'">
          <a href="http://google.com"><img border=0 src='http://www.google.nl/intl/nl_nl/images/logo.gif'><br>
          <font size=1>Google</font></a>
      </div>
Is this of your liking?



http://msdn.microsoft.com/library/defau ... cimage.asp

http://elouai.com/javascript/javascript ... yscale.php

http://www.google.nl/search?hl=nl&q=ima ... OR+1&meta=

Posted: Wed Sep 14, 2005 11:00 pm
by BigBlockMopar
The mouseover in the html-file didn't work for me, probably cause I use a Macintosh computer... ;)


Have a look at this pretty simple mod on Smartor's site in another topic of mine I started once,
http://smartor.is-root.com/viewtopic.php?p=66216

The nuffmon-mod nails it right on the head though, and seems to work pretty nice.
But I think incorporating a mouseover-effect in this mod will be quite something else.

Posted: Sat Sep 17, 2005 11:23 am
by Ramon Fincken
BigBlockMopar wrote: The mouseover in the html-file didn't work for me, probably cause I use a Macintosh computer... ;)


Have a look at this pretty simple mod on Smartor's site in another topic of mine I started once,
http://smartor.is-root.com/viewtopic.php?p=66216

The nuffmon-mod nails it right on the head though, and seems to work pretty nice.
But I think incorporating a mouseover-effect in this mod will be quite something else.


I've got xp home sp2 wih IE,

but I'm affraid it works only with IE ( the grayscale )


There has to be a way of setting GD ... I'll take a look ..

Rfn