Announcement

#1 2023-03-19 22:03:33

scottp
Member
2023-03-19
12

Exiftool setup

Piwigoers!

After piwigo install I'm getting a message that $conf['show_exif'] and $conf['use_exif'] shoujld be set to. false. When I do that using the LocalFiles Editor, the error goes away. But, I'd like to install exiftool. I'm thinking that if this is installed, the rotation of my images may be correct (that's a question for another post though).

I'm trying to set up Exiftool ..
- I've copied the files as described here .. https://exiftool.org/install.html#Unix .. into a folder on my server (specifically the exiftool file and the lib folder).
- I've changed the permissions on exiftool to 755
- I've tested this from the command line in a terminal window .. ./exiftool image.jpg .. displays image metadata, seems to be working.
- Using the LocalFiles Editor, I added the following line ..
    $conf['exiftool_path'] = '/home/..<snip>../Image-ExifTool-12.58/exiftool';
- I also commented out the previous lines that disabled exiftool.
- I also tried putting the exiftool files in a folder that's in the system path.

Result:
- I'm still getting the messages about show_exif and use_exif needing to be set to false, and on the Upload Photos page I'm getting this message .. "Exif extension not available".

Questions:
- Is the exiftool_path value supposed to be a relative or absolute path? Does this point to the "exiftool" executable or to the folder that contains the executable?
- What am I doing wrong?

Any suggestions are appreciated!
...scott


    Piwigo 13.6.0 Check for upgrade
    Installed on 17 March 2023, 2 days ago
    Operating system: Linux
    PHP: 7.4.33 (Show info) [2023-03-19 20:48:20]
    MySQL: 5.5.5-10.2.44-MariaDB [2023-03-19 20:48:20]
    Graphics Library: GD bundled (2.1.0 compatible)
    Cache size N/A   never calculated Refresh

Offline

 

#2 2023-03-20 20:58:50

BigIsland270972
Member
Norway
2022-03-15
374

Re: Exiftool setup

Hello.What Linux do you have installed?'
Robert


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 2023-03-20 22:53:07

scottp
Member
2023-03-19
12

Re: Exiftool setup

Looks like x86_64-redhat-linux-gnu

Offline

 

#4 2023-03-21 13:12:25

BigIsland270972
Member
Norway
2022-03-15
374

Re: Exiftool setup

Step 1. The first step is to update your system to the latest version of the package list. To do so, run the following commands:

sudo dnf check-update
sudo dnf install dnf-utils

Step 2. Installing ExifTool on Rocky Linux 9.

By default, ExifTool is available on Rocky Linux 9 AppStream repository. Now run the following command below to install the latest version of  ExifTool on your Rocky Linux system:

sudo dnf install perl-Image-ExifTool

Once the installation is complete, you can verify the installation by running the following command in the terminal:

exiftool


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

 

#5 2023-03-21 18:29:34

scottp
Member
2023-03-19
12

Re: Exiftool setup

Thanks!

When I run exiftool -ver .. it reports 12.58, which appears to be the current version.

Why is this not detected by piwigo?

Offline

 

#6 2023-03-21 20:02:47

BigIsland270972
Member
Norway
2022-03-15
374

Re: Exiftool setup

scottp wrote:

Questions:
- Is the exiftool_path value supposed to be a relative or absolute path? Does this point to the "exiftool" executable or to the folder that contains the executable?
- What am I doing wrong?

Piwigo shouldn't need the path to exiftool. It should work with just the "exiftool" command anywhere.

Last edited by BigIsland270972 (2023-03-21 20:03:47)


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

 

#7 2023-03-21 20:16:35

scottp
Member
2023-03-19
12

Re: Exiftool setup

Right .. that's what I'm seeing now. Initially, after install, piwigo reported that exif wasn't available, I assumed that it wasn't installed in the OS. So, I tried installing separately and then needed to set the exif_path.

But since I've determined that exif is actually installed, I don't need the path set but I'm wondering why piwigo doesn't see/use it.

Offline

 

#8 2023-03-21 20:55:23

BigIsland270972
Member
Norway
2022-03-15
374

Re: Exiftool setup

Does your images have the rotation exif? I am using Exiftool GUI on windows to check if tags exist.
Exiftool doesn't magically know the correct rotation position.

Last edited by BigIsland270972 (2023-03-21 21:00:49)


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

 

#9 2023-03-21 21:25:14

scottp
Member
2023-03-19
12

Re: Exiftool setup

The image rotation is (or may be) a different issue. First I want to figure out why piwigo isn't recognizing exiftool. Here's my current situation ..

- exiftool is available via the OS, I can type "exiftool -ver" at the command line in a terminal window and it reports the version as 12.58
- I've commented out all "exif" settings that I set earlier in the Local Config. There are no settings defined there at all, now.
- When I go to the piwigo dashboard I see the following two anomalies:
  + $conf['show_exif'] value is incorrect because exif are not supported
  + $conf['use_exif'] value is incorrect because exif are not supported
- When I go to Photos > Add, I see the following message ..
   "Exif extension not available, admin should disable exif use"

Any ideas?

Offline

 

#10 2023-03-21 23:10:53

BigIsland270972
Member
Norway
2022-03-15
374

Re: Exiftool setup

scottp wrote:

- When I go to the piwigo dashboard I see the following two anomalies:
  + $conf['show_exif'] value is incorrect because exif are not supported

do you have: conf['show_exif'] = true;

scottp wrote:

+ $conf['use_exif'] value is incorrect because exif are not supported
- When I go to Photos > Add, I see the following message ..
   "Exif extension not available, admin should disable exif use"
Any ideas?

Do you have: conf['use_exif'] = true;

These two parameters ar just an instruction to piwigo to  show exif if it exist in picture.php and use_exif when syncronizing to database.


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

 

#11 2023-03-22 01:09:22

scottp
Member
2023-03-19
12

Re: Exiftool setup

If I set those to true, I still get the anomaly messages. If I set them to false, it goes away.

Offline

 

#12 2023-03-22 10:52:07

BigIsland270972
Member
Norway
2022-03-15
374

Re: Exiftool setup

can you post a screenshot with the errormsg.


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

 

#13 2023-03-22 18:02:31

scottp
Member
2023-03-19
12

Re: Exiftool setup

Here's my LocalFiles settings ..

https://www.iarch.net/pics/piwigo-localfiles-editor.png

The anomaly messages at the bottom of the Dashboard ..

https://www.iarch.net/pics/piwigo-dashboard-message.png

The message on the Add Photos page ..

https://www.iarch.net/pics/piwigo-add-photos-message.png

Offline

 

#14 2023-03-23 00:27:35

erAck
Only trying to help
2015-09-06
1998

Re: Exiftool setup

That Exif extensions message talks about the PHP exif extension, not exiftool. It does not even mention exiftool.


Running Piwigo at https://erack.net/gallery/

Offline

 

#15 2023-03-23 00:39:48

scottp
Member
2023-03-19
12

Re: Exiftool setup

Hmm. I guess I was under the impression that these were different sides of the same "coin".

So, does the PHP exif extension provide different features than exiftool? Why would I want one or the other?

Sorry, I think I'm missing some fundamental information here.

Thanks!

Offline

 

Board footer

Powered by FluxBB

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