Webmastersite.net
Register Log In

WaterMark Problem
Undefined Function

Comments on WaterMark Problem

eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
Posted Jul 16, 2006 - 2:48 PM:

When I tried to enable watermark I upload a .PNG image then click yes on the watermark all images uploaded, I am usng GD and I get an error Undefined Function watermark.php when someone tries to upload. I disabled the watermark again until I get this error sorted out.
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
Posted Jul 16, 2006 - 2:55 PM:

Changed to image magik and the error went away but it still does not watermark the image. The PNG shows up in the settings but it doesn't show the watermark.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 17, 2006 - 8:19 AM:

Works perfectly for me in ImageMagick. The odd looking thing in the lower right of the image in the attached screenshot is my test watermark, and both the image and the watermark are PNGs.

It doesn't work in GD, which is why it says "ImageMagick only" below the option.

Attached Files:
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
Posted Nov 19, 2006 - 1:26 PM:

Still not working, even upgraded to the latest version. Enclosed is a snap shot of my settings.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 19, 2006 - 2:55 PM:

I can only guess the images you're applying to are some odd image type that's unsupported. Works with jpeg and png.
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
Posted Nov 19, 2006 - 3:15 PM:

They are jpg images, have tried on over 20, both as admin and as a user. Did see something in the apache error log.

composite: unable to open image `/home/vhosts/wwwroot/showyour.com/photoswap/attachments/e196d968f2f8a9af9564998fd3eee9f2.jpg': No such file or directory.
composite: missing an image filename `/home/vhosts/wwwroot/showyour.com/photoswap/attachments/e196d968f2f8a9af9564998fd3eee9f2.jpg'.
However the directory does exist and has 777 for permissions.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 21, 2006 - 11:54 AM:

Is the attachments category tree on or off?
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
Posted Nov 21, 2006 - 12:57 PM:

It on, I have a ton of cats and images
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 24, 2006 - 11:26 PM:

This must mean that only ImageMagick's convert command is installed, not composite. Composite is needed for watermarks. You should have 'composite' in the same path where you have 'convert'.
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
#10 - Quote - Permalink
Posted Nov 24, 2006 - 11:40 PM:

They are both in /usr/bin
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Nov 25, 2006 - 12:50 AM:

Finally figured it out. To make it work with the attachments tree, open addeditfuncs.php and change
$imagepath .= $c->staticpath;
to
$imagepath .= $c->staticpath();
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
#12 - Quote - Permalink
Posted Nov 25, 2006 - 3:18 PM:

That did it, now to get a watermark that can be read, it came out all blured.
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
#13 - Quote - Permalink
Posted Nov 25, 2006 - 3:26 PM:

It's putting the water mark but look how it blurs it. Any suggestions on what I should do to the water mark to make it come out clearer. It looks nice in the control panel but it's blured on the image. Please see the attachment.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#14 - Quote - Permalink
Posted Nov 26, 2006 - 5:45 PM:

Mine looks normal: www.wsnforum.com/galleryuse.../Water_Hitting_Log-46.html (bottom right)... the reduced size version is a little blurrier than the full size click through I suppose due to the resizing.

I'm using a transparent PNG. If you used a transparent GIF you could have ugliness due to GIF having a clunky sort of transparency without alpha layers.

From your screenshot I'm not sure there's anything wrong with yours, things simply don't show up as clearly on a picture background as on a plain white background.
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006

Total Topics: 15
Total Comments: 55
#15 - Quote - Permalink
Posted Nov 27, 2006 - 1:24 PM:

I saw a feature in Coppermin (I know ugly word) but it allows you to type the text that you want to use as a water mark rather then an image. I use a png and it comes out bad just like this. But when I tested with text it came out great. Ever thought of doing that?
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.