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

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

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

Post 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.
Signatures are overrated...
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

Post by BigBlockMopar »

Retry.. 8)
Signatures are overrated...
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken »

so grayscale pic with a onmouseOver color fade/show ?
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

Post by BigBlockMopar »

A mouseover-effect would be great too ofcourse, but I will settle for a simple grayscale-thumbnail aswell... ;)
Signatures are overrated...
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post 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
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

Post by BigBlockMopar »

Thanks in advance... Image
Signatures are overrated...
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post 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=
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

Post 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.
Signatures are overrated...
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post 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
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
Post Reply

Return to “[2.0.x] MOD Requests”