WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


WaterMark Problem
Undefined Function

Version: 2.3.6
printPrint


Page: 1 2

WaterMark Problem
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 07/16/06 - 12:48 PM:
quote post
#1
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.

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 07/16/06 - 12:55 PM:
quote post
#2
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.

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/17/06 - 06:19 AM:
quote post
#3
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:
watermarked.png
(373 KB, 35 downloads)
attachment
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 11/19/06 - 11:26 AM:
quote post
#4
Still not working, even upgraded to the latest version. Enclosed is a snap shot of my settings.

Attached Files:
watermarksetup.jpg
(153 KB, 29 downloads)
attachment

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/19/06 - 12:55 PM:
quote post
#5
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 Posts: 55
Posted 11/19/06 - 01:15 PM:
quote post
#6
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/e19 6d968f2f8a9af9564998fd3eee9f2.jpg': No such file or directory.
composite: missing an image filename `/home/vhosts/wwwroot/showyour.com/photoswap/attachments/e19 6d968f2f8a9af9564998fd3eee9f2.jpg'.
However the directory does exist and has 777 for permissions.

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/21/06 - 09:54 AM:
quote post
#7
Is the attachments category tree on or off?
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 11/21/06 - 10:57 AM:
quote post
#8
It on, I have a ton of cats and images

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/24/06 - 09:26 PM:
quote post
#9
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 Posts: 55
Posted 11/24/06 - 09:40 PM:
quote post
#10
They are both in /usr/bin

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/24/06 - 10:50 PM:
quote post
#11
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 Posts: 55
Posted 11/25/06 - 01:18 PM:
quote post
#12
That did it, now to get a watermark that can be read, it came out all blured.

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 11/25/06 - 01:26 PM:
quote post
#13
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:
blured.png
(160 KB, 31 downloads)
attachment

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/26/06 - 03:45 PM:
quote post
#14
Mine looks normal: http://www.wsnforum.com/galleryuserdemo/images/Wa... (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 Posts: 55
Posted 11/27/06 - 11:24 AM:
quote post
#15
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?

_____________________
----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Search thread for
Download thread as

Page: 1 2



You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.