Announcement

#1 2017-01-18 12:23:48

daareek
Member
2017-01-12
20

How to disable high resolution?

Hello/Hi/Greetings,

how to disable "high resolution" by default for all guests and users? BTW: High resolution image does not contain watermark which seems to be a flaw!

When i disable this on "edit user" screen (including guest account) I'm getting:

Warning: Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101
on the page displaying photo.

As I checked the PHP error log it seems Loupe is not compatible with disabling this option? When Loupe plugin is enabled I'm getting this:
PHP Notice:  Undefined index: element_url in /photoalbum/plugins/Loupe/main.inc.php on line 53
[18-Jan-2017 12:31:55 Europe/Warsaw] PHP Warning:  Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101

However except this notification it runs fine... If deactivated everything is OK.

My theme is Bootstrap darkroom.

Piwigo version: 2.8.5
PHP version: 5.6.12
MySQL version: 5.5.51-38.1

Last edited by daareek (2017-01-18 12:46:44)

Offline

 

#2 2017-01-18 13:02:20

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: How to disable high resolution?

Hi :-)

Go to Administration > Users > Manage

Edit user 'guest'
uncheck 'High definition enabled'


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2017-01-18 13:08:56

daareek
Member
2017-01-12
20

Re: How to disable high resolution?

Hi,

thanks for fast reply!

New registered users will inherit this setting from guest account?

It works but it seems there is a bug in Loupe plugin, when I uncheck and disable high resolution it works but generates this warnings:

PHP Notice:  Undefined index: element_url in /photoalbum/plugins/Loupe/main.inc.php on line 53
[18-Jan-2017 12:31:55 Europe/Warsaw]
PHP Warning:  Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101

on the page displaying image. :-(

Offline

 

#4 2017-01-18 13:12:04

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: How to disable high resolution?

Hi :-)

code line 53 ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#5 2017-01-18 13:23:26

daareek
Member
2017-01-12
20

Re: How to disable high resolution?

Hi,

52 if(isset($match) && count($match)>0){
53        $content = str_replace($match[0],'<a id="loupe_image" href="'.$element_info['element_url'].'">'.$match[0].'</a>',$content);
54    }
55    return $content;

Offline

 

#6 2017-01-18 16:01:51

flop25
Piwigo Team
2006-07-06
7037

Re: How to disable high resolution?

daareek wrote:

Hi,

thanks for fast reply!

New registered users will inherit this setting from guest account?

by default yes
you can change that in your local config by using the plugin LocalFiles Editor

daareek wrote:

It works but it seems there is a bug in Loupe plugin, when I uncheck and disable high resolution it works but generates this warnings:

PHP Notice:  Undefined index: element_url in /photoalbum/plugins/Loupe/main.inc.php on line 53
[18-Jan-2017 12:31:55 Europe/Warsaw]
PHP Warning:  Cannot modify header information - headers already sent by (output started at /photoalbum/plugins/Loupe/main.inc.php:53) in /photoalbum/include/page_header.php on line 101

on the page displaying image. :-(

you can hide this from the local config or by changing the php error level on your whole website or through an htaccess file
A Notice like that may indicate that the plugin need the HD picture at one point but if everything is working the dev might have not thought of that case. I notify him


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

 

#7 2017-01-20 11:25:03

daareek
Member
2017-01-12
20

Re: How to disable high resolution?

Hi,

great loupe is fixed! :-)

Offline

 

Board footer

Powered by FluxBB

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