forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: vm5015 on November 09, 2006, 07:25:34 pm

Title: bw and sepia mod
Post by: vm5015 on November 09, 2006, 07:25:34 pm
is it possible to do a bw and sepia filters for each photograph. I have searched the forum and all i could find was that you need to create a separate version (bw / sepia) of each photograph and upload them all. I am looking to imitate the look i saw here:

http://momentshare.com/demo.php (http://momentshare.com/demo.php)
click on a picture and you will see these options under it.

How do they do it?
Title: Re: bw and sepia mod
Post by: Hein Traag on November 09, 2006, 08:18:11 pm
Seems to me it is a filtering option you need. Haven't seen that before in the mods and hacks or plugins that i am aware of.

Good request. Would be a nice one for CPG's that host banquet pictures etc..
Title: Re: bw and sepia mod
Post by: vm5015 on November 09, 2006, 11:40:49 pm
I've been trying to find info on how this is done, but unsuccessful. It looks like it could be a javascript script, but I am not sure how to do this. A similar mod would work for me, this is just the best I have seen.
Title: Re: bw and sepia mod
Post by: Joachim Müller on November 10, 2006, 08:14:07 am
Best option would be to apply sepia filters on the client before uploading to the server. That's what the pros do. Second best option would be modifying the pic on the server (using ImageMagick or GD), but none of those libraries is capable to apply a sepia efect out-of-the-box. No hack known that does this. Would be very resources-consuming. You could come up with a hack that turns the pics into black and white though. Third option would be using filters (CSS/JavaScript). Drawback: only M$-browsers will be able to display them, other browsers won't.
Bottom line: not a very usefull thing for the majority of users, therefor turning this request down.
Title: Re: bw and sepia mod
Post by: vm5015 on November 10, 2006, 04:27:02 pm
so how do these momentshare people do this? i know for sure that they don't pre-load 3 copies of each picture, it has to be a css/javascrip.

any suggestions how to just make the black and white (I can bypass the sepia for now)?
Title: Re: bw and sepia mod
Post by: Tranz on November 10, 2006, 05:37:59 pm
I don't think they're doing anything client-side. Each of the different versions have distinct urls with specific parameters. It is possible that the urls point to 3 distinct files. If the image libraries aren't able to do sepia, it's unlikely that they're doing it dynamically to one file.
Title: Re: bw and sepia mod
Post by: vm5015 on November 10, 2006, 06:57:23 pm
hmmm, i know someone that uses this service, and they claim they only upload one version of the file.
Title: Re: bw and sepia mod
Post by: Joachim Müller on November 10, 2006, 07:10:07 pm
There may be image libraries (or self-written code) that are capable to accomplish this. However, the image libraries Coppermine can be used with (GD and ImageMagick) are not capable to do so.
As far as I can see, momentshare is not an app that you can download and use on your webserver, but a service offering picture hosting, so they may have a special server setup (that's even most likely). Think of it as a service similar to youtube: although you can upload your video files in many different formats, they convert your video on the server (embedding it into flash afaik) and then host the converted video for you. They are only capable to do so because the server is theirs and they are allowed and capable to run a custom piece of code created by them.

Bottom line: just because momentshare is capable to accomplish this doesn't mean that it's possible to integrate this feature into coppermine.
Title: Re: bw and sepia mod
Post by: Nibbler on November 10, 2006, 07:19:20 pm
ImageMagick can do this, it's in the manual. You'd need to come up with a mod to produce the variations you want when the file is uploaded. This is not a support thread though.
Title: Re: bw and sepia mod
Post by: vm5015 on November 12, 2006, 07:21:39 pm
ait. thanks for the info gentlemen. i will try to get around this thing somehow.