Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

watermarks 2

Status
Not open for further replies.

TeaAddictedGeek

Programmer
Apr 23, 1999
271
US
Is there a code to permanently alter images and place a watermark in them?
 
I don't mean in Photoshop; I mean in programming code. Is there such a thing or no?
 
Maybe I'm not explaining myself clearly enough; I'm wondering if there's such a thing as programming code to alter images for uploading onto a website--in other words, to add a watermark to it through code.<br>
<br>
I know that you can do it through Photoshop; I'm wondering if you can actually PROGRAM such a thing.<br>
<br>
<br>
Thanks in advance!
 
What kind of watermark??<br>
It IS possible to create a program that would decode a picture, then scale up a watermark graphic to overlay onto the original picture; then re-save the picture; but I SERIOUSLY doubt that one currently exists, & I would warn you in advance that the id-depth workings necessary for such a program would both be a)EXTREMELY hared to engeneer and b)a MAJOR factor in bringing up the price of the program.<br>
<br>
I won't say that your goal is impossible; but it's not one that can (currently) be accomplished very efficiently.<br>
<br>
<br>
-Robherc<br>
robherc@netzero.net
 
I don't see why you would want to do such a thing, photoshop seems like it would be much more effective.
 
Do you mean server-side, or client-side?<br>
<br>
If you mean simply to add a watermark to every image on your workstation before uploading, try creating a macro. Corel 8 or 9, (and Photoshop 5), I believe, support creating macros to do the same repeated task to as many images as you want. I once did this with Corel 8, creating 2000 images with the company logo in one hour (dual processor NT machine). Corel 9 now uses Visual Basic for Applications as its macro programming language, so an application like you describe should be easy. There is quite a lot you can do with this, and with a bit of work, it might be possible to create server-side macros, too, though the graphical interface might cause too much processor overhead.<br>
<br>
If you mean server-side, though, I don't know af any offhand for NT, but in Unix/Linux, there are several applications that can take client-website info, then generate or modify images. I haven't had any direct exerience doing a server-side image script, but I will be playing with one called GD, which ties in well with PHP and Apache (rah). Another one is GIMP (Gnu Image Manipulation Program) which now has a forum here at Tek-Tips.
 
This is client side, essentially... the concern is for people who aren't very Photoshop savvy....
 
I don't yet know whether you can create macros in Photoshop, but if you use Corel 9, you can create a button on every user's Corel toolbar that automatically applies the watermark AND saves the image, or you could have a default directory where everyone saves their images and a Corel macro can later run the same script on all images in that directory.
 
We can't supply Corel though... that's the problem. :(<br>
<br>
Thanks anyhow, though...
 
As I first suggested, Photoshop seems the best way to do this. I, for the life of me, cannot see why someone would want to go through the trouble of programming sometime of watermark into a picture when the option already exists in Photoshop...
 
Photoshop even has a water mark filter called 'Digimarc'<br>
which allows you to put a unique copyright ID supplied by the company which makes it. I can see how this would be a hassle if you have thousands of pictures to go through, because you have to do individualy for each picture.
 
Right... we're talking thousands of pictures, for clients that aren't Photoshop or any kind of graphical program savvy....<br>
<br>
<br>
The ideal way would be to have them upload each picture, and somehow have the watermark on each when it arrives on the server. However, it looks like that won't be feasible.
 
If you company is willing to make the investment on just ONE copy of Corel 9, and a fairly small amount of programming time, it should be no problem. In fact, with a bit of work, you could make the macro something that can be run as a scheduled service in Windows NT, on the server. <br>
<br>
Most of the 'programming' involves starting the macro recorder, performing the action once in real time, then saving the macro, viewing the code and figuring out a few things to get it to apply the action to all images in a certain directory. I imagine it would take me a day's work at the most. Corel works on Photoshop files and can re-save them as Photoshop files when done. I can't see any reason NOT to take this approach.
 
The problem is that the uploading of the files takes place on the clients' side, not ours.... :( Not to mention that I'm fairly certain that regardless, this would mean adding a macro to hundreds upon hundreds of images...
 
Why don't you tell me exactly what IS the situation, because I'm sure there is a way somewhere in all this. What are computers for, if we can't eliminate drudgery and repetetive tasks?<br>
<br>
Are the clients uploading from many different locations? Is the server under your control, or someone else's? What operating system is the server running?
 
Someone pointed me to a URL that shows how to accomplish the image protecting using Java...hopefully this will work.<br>
<br>
This isn't exactly an easy situation, so doing things with graphics programs with each file at a time isn't going to work. It's a matter of the amount of time needed, the amount of clients who'd require this from various locations, their technical knowledge (or lack of it, for that matter), and the amount of graphics.<br>
<br>
<br>
Thanks anyhow, though.
 
I know this was years ago, but...
so where was the java program that did this?
After all this talking, and no final solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top