Announcement

#16 2012-10-14 19:37:03

Polly
Translation Team
2010-01-15
60

Re: Watermark and Piwigo 2.4

gumoore wrote:

My info is:


        Operating system: Linux
        PHP: 5.2.17 (Show info) [2012-10-12 15:17:43]
        mysql: 5.1.65-cll [2012-10-12 15:17:43]
        Graphics Library: External ImageMagick 6.4.8



Question, how do I change the graphics library because I too cannot get the watermark to work.

in piwigo/local/config.php add or change this line:

  $conf['graphics_library'] = 'gd';

after that, change the position of the watermark, save and try again to upload images.

cheers,
polly

Offline

 

#17 2012-10-15 06:48:28

gumoore
Member
2012-10-12
6

Re: Watermark and Piwigo 2.4

Thank you so much. Worked wonderfully!

Offline

 

#18 2013-07-21 16:57:16

quasar
Member
2013-07-20
13

Re: Watermark and Piwigo 2.4

Hi there,

I have same problem. No watermarks. I have ImageMagick 6.3.3 in my server. But the environment is
        Operating system: Linux
        PHP: 5.3.13 (Show info) [2013-07-21 10:53:26]
        MySQL: 5.0.91-log [2013-07-21 10:53:26]
        Graphics Library: External ImageMagick 6.3.3

Also I dont have and "config file" in /root/local/ but i have a folder "config" i.e, /root/local/config/ in this I have 4 files,
config.inc.bak.php
config.inc.php
database.inc.php
index.php

Where should I include/change   $conf['graphics_library'] = 'gd';



Polly wrote:

gumoore wrote:

My info is:


        Operating system: Linux
        PHP: 5.2.17 (Show info) [2012-10-12 15:17:43]
        mysql: 5.1.65-cll [2012-10-12 15:17:43]
        Graphics Library: External ImageMagick 6.4.8



Question, how do I change the graphics library because I too cannot get the watermark to work.

in piwigo/local/config.php add or change this line:

  $conf['graphics_library'] = 'gd';

after that, change the position of the watermark, save and try again to upload images.

cheers,
polly

Offline

 

#19 2013-07-21 16:59:58

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Watermark and Piwigo 2.4

it's obviously /root/local/config/config.inc.php (what else ?)

Offline

 

#20 2013-07-21 17:04:23

quasar
Member
2013-07-20
13

Re: Watermark and Piwigo 2.4

Thanks Mate...

(I am not a developer, so asked questions which you might find silly.)

Offline

 

#21 2013-07-21 19:57:25

flop25
Piwigo Team
2006-07-06
7037

Re: Watermark and Piwigo 2.4

quasar wrote:

Thanks Mate...

(I am not a developer, so asked questions which you might find silly.)

yes but you can read manuals, no? so I'm happy to announce you there is a documentation!


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#22 2013-07-21 20:46:30

quasar
Member
2013-07-20
13

Re: Watermark and Piwigo 2.4

Thanks for letting me know that there is documentation of this. I tried seeing, but maybe I didn't see properly.


well will you care to share the link of documentation where watermark manual is there.

Offline

 

#23 2013-07-21 20:48:06

flop25
Piwigo Team
2006-07-06
7037

Re: Watermark and Piwigo 2.4

Local config is what you asked for http://piwigo.org/doc/doku.php?id=user_ … onf_locale


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#24 2013-07-22 11:30:55

quasar
Member
2013-07-20
13

Re: Watermark and Piwigo 2.4

Hi friends,

I have this funny situation. My watermark works in GD but not in ImageMagick.


Case 1.
Input>>> I don't edit anything in local file editor (in local/config/config.inc.php)
Environment>>
        Operating system: Linux
        PHP: 5.3.13 (Show info) [2013-07-22 05:20:34]
        MySQL: 5.0.91-log [2013-07-22 05:20:34]
        Graphics Library: External ImageMagick 6.3.3
Output>> No watermark

Case 2.
Input>> I put path of ImageMagick I got from my web hosting guys, $conf['ext_imagick_dir'] = '/usr/local/lib/ImageMagick';
Environment>>
        Operating system: Linux
        PHP: 5.3.13 (Show info) [2013-07-22 05:22:25]
        MySQL: 5.0.91-log [2013-07-22 05:22:25]
        Graphics Library: GD bundled (2.0.34 compatible)
Output>> Watermark

Case 3. Local editor entry >> $conf['graphics_library'] = 'gd';
Environment>>
        Operating system: Linux
        PHP: 5.3.13 (Show info) [2013-07-22 05:22:25]
        MySQL: 5.0.91-log [2013-07-22 05:22:25]
        Graphics Library: GD bundled (2.0.34 compatible)
Output>> Watermark


This means,
1. when I am using ImageMagick, there is no watermark
2. The path I am putting is incorrect.

I found that its better to use ImageMagick than GD, so I am trying to get ImageMagick.
I have over 10k images on my server and I'm trying to do batch multiple sizes and I want to use image Magic.

Regards
Quasar

Last edited by quasar (2013-07-22 11:41:03)

Offline

 

#25 2013-07-22 11:44:24

flop25
Piwigo Team
2006-07-06
7037

Re: Watermark and Piwigo 2.4

Hi
do you own the server or is it a shared host? Because you should install imagick, the php extension for Imagemagick


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#26 2013-07-22 12:17:08

quasar
Member
2013-07-20
13

Re: Watermark and Piwigo 2.4

Hi there,

I am on shared host. When I asked about ImageMagick, they (hosting guys) said its supported by default and path for ImageMagick is /usr/local/lib/ImageMagick.

Server information
(what I got from piwigo admin link,   admin.php?action=phpinfo)

Last edited by quasar (2013-07-22 14:35:09)

Offline

 

#27 2013-07-22 15:22:19

quasar
Member
2013-07-20
13

Re: Watermark and Piwigo 2.4

Hi flop25,

Thanks... You were right... I dont have imagick and I will have to live with GD.

Thanks for the support.

Offline

 

#28 2013-07-22 15:24:18

flop25
Piwigo Team
2006-07-06
7037

Re: Watermark and Piwigo 2.4

imagick is quite useful when the binaries are not where they are supposed to be
Did you tried "/usr/local/lib/ImageMagick/" with the trailing slash?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#29 2013-07-22 17:02:25

quasar
Member
2013-07-20
13

Re: Watermark and Piwigo 2.4

Dear flop25,

I tried that also, and it didnt work. I got confirmation from hosting support guy that Imagick is not available.

I was generating multiple size images while shunting between GD and ImageMagick, I think some of the resized images were not made properly. I will not delete all size images, and will again use resize.

The hosting guy said "You will not be able to use IMAGICK as PHP built-in class. You have to use the alternative ‘convert’ utility. Path is: /usr/local/bin/convert  " & "We have ImageMagick binaries. But it is not complied to PHP so IMAGICK won’t work. "

So I guess I should go for GD. right friend?

Offline

 

#30 2013-07-22 17:07:56

flop25
Piwigo Team
2006-07-06
7037

Re: Watermark and Piwigo 2.4

/usr/local/bin/convert are the binairies Try that path, with the trailing slash also


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact