RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 20, 2008, 11:58:58 am
+  RSGallery2 Support Forums
|-+  RSGallery2
| |-+  Duplicate Threads (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Problems with wathermark
Advanced search
  « previous next »
Pages 1
Author
Topic: Problems with wathermark  (Read 10894 times)
« on: January 01, 2007, 07:51:34 am »
Roman Offline
Newbie
*
Posts: 1

View Profile WWW Email

Since I install the new version in 1.11.11. I have the following error messages with the watermarks.

"Warning: Wrong parameter count for imagettfbbox() in /mnt/sites/feuerwehr-dietikon.ch/web/fwd_produktiv/administrator/components/com_rsgallery2/includes/img.utils.php on line 754"

Thanks in advance.

Best regards and a happy new year.

Roman
Logged
 
Reply #1
« on: January 01, 2007, 09:41:16 am »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1213

View Profile WWW Email

Roman,

Asked and answered a few times already.

Just do a forum search on imagettfbbox or watermark.

Cheers,

Ronald
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #2
« on: January 04, 2007, 05:54:01 am »
Alain Offline
Newbie
*
Posts: 14

View Profile Email

I have the same problem, and did the search on "imagettfbbox or watermark" as you mentioned Ronald. The only thing I could find was that the Watermark function did not work properly and therefore shouldn't be used. Is that it? If so, then why not disable this facility?
Logged
 
Reply #3
« on: January 04, 2007, 06:36:58 am »
Tuckson Offline
Newbie
*
Posts: 7

View Profile Email

I have the same problem, and did the search on "imagettfbbox or watermark" as you mentioned Ronald. The only thing I could find was that the Watermark function did not work properly and therefore shouldn't be used. Is that it? If so, then why not disable this facility?

Same for me.
Since in september a fix is promised in "next release" I have upgraded several versions, until 1.12.0 now, but this problem still exists.
If I can fix this myself, can I read somewhere what to change?
Logged
 
Reply #4
« on: January 04, 2007, 02:42:55 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1213

View Profile WWW Email

Guys,

If it was easy to fix we would have done so.
It is not disabled, because for a large group it does work. We stated this was a try out from the beginning and not a fully functional feature.
It will be solved, but at the moment this is how it works.

So unfortunately if you can't get it to work the only solution is to switch it off.
We are working very hard to make this a stable component, so please have some mercy on us.

If you do have an easy solution please let us know so we can test it.

Cheers,


Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #5
« on: January 05, 2007, 03:49:27 am »
Tuckson Offline
Newbie
*
Posts: 7

View Profile Email

Guys,

If it was easy to fix we would have done so.
It is not disabled, because for a large group it does work. We stated this was a try out from the beginning and not a fully functional feature.
It will be solved, but at the moment this is how it works.

So unfortunately if you can't get it to work the only solution is to switch it off.
We are working very hard to make this a stable component, so please have some mercy on us.

If you do have an easy solution please let us know so we can test it.

Cheers,


OK, That's a clear answer. Please keep up the good work.
 Grin
Logged
 
Reply #6
« on: January 06, 2007, 10:54:05 am »
Kai Redemann Offline
Newbie
*
Posts: 4

View Profile

May be I have a solution...  Huh

I'm a total newbe to Joomla, PHP, Linux,... , but I tried to work it out...

In my case it's working, when I change line 846 to:

Code:
$bbox = imagettfbbox($rsgConfig->get('watermark_font_size'), $rsgConfig->get('watermark_angle'), JPATH_ROOT."/administrator/components/com_rsgallery2/fonts/arial.ttf", $rsgConfig->get('watermark_text'));

To me it seems like the "watermark_angle" was missing and something is wrong with the JPATH_COMPONENT, so I replaced it with the line above.

Perhaps that works for others too...  Undecided

Good luck, CU Kai
Logged
 
Reply #7
« on: January 06, 2007, 12:28:29 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1213

View Profile WWW Email

Kai,

For a total newbie Wink, you have a sharp mind!
The JPATH_COMPONENT was no longer used in the component, and indeed the angle was missing.
With a small adjustment, I put you fix into SVN.

Yours was good, but we use JPATH_RSGALLERY2_ADMIN instead of JPATH_COMPONENT, so the line should look like this:
Code:
<?php
        $bbox 
imagettfbbox($rsgConfig->get('watermark_font_size'), $rsgConfig->get('watermark_angle'), JPATH_RSGALLERY2_ADMIN."/fonts/arial.ttf"$rsgConfig->get('watermark_text'));
?>


That does not fix the watermark in the original image, but we are working on that.

Thanks again!

Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #8
« on: January 06, 2007, 03:49:21 pm »
Tuckson Offline
Newbie
*
Posts: 7

View Profile Email

Kai,

For a total newbie Wink, you have a sharp mind!
The JPATH_COMPONENT was no longer used in the component, and indeed the angle was missing.
With a small adjustment, I put you fix into SVN.

Yours was good, but we use JPATH_RSGALLERY2_ADMIN instead of JPATH_COMPONENT, so the line should look like this:
Code:
<?php
        $bbox 
imagettfbbox($rsgConfig->get('watermark_font_size'), $rsgConfig->get('watermark_angle'), JPATH_RSGALLERY2_ADMIN."/fonts/arial.ttf"$rsgConfig->get('watermark_text'));
?>


That does not fix the watermark in the original image, but we are working on that.

Thanks again!


This is a great fix, indeed on the imagepages the errormessage now has gone.

Kudo's to Kai  Grin

Hope the solution for the original image will be found soon.
Logged
 
Reply #9
« on: January 06, 2007, 05:08:38 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1213

View Profile WWW Email

OK guys,

Just because we like you guys very much I coded the watermarking for the popup bit.
It works in both normal and fancy popup.

It is committed in SVN 536, so the next Nightly Build should contain this addition.

Check it out and let me know in the Nightly Builds forum please.

Now I am off to bed, it is around midnight and my wife is starting to complain. Wink

Cheers,

Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #10
« on: January 07, 2007, 08:32:35 am »
Tuckson Offline
Newbie
*
Posts: 7

View Profile Email

cool, thanx. We (I) 'll try asap.

Kind regards
Logged
 
Reply #11
« on: January 07, 2007, 11:17:43 am »
Tuckson Offline
Newbie
*
Posts: 7

View Profile Email

It Rocks, problem solved.
Mucho thanks.
Logged
 
Print  Pages 1
« previous next »
Jump to: