inherit
The Final Cylon
31521
0
Mar 3, 2015 14:39:33 GMT -8
Trublu
Maybe the duck is in the hat.
12,323
October 2004
trublusvufan
|
Post by Trublu on Oct 30, 2009 8:40:10 GMT -8
Hey ya'll,
I'm working for this company, and by default of having the most coding knowledge (they aren't a technologically savvy bunch) I'm in charge of the website. What they'd like to do is put up pictures of the events that they have, and offer them for sale. So, I'm wondering what you guys think is the most efficient way to protect the pictures until we receive payment.
I know that disabling the right-click is an (unreliable) option, and adding a watermark is an option, though not something I'd love to undertake for the volume of pictures. My boss "heard" that there is a way to reduce the quality of the picture when someone tries to print it as well. Don't know if you guys have any coding alternatives.
|
|
inherit
fishgomoo
85493
0
Nov 19, 2012 13:59:58 GMT -8
dude
cows go glug
2,539
July 2006
dudelicious
|
Post by dude on Oct 30, 2009 8:44:45 GMT -8
There's never going to be a particularly effective way of protecting them from being stolen - the only way which is really going to work is with a watermark. You can use the GD library in php to do this automatically for all the files or it can be done with batch editing in photoshop. But just trying to make it more difficult by disabling right click or whatever is never going to work.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Oct 30, 2009 10:35:54 GMT -8
Use PHP's image-editting functionality to automatically watermark images until they're bought.
EDIT: Displaying the full image in any way (even if you enable crap-quality printing, disable right clicking, disable view source, etc.) leaves it open to be stolen. So, what you'll need to do is make the full image inaccessible until after it's been purchased. In which case, only make it accessible to the buyer, of course. So, on all displayed images, show the watermark. Use PHP. Use mod_rewrite to redirect the image URL (e.g. /pictures/picture1.jpg) to the PHP editting file (watermark.php?url=picture1.jpg). watermark.php would open /pictures/picture1.jpg, add the watermark, and display the picture. Make sure that the full version of picture1.jpg is not accessible, even if they know the URL. The only way someone should get access to the unwatermarked picture1.jpg is if they are server administrators. Good luck.
|
|
inherit
The Final Cylon
31521
0
Mar 3, 2015 14:39:33 GMT -8
Trublu
Maybe the duck is in the hat.
12,323
October 2004
trublusvufan
|
Post by Trublu on Oct 30, 2009 11:01:26 GMT -8
Unfortunately, I'm not quite PHP savvy, but thanks for the tips everyone.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Oct 30, 2009 22:21:10 GMT -8
Just check PHP.net for imagecreatefrompng. The links to the left (for the image library) will have everything you need. If the image is a jpeg, imagecreatefromjpeg, and so on. Then copy some watermark.gif file and paste it to the middle of the newly created jpeg/png/whatev. Then output (imagegif, imagepng, imagejpeg, etc.).
It's not hard once you get started. It's about as hard as learning RegEx.
|
|
inherit
111576
0
Jul 13, 2013 18:59:12 GMT -8
perishingflames
112
September 2007
perishingflames
|
Post by perishingflames on Oct 31, 2009 8:29:48 GMT -8
Did you even read his post?
|
|
jadw2k9
inherit
-3772051
0
Dec 3, 2024 21:58:12 GMT -8
jadw2k9
0
January 1970
GUEST
|
Post by jadw2k9 on Oct 31, 2009 11:26:51 GMT -8
As other have said, there's no way to stop images being stolen. If I can see an image on a website, I can just press PRINT SCREEN and crop it. A watermark is a good idea although better still is to only show small thumbnails of some of the images. While it's still possible to steal the tumbnail images, they are very low resolution and it will encourage the downloader to buy the full-size version.
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Oct 31, 2009 19:16:07 GMT -8
Also make sure you lower the quality of the image. Don't just shrink the image down in Photoshop, lower the actual save quality ... thus if they try to enlarge the image, they have less chance.....
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 1, 2009 3:59:29 GMT -8
It may seem obvious, but don't save the thumbnail to the same folder and with an obvious namechange, save them to a different folder at least, so any image thief can't decipher the full image URL from the thumbnail URL.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Nov 1, 2009 9:57:52 GMT -8
I wouldn't have the full versions accessible at all on the website. Send them via e-mail or something. Besides the whole guessing-the-URL thing, if someone buys one and you send them the URL, they'd then have access to *all* the images, since they'd then know the directory for unaltered images. So I'd e-mail it as an attachment or something, with no public access to the unaltered image (but server-side access so that you can watermark them).
|
|
jadw2k9
inherit
-3773123
0
Dec 3, 2024 21:58:12 GMT -8
jadw2k9
0
January 1970
GUEST
|
Post by jadw2k9 on Nov 1, 2009 11:03:16 GMT -8
Though you can host the images online within a section that requires login. Then use URLs with long strings of numbers so that knowing the URL of one image doesn't give away the URLs of the other images.
But if you find server-side programming a problem, then e-mail or post would be easier and equally as secure.
|
|