Permanant watermark with undo possibility (GD2+IMagick) - Page 4 Permanant watermark with undo possibility (GD2+IMagick) - Page 4
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Permanant watermark with undo possibility (GD2+IMagick)

Started by Stramm, March 26, 2005, 06:09:36 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Stramm

to me it looks like you haven't added the mysql statements correctly... a wrong absolute path would spit out an error after uploading and not show the pic at all. A problem with the mysql would just upload the pic without watermark... ;)

I dunno how you added the mysql stuff... but something went wrong (that's my guess)

djmac

Stramm

OK That is a possibility. What I did was create a txt file with the parameters and installed the tables that way. It looked like it setup correctly. I will take out the tables and re-install them again. But this time I will do it one at a time. I'll let you know how I make out.

Thanks

and Regards
Don

djmac

Stramm

OK I got it! It works.... I knew it was something so obvious if it had teeth it would have bit me. In the config under Transparency 0-100 for entire image I had 0, zip, nadda... Sometimes you have to smack me to get my attention.....

Thank you for your patience and your time.

Regards
Don

Stramm

uhhmm.. OK... I should have said to use something like 50 to test it, hahaha

-TRshady-

Hey there Stramm, first off thanks for the great mod .. am running into problems though and after 2 days still can't get around it.

Would you mind reading This Thread and possibly offering a solution?

Much thanks.

Stramm

With the duplicates I can't help you. That's related to coppermine itself. I even didn't know coppermine shows duplicates (shame about me). I just know it renames files if the same filename's already present.

For the watermarking... have you set 'Which files to watermark' to => both??

When you use the 'Tools', you can recreate fullsized and normal pics... does that work?

dezibel

Hi!
Just applied the hack, but util.php gives me this:
Warning: chmod(): Operation not permitted in /var/www/test/bilder/include/picmgmt.inc.php on line 281
albums/userpics/10001/thumb_100_1303.jpg oppdateringen var vellykket!
albums/userpics/10001/normal_100_1303.jpgoppdateringen var vellykket!

Warning: chmod(): Operation not permitted in /var/www/test/bilder/include/picmgmt.inc.php on line 281
albums/userpics/10001/thumb_100_1299.jpg oppdateringen var vellykket!
albums/userpics/10001/normal_100_1299.jpgoppdateringen var vellykket!

Warning: chmod(): Operation not permitted in /var/www/test/bilder/include/picmgmt.inc.php on line 281
albums/userpics/10001/thumb_100_1298.jpg oppdateringen var vellykket!
albums/userpics/10001/normal_100_1298.jpgoppdateringen var vellykket!

Warning: chmod(): Operation not permitted in /var/www/test/bilder/include/picmgmt.inc.php on line 281
albums/userpics/10001/thumb_100_1297.jpg oppdateringen var vellykket!
albums/userpics/10001/normal_100_1297.jpgoppdateringen var vellykket!


singlefile upload gives no error, but again, it does not get the watermark. What can this be?

Stramm

looks like chmod for files isn't set properly in your coppermine config. 666 should work for most environments.

To fix the permissions of the already uploaded pics SSH into your box go to your cpg/albums/userpics/10001 directory and type

chmod -R 666 *
(you may need root access to do that)
if you have other directories in userpics like 10002 do the same in there as well

It works when uploading new pics cause then no file exists. Later, in the batch tool coppermine tries to change the pics but your OS doesn't allow coppermine to do so. Therefore the 'operation not permitted'



MKnet

I tried this hack and everything "seemed" to work fine. BUT the image quality was horrible. I am not sure exactly why. If you want to see an example go here:
http://michellekwan.net/gallery/thumbnails.php?album=1

I tried messing around with the settings and nothing really helped. FYI, all the images were clear and clean before upload. I uploaded two of the same picture. One with the hack install, one after I took it off.  It is obviously compressing the photos (600k vs 100k). I don't WANT it too. Seemed like it was a "feature" by the creator but I have more bandwidth then I could ever use so I could careless about saving it. Is there a way to disable it?

Stramm

adding a watermark means applying an image to your existing one and processing/ recompressing the entire newly created image again. If your base material is from minor quality or already compressed to the limit you'll get bad results. That should be clear to everyone.

The hack uses the settings in your config. So you can try to raise image quality there to avoid more compression. Or you switch to another image manipulation tool... IMagick instead of GD2 or vice versa. I think it was IMagick that needed two steps to create a watermarked image versus one step with GD2.

MKnet

Config was set to 100. I tried both GD2 and IM. Do have an example site where this actually working well?

Stramm

I have a live site up but it's adult... here a test pic. A fishtank I've sold on ebay. Pic downloaded from ebay, you still can see their watermark. Mine is in the center, jpg quality 80, IM, transparency 40
Watermark: Arial bold, font color blue, outline 1px gray

freesouljah

I finally got around to re-installing this sweet mod...and it worked this time  ;D


one thing that could be useful in later versions would be an option to use the watermark or not while uploading.....not a complaint, but a suggestion....

thanks again  8)

Stramm

Quote from: freesouljah on July 13, 2005, 08:11:24 AM
one thing that could be useful in later versions would be an option to use the watermark or not while uploading.....

So that each uploader (guest, registered, admin) can disable watermarking for his own uploads?? What for should that be?

freesouljah

Quote from: Stramm on July 13, 2005, 08:52:18 AM
Quote from: freesouljah on July 13, 2005, 08:11:24 AM
one thing that could be useful in later versions would be an option to use the watermark or not while uploading.....

So that each uploader (guest, registered, admin) can disable watermarking for his own uploads?? What for should that be?

Mainly Admin...at least in my case.  In my galleries, I have images that were taken by me and other photogs exclusively for our site...and that is when I would want to use the watermark (most likely in batch add).  But then the rest of the galleries are user contributions, which I don't want to add the watermark to.  So at the moment, when I want to use the watermark, I turn it on in Admin....do a batch add...and then shut it off again.

Thanks

Stramm

it's easy to do... but I haven't tested it that's your job, heheh


freesouljah

Quote from: Stramm on July 14, 2005, 12:39:40 PM
that's your job, heheh



that it is  ;)

I will let you know how it goes...


Thanks again  ;D

freesouljah

I get this error  ???

QuoteParse error: parse error, unexpected T_IF, expecting ')' in /home/staticp/public_html/photos/upload.php on line 925


line 925 is:

      if (USER_IS_ADMIN) {

Stramm

change the line above to

array($lang_upload_php['keywords'], 'keywords', 0, 255, 1));

freesouljah

now it says:

QuoteParse error: parse error, unexpected T_IF in /home/staticp/public_html/photos/upload.php on line 925