forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Pascal YAP on December 04, 2004, 05:11:47 pm

Title: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 04, 2004, 05:11:47 pm
i all,

  With GD2 PHP library on my host, is it possible to create a full black and White Gallery from a FULL color Gallery (http://expo.pays-dignois.com)
Exemple : Through a new specific Coppermine Theme and the GD2 library (not yet create), can i translate all my picture in Black & White or SEPIA pictures ?

I want to create a new Theme, an old Gallery interface but with some pictures realised with a Nikon COOLPIX 5700 und ein CONTAX/Carl ZEISS .
Maybe the new Theme name will be : "RetroActiv-2005-1905" ;)

Many Thanx
Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: kegobeer on December 04, 2004, 10:48:51 pm
You'd have to read the php/gd commands to see if it's possible to convert an image to black and white or sepia.  You'd probably have to create some sort of class that would do the converting.

Try www.php.net or boutell.com/gd.
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 05, 2004, 12:38:09 am
KegoBeer,

Quote
You'd probably have to create some sort of class that would do the converting.
It's not a chance  >:(
I'm not strong enough to produce myself this Hack...
Nobody in the past, post a similar wish, strange is'nt it ?
Black & White is a part of our Art, and never someone find this idea !

Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: kegobeer on December 05, 2004, 12:58:56 am
I don't know about you, but if I want a black and white picture, or a sepia colored picture, I take the picture with those settings.  I don't convert them with web based image manipulation packages.  I'm sure most people do the same - that's why this has never been a feature request.

As I don't have a need for this on my site, it's not a priority for me.  Maybe someone else will do the research and make a mod.
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Tranz on December 05, 2004, 10:03:54 am
I would agree with kegobeer. Besides, the "true" artist would be taking the photos in black & white in the first place, not depending on the questionable capabilities of a web-base image manipulation package.
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 05, 2004, 11:58:45 am
eh Friends,

 I'm a professionnal photographer since 1980 and a photographer since my first day !!!
I know the fondamental differences between Colors and B&W

My question was'nt : "produce black & white pictures with GD2, is it an ART or not ?" :\'(

My only wish is release a performance with Coppermine CSS and GD....... FULL POINT.

Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 librar
Post by: Joachim Müller on December 05, 2004, 12:08:23 pm
a quick-and-dirty hack (at least for users with Internet Explorer) would be the use of Microsoft's proprietary filters that are easily applied client-sided:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/filters.asp
http://msdn.microsoft.com/workshop/author/filter/reference/filters/gray.asp
In fact, you just add the css attribute "filter:gray()" to the image - won't work in other browsers than IE, but won't hurt either...

Joachim
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 05, 2004, 02:33:22 pm
Yes Gau²,

Thanx a lot, you are understanding my so poor question (in english vocabulary) ;)

Yes my mission is : In a particular Theme, ALL of my Galery is now in Black and White.

Thanx a lot Gau²

Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 06, 2004, 09:06:04 am
GauGau,

I had some problems with the CSS, i do not find the CSS Tag for all my pictures in GREY.
Your solution with MS IE6 filter: GREY very fine, it's nice, but it work only with the image in full size, not on all pictures (thumbails, intermediate...)
I'm disapointed

(i think, it's the IE cache who do not refresh my modifs)

(I try again)
Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Hein Traag on December 06, 2004, 09:26:59 am
I'm a bit confuzzled about the question. Do you want a gallery with a black&white layout or do you want the pictures held by the gallery to be displayed in black&white ?

In both cases i'd suggest a good decent graphics program, photoshop for example, to apply some greyscaling to either the gallery layout graphics or the pictures you want displayed on the gallery.

Or i'm totally missing the point and i shoot shut up :)
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 06, 2004, 10:48:12 am
Ein,
Quote
Or i'm totally missing the point and i shoot shut up

Yes totally !

Well from the beginning :
I'm the owner of http://expo.pays-dignois.com SHE is a colored Gallery with 2 Themes (perso Themes from Coppermine, and DaMysterious Themes)
I want to create a 3thd Theme (Today the name is Xtra-Z-Old, and not "RetroActiv-2005-1905")
This new Theme will create Greyscale image for all images in my Gallery (with Thumb etc...)

  I'm a French user who made a real strong effort to write and read in english. Do you read two times with a special regard this Topic, to understand what i mean. GauGau two posts before this one, understand my Good idea.

Try this new Theme only for IE6 here : http://expo.pays-dignois.com/index.php?theme=Xtra-Z-Old (Today December 06 - 2004 under TEST. After this date maybe this Theme work fine)

   Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Hein Traag on December 06, 2004, 11:03:24 am
k pardon my French ;)

Still sounds to me like you want greyscale images created online. webbased.. which sounds unreliable to me no matter what online filtering your using.
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 librar
Post by: Casper on December 06, 2004, 12:47:04 pm
He doesn't want to have them created, he just wants them displayed in b&w.

So it depends which theme you are viewing as to how 1 pic is seen.  This will save on webspace for a large gallery.  I think Gaugaus idea of using filters is the way to go, but means you will have to browse with IE.
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: chtito on December 06, 2004, 12:59:41 pm
Hi Pascal!

Let me tell you frankly: i don't like Gaugau's suggestion, because it will only work on IE, and the use of IE is discouraged for many reasons (security, conformance to the web standards).

Now i'm not sure to perfectly understand your request either: I assume that, for a certain theme only, you want (some? all?) pictures to be displayed in black&white? So you'd like Image Magick or GD to perform the transformation on the fly when the page is created or the full size picture is displayed. Is that right?

If that is what you want i'll have a look at what is possible.

Nous pouvons également poursuivre la discussion dans le forum français dont tu es un des si brillants animateurs ! :)
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 librar
Post by: Joachim Müller on December 06, 2004, 01:31:44 pm
I'm aware that the IE-only filters are not a good idea, that's why I said it was a quick-and-dirty solution. But after all, this is only a matter of taste and design, users not using IE will just see the pics in color instead of b&w, they won't lose anything. I don't want to restart the discussion about browser manufacturers (and especially M$) creating pseudo-standards by implementing features not recommended by the W3C; there already have been heated debates elsewhere on the net. After all we're not discussing a core feature, but just a theme customization request...
The other option you suggested isn't ideal either: similar to on-the-fly watermarking, manipulation of pics that exist in RGB to be converted into b&w when accessed is a huge waste of resources on the server and will grind it to a halt in no time. A third alternative would be to create the b&w pics once and store/cache them, but then there's little point in this mod altogether: you're not saving webspace, the pics have to exist as color and b&w versions on the server.

Joachim
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: chtito on December 06, 2004, 03:07:01 pm
It was not my intention to start any debate whatsoever about the pseudo standards of some browser manufacturers! I'm just saying that it's not a good solution to have something that'll work only on IE because the use of IE is discouraged for many reasons, and, besides, is hardly ever used on mac and linux. I was therefore wondering if there would be some better solution, but...

I certainly agree that my solution is not perfect either. You're probably right that the server would get sluggish as h*ll :). In that case, your solution is the best we can do, as far as i can tell...

...so please forget my intervention on this whole thread. ;D

I get a bit touchy when it comes to explorer... sorry for that... :P
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 06, 2004, 03:43:04 pm
@ All,

 REFRESH my TOPIC Title by this one :
How to apply, on all of my pictures, this MS IE6.x FILTER => filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1) ?
I use BLACK-WIDDOW Theme by Damystemious.
I do not find the CSS Class in this Damysterious based THEME (for all images : thumbnails, img catlist, Full size... all img)

@Hein
Quote
k pardon my French
ok that's fun my Friendch :-))

@Chtito
Quote
Nous pouvons également poursuivre la discussion dans le forum français dont tu es un des si brillants animateurs !
brill....Humm humm a bon ???? :-)
Oui, bien sûre.  Mais ne pouvons-nous pas conclure ici, pour en fin de compte, redémarrer le même sujet sur Coppermine-Français/French ?

@Gau²
Quote
..the IE-only filters are not a good idea, that's why I said it was a quick-and-dirty solution.
..But after all, ..is only..taste and design, users not using IE will just see the..color instead of b&w, they won't lose anything.
Then, there's no problem to use this Theme.

Quote
After all we're not discussing a core feature, but just a theme customization request...
The other option you suggested isn't ideal .. to on-the-fly watermarking, manipulation ..when accessed is a huge waste of resources on the server and will grind it to a halt in no time. A third alternative ..to create the b&w pics once and store/cache them, but then there's little point in this mod altogether: you're not saving webspace, the pics have to exist as color and b&w versions on the server.
In first : Exactly, Gau². My request was just a performance with CSS or GD or IE6.x possibilty. Finally, all of you PHP GURU and others pures Devellopers, if your point of view about M$ IE 6.0 it's IE's not a robust browser, it's true but it's not my problem. My problem is +80% of my www's visitors use M$ IE+ !!! That's all !
Secondly i'm the owner of a very small web site with a www ~300 pages, Expo/gallery and a Forum. There're 300+ img on my Galley. You are understand easely, that's impossibble to place again the same 300 pictures in B&W !!!
OK, IE FILTER possibility is just THE simple solution. What better ? but with no charge on my www (GD or IM) and no uploads again ???? ;-))))
*PLUS* i'm in a Montain-Zone, with no DSL-2Mo/Bi-channel, just a simple poor and bad RNIS 64k, d'you see what i mean ?

Merci beaucoup
Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 librar
Post by: Joachim Müller on December 06, 2004, 05:00:49 pm
...so please forget my intervention on this whole thread. ;D

uh-oh - don't get me wrong: I'm glad you intervened, imo it's good to discuss this and let Pascal hear a second opinion on this case.

I wouldn't mind if you decided to actually do the server-sided mod either, might be helpfull for some users who don't suffer from performance issues (low traffic sites with emphasis on cool styling might benefit from the mod), I wasn't going to give you any recommendations on what project you were going to address ;).

Imo the feature Pascal is requesting is a gadget (sort-of), and I think it's ok to code browser-specific gadgets as long as there's no impact on the core functionality of coppermine.

I guess the problem still is that most developers and power-users (who use alternative operating systems and browsers more often than the "average" mainstream user) tend to be militant against everything that is Microsoft'ish (and yes, this includes me as well), although many open source activists (especially from the linux section) have realized that combating the "enemy" M$ is not a very clever marketing strategy - instead we should explain/proof that both mainstream and alternative technology have advantages . I think part of our "mission" (if there is any ;)) is to create a platform-independent product and let users decide if they want to take the risk of applying patform-dependant technology (and losing visitors on the way) with it (as long as we tell them about the risks of platform-dependancy).

Joachim
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 librar
Post by: Joachim Müller on December 06, 2004, 05:28:21 pm
REFRESH my TOPIC Title by this one :
How to apply, on all of my pictures, this MS IE6.x FILTER => filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1) ?
I use BLACK-WIDDOW Theme by Damystemious.
I do not find the CSS Class in this Damysterious based THEME (for all images : thumbnails, img catlist, Full size... all img)
Edit themes/black_widow/style.css, find
Code: [Select]
.image {
        color: White;
}
and replace with
Code: [Select]
.image {
        color: White;
        filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
}
Save and upload. That's all - pretty straightforward, don't you think ;). Works only for users browsing your page with IE5 or better. All other browsers will see color pics.

Joachim
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 06, 2004, 06:58:12 pm
GauGau,
Quote
Edit themes/black_widow/style.css, find
Thanx,
but...
I understand nothing...
If i'm asking for the CSS Class for all images thumbnails and all others, before my post, i tried to edit style.css, find, replace in the exact place you said in your previous post. The only one picture type who is in B&W is the Full size image, this one in the standalone window. I understand nothing......
And online, this Theme is totally outside the same Theme on Local ! i understand nothing.....

I will verify all my "; . ' and /," after i return here with a new great Theme :-)

Try this new Theme only for IE6 here : http://expo.pays-dignois.com/index.php?theme=Xtra-Z-Old (Today December 06 - 2004 under TEST. After this date maybe this Theme work fine)

Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 librar
Post by: Casper on December 06, 2004, 10:22:51 pm
Do the same as you did above to the .thumbnail css class.

And in your theme.php, find the cell the image is in in the template for intermediate image display, and change it to class="image";

Code: [Select]
<td class="image"align="center">
                                                {IMAGE}

                                        </td>

Try that.
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 06, 2004, 10:38:07 pm
Thanx Casper,

But before i read your post i made the mod in the CSS. The prob was'nt in CSS, but in Template.html =>here=><link rel="stylesheet" href="themes/Xtra-Z-Old/style.css" /> an old name in this place, and i turn around 24h ???

The New B&W Theme work fine. Try this new Theme only for IE6 here : http://expo.pays-dignois.com/index.php?theme=Xtra-Z-Old (Today December 06 - 2004 under TEST yet. After this date maybe this Theme work fine)

Bye

Pascal
Title: Re: Create a FULL "Black&White" Coppermine Gallery from colored one ?(GD2 library)
Post by: Pascal YAP on December 06, 2004, 11:34:19 pm
If you understand nothing about inside around z'english, vous pouvez lire ce sujet dans le Board Français/French ici :
http://forum.coppermine-gallery.net/index.php?board=38.0
ou bien, ouvrez directement ce sujet :
http://forum.coppermine-gallery.net/index.php?topic=12343.0
Merci à Gau², Chito, Hein, Casper, KeGoBeer, TranzNdance, MySelf !, and all Coopermine readerz

Pascal