Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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

Author Topic: Permanant watermark with undo possibility (GD2+IM working!) + better admin tools  (Read 350705 times)

0 Members and 1 Guest are viewing this topic.

2notch

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

(New install of cpg 1.4.8 )

Everything is working great...except one thing.
The intermediate image has the watermark on it. But when I click on the intermediate image a window (javascript?) opens up with the large image and the watermark is not there. This larger window seems to be getting the originally uploaded image.

View here: http://www.alyce51.com/gallery/displayimage.php?album=4&pos=0

In config I have set "Which files to watermark" to Both and I've checked file and folder permissions.

These are the images:
blueskies.jpg - uploaded file (no watermark)
normal_blueskies.jpg - has the watermark
orig_blueskies.jpg - no watermark
thumb_blueskies.jpg - no watermark

Have I missed something in config or do I need to hack the javascript?

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

usually that's file/ folder permissions. If you batch upload you'll have to make sure your folder 'skies' has the recommended permissions (777 or 755) and the file itself is chmodded 644 or 666 (depending on your server settings). Happens when the apache/ php user isn't the user or in the group who uploaded the  pic and therefore hasn't rights to change that file but has rights to make a copy and

2notch

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

That was it. The FTP program I was using on WinXP said the uploaded file was 666. I ssh'd into the site on my Linux machine and did an ls-al and it was really 644. I changed it there and batched added the file and now it works.

That's what I get for using WS-FTP and WinXP :P

Many thanks for your help!
Logged

gerapono

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

How can I watermark the pictures which are already on the site automatically ?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

admin tools
check - Update thumbs and/or resized photos (1)
check - Both resized and full sized (if a orig copy is available)
check - Auto refresh (no need to click continue button anymore)
set Number of processed images per click to 5

scroll down, in the dropdown select 'All albums'

click 'submit

AK_CCM

  • Coppermine regular visitor
  • **
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 63
  • Mushroom Hobby Photograph
    • Ent◊l◊ma.de – Rötlinge, Wiesenpilze und andere Schwammerln

Hi Stramm,

thank you for the great mod. But I've got a problem with the "mod for the mod": My watermark image (60 x 456 pixel) won't be resized on the intermediate images:
http://www.pilze-augsburg.de/galerie/displayimage.php?album=3&pos=0

I still made the changes in sql/update.sql, lang/english.php abd language specific lang/german.php, copied the picmgmnt.inc.php from your mod-pack into the include-directory, uploaded the watermark image into the images-directory and ran the update.php.

In my config I also changed the option "Downsize watermark if width of an picture is smaller than entered value. That is the 100% reference point. Resizing of the watermark is linear (0 to disable)" to the "50" - is this value the percentage to resize the watermark image?

What's wrong - Could you help me please?

Regards, Andreas
Logged

AK_CCM

  • Coppermine regular visitor
  • **
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 63
  • Mushroom Hobby Photograph
    • Ent◊l◊ma.de – Rötlinge, Wiesenpilze und andere Schwammerln

Sorry for my inconvenience - I've reading the explanation
Quote
Downsize watermark if width of an picture is smaller than entered value. That is the 100% reference point. Resizing of the watermark is linear (0 to disable)" to the "50"
again and now everything is clear. The Downsizing-Mod works great!
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

OK, perfect...

Vanek

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
    • http://www.2108.kiev.ua

Hi!
If it's not too hard, can you make an option in the config — watermark padding (in pixels)? I think it's important feature ;)

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

you can hardcode that into picmgmnt.inc.php
if you use ImageMagick it's –geometry widthxheight

if you use GD2 you look for
Code: [Select]
    $pos = $CONFIG['where_put_watermark'];
if ($pos == "northwest") {

and below you change all '5' to the offset you'd prefer

danovo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

Why doesnt it save my settings in Config?

Works for all other settings accept the Watermark Settings, it does not save them for some reason!

Dan.

Help
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

probably you haven't run update.php as mentioned in the first post

danovo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

probably you haven't run update.php as mentioned in the first post

 I have run it, it just doesnt save

Dan
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

if it doesn't save you have made a mistake applying the mod. Usually the sql is missing

danovo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

if it doesn't save you have made a mistake applying the mod. Usually the sql is missing

Okay so any idea how to correct this? Just apply the sql straight into the Database? will that work?
Logged

danovo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

No worries, Sorted it
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

what did you do? Maybe others can profit from your experience too

danovo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

It was an sql problem, forgot to upload the sql file

Another Problem

the watermark works for new uploads that i do now, but i update the images using Admin Tools and it does not update the older images with Watermarks!

These were all FTP'd then Batch Added if this is any help

Dan.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

yes, the FTP and batch add hint is helpful. You'll need to chmod them... I'd say the files to 666, folders 777. Depending on the server setup
if you know how to use the shell and if you have a lot of files/ folders here are two commands you can use
Code: [Select]
find . -type f -exec chmod 0666 {} \;
find . -type d -exec chmod 0777 {} \;
the first will chmod all files in a dir and all its subdirs 666
the second is for folders

GoTTi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24

when i check yes to Watermark Image in the config area, it is not saving that setting.

the "Which file to use for watermark" is blank also.

what do i have to do after i install this?
Logged
Pages: 1 2 [3] 4 5 6 7 ... 26   Go Up
 

Page created in 0.022 seconds with 21 queries.