Problem with the watermark Problem with the watermark
 

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

Problem with the watermark

Started by lostemilie, February 15, 2008, 10:50:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lostemilie

Hey!  :) I already added the mod pack to two of my galleries and had no problem with it at all. Now I added it to the Gallery of a friend (http://www.youknowyouloveme.org/gallery) and of course I have a problem  :( First of all the watermark won´t be added when I batch-add pictures and when I just upload single pics the watermark will look this instead of this (my own gallery, same settings and everything). What can I do? (watermarks only on original images)

Stramm

properly chmod files and folders... php (GD2) or image magick need write permisisons (as said, files as well, not just the folders)

The watermarking feature uses a padding of 5px. If you want to remove that you need to edit include/picmgmnt.inc.php
If you use GD2 it's here
    $pos = $CONFIG['where_put_watermark'];
if ($pos == "northwest") {
$src_x = 5;
$src_y = 5;
} else if ($pos == "northeast") {
$src_x = $destWidth - ($logoW + 5);
$src_y = 5;
} else if ($pos == "southwest") {
$src_x = 5;
$src_y = $destHeight - ($logoH + 5);
} else if ($pos == "southeast") {
$src_x = $destWidth - ($logoW + 5);
$src_y = $destHeight - ($logoH + 5);
} else if ($pos == "center") {
$src_x = ($destWidth/2) - ($logoW/2);
$src_y = ($destHeight/2) - ($logoH/2);
}

lostemilie

okay, but why is that not at my other galleries? there is no padding at all but I never changed it. I´ll try the permissions right now. How do I change that? I always set the files with ftp to 777

lostemilie

now when I add images via batch I get this:
Fatal error: Allowed memory size of 62914560 bytes exhausted (tried to allocate 9344 bytes) in /home/delta88/domains/youknowyouloveme.org/public_html/gallery/include/picmgmt.inc.php on line 442

lostemilie

the watermark works now :) thanks. I´ll try t get rid of this error since it has nothing to do with this mod pack but one more question: I want all my thumbnails to have the same size but I already have a lot of images in my gallery. Is there a way to re-crop the thumbs?

Stramm

use the admin tools to recreate thumbs and/or images... config and documentation tell you more about that

lostemilie

can you maybe post a link or something? I just found how to crop images individually but I can´t do that with so many images

lostemilie

I found the tool but which settings to I need? because now my thumbs have all the same size BUT it won´t show the "normal_"s anymore. when I click the thumb it directly shows the big image but I want it to show the normal image and click on it for the HQ image :(

Stramm

#8
It's a theme issue... have a look at the modpack board. It has been discussed there.

edit: the link http://forum.coppermine-gallery.net/index.php?topic=50041.0

lostemilie


lostemilie

is there any way that the thumbnails won´t be cropped to the middle of the pic but to the top of the image? I tried what I found here but somehow it doesn´t work. Can someone maybe post the code I have to change (and not just say: change that)? That would be very nice

Stramm

That's not related to your initial question.
nevertheless... (just a few posts below yours) http://forum.coppermine-gallery.net/index.php?topic=50354.0