Announcement

  •  » Extensions
  •  » rotateImage - rotation not working - saved_angle not defined

#1 2023-02-20 23:22:04

elijahbailey
Member
2023-02-20
1

rotateImage - rotation not working - saved_angle not defined

Hello,

I just installed the rotateImage plugin.
I am not able to rotate a picture. Even the auto-read from Exif seems not to work. There is only one picture with EXIF-"Rotate 180" which is displayed correct.

When using "auto (EXIF)" I see the warning "undefined key saved_angle in rotateImage.tpl.php line 171"  in the log.
At the Menu of the plugin I got three warnings "undefined key saved_angle in rotateImage.tpl.php line 171" .

Just a remark: Ldap_Login is working (after some changes) but still shows "incompatibility with current version of piwigo"

Any help is welcome.

Regards
eb

Server-Umgebung
  Piwigo 13.5.0
  Installiert auf 3 Februar 2023, vor 2 Wochen 3 Tage.
  Betriebssystem: Linux (Ubuntu 22.04.1 LTS)
  PHP: 8.1.2-1ubuntu2.10
  MySQL: 5.5.5-10.6.11-MariaDB-0ubuntu0.22.04.1
  Grafikbibliothek: ImageMagick 6.9.11-60
  Größe des Cache 4.57
Liste der aktivierten Plugins 8
  Admin Tools
  Community
  Language Switch
  Ldap_Login
  LocalFiles Editor
  OpenStreetMap
  Read Metadata
  Rotate Image

Offline

 

#2 2023-03-19 14:55:17

BigIsland270972
Member
Norway
2022-03-15
374

Re: rotateImage - rotation not working - saved_angle not defined

https://www.fotoarkiv.no/priv/rotate.png

NOT working. Any suggestions?

PHP 7.4 Piwigo 13.6.0


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#3 2024-03-09 23:06:14

sparksh
Member
2024-03-09
1

Re: rotateImage - rotation not working - saved_angle not defined

I have the same problem with Piwigo 14.3

It did work once, but on a subsequent session, I got the same error you report.

This is not a great fix and I'm sure someone will post a better way, but I fixed it by editing:

piwigo/plugins/rotateImage/rotate_image.tpl

Locate this line:

<option value="{$angle.value}" {if $saved_angle eq $angle.value}selected="selected"{/if}>{$angle.name}</option>

And change it to read:

<option value="{$angle.value}">{$angle.name}</option>

In other words, disregard the save_angle behavior and whatever it was supposed to accomplish.

Restart everything and you'll be able to do rotations.

Offline

 

#4 2024-03-30 17:42:32

sashko
Member
2024-03-30
1

Re: rotateImage - rotation not working - saved_angle not defined

Thank you, @sparksh! Your fix works for me with Piwigo 14.3.0 and rotateImage 11.0.a.

Offline

 
  •  » Extensions
  •  » rotateImage - rotation not working - saved_angle not defined

Board footer

Powered by FluxBB

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