Advanced search  

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

Pages: 1 2 3 [4] 5 6 7 8 ... 15   Go Down

Author Topic: Permanant watermark with undo possibility (GD2+IMagick)  (Read 273128 times)

0 Members and 2 Guests are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #60 on: June 23, 2005, 08:13:18 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #61 on: June 24, 2005, 12:34:02 am »

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
Logged

djmac

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #62 on: June 24, 2005, 01:40:24 am »

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
« Last Edit: June 24, 2005, 03:13:55 am by djmac »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #63 on: June 24, 2005, 08:38:35 am »

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

-TRshady-

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #64 on: June 28, 2005, 10:59:29 am »

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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #65 on: June 28, 2005, 12:19:32 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #66 on: July 10, 2005, 09:48:39 pm »

Hi!
Just applied the hack, but util.php gives me this:
Code: [Select]
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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #67 on: July 11, 2005, 09:18:33 am »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #68 on: July 12, 2005, 07:20:37 am »

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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #69 on: July 12, 2005, 08:58:44 am »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #70 on: July 12, 2005, 11:13:40 am »

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

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #71 on: July 12, 2005, 07:39:56 pm »

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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #72 on: July 13, 2005, 08:11:24 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #73 on: July 13, 2005, 08:52:18 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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #74 on: July 14, 2005, 02:06:31 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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
hack: admin can disable watermarking with checkbox in standard upload
« Reply #75 on: July 14, 2005, 12:39:40 pm »

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

« Last Edit: July 24, 2005, 02:15:10 pm by Stramm »
Logged

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #76 on: July 14, 2005, 08:23:53 pm »

that's your job, heheh



that it is  ;)

I will let you know how it goes...


Thanks again  ;D

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #77 on: July 15, 2005, 10:07:30 pm »

I get this error  ???

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


line 925 is:

      
Code: [Select]
if (USER_IS_ADMIN) {

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #78 on: July 16, 2005, 08:39:16 am »

change the line above to

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

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #79 on: July 19, 2005, 04:26:39 am »

now it says:

Quote
Parse error: parse error, unexpected T_IF in /home/staticp/public_html/photos/upload.php on line 925
Pages: 1 2 3 [4] 5 6 7 8 ... 15   Go Up
 

Page created in 0.023 seconds with 19 queries.