Announcement

#1 2021-05-29 19:45:48

parag
Member
2021-05-29
10

Digikam Upload to Piwigo

Hi,
I am trying Piwigo for the first time.
I have tags and metadata on Digikam.
Planning to move to Piwigo.
When I open the plugin I get a blank screen where the Albums are to be selected.
Hence the start upload button is also greyed out.
Please help me


(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])
Digikam Version: 7.2
OS: Windows Server 2012 R2
Database: MariaDB



Piwigo URL: https://parag.piwigo.com

Offline

 

#2 2021-05-29 20:43:49

erAck
Only trying to help
2015-09-06
2129

Re: Digikam Upload to Piwigo

But you did get the login dialog in Digikam and login was successful?


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

Offline

 

#3 2021-05-29 21:22:23

parag
Member
2021-05-29
10

Re: Digikam Upload to Piwigo

Hi,
On my first attempt it gave an error of wrong url
So I checked and added the https prefix
It went to the next screen to select albums which was a blank screen. There wss no login success message.
I assumed that login was successful.

Do you need any more details.
Please help.

Offline

 

#4 2021-05-29 22:37:28

erAck
Only trying to help
2015-09-06
2129

Re: Digikam Upload to Piwigo

Do you even have any category/album? Because neither your gallery page nor your API list any.


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

Offline

 

#5 2021-05-30 03:39:46

parag
Member
2021-05-29
10

Re: Digikam Upload to Piwigo

No I haven't created any category.
I wish to dump my folder /album structure from Digikam.
I was trying to upload the parent folder itself so that the entire tree gets created.
But the option to choose an album did not appear.
I have taken a screenshot but cannot find an option to upload it here.

Offline

 

#6 2021-05-30 10:57:32

erAck
Only trying to help
2015-09-06
2129

Re: Digikam Upload to Piwigo

You can only upload into an existing album, so create at least one. The Digikam plugin doesn't do that (I don't know the latest version but the others didn't), it could do with the API but it doesn't. Also, you have one selection of images to upload, they'll all go into one album.

If you want to have several albums created from a tree structure then copy your tree to the Piwigo galleries/ directory (using ftp, rsync, whatever) and sync from there, see How To Add Pictures ... by FTP.


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

Offline

 

#7 2021-05-30 11:23:42

parag
Member
2021-05-29
10

Re: Digikam Upload to Piwigo

Hi
Thanks for your help.
I will definitely try using the FTP client.

One more query:
Will the FTP client also sync the Digikam metadata with Piwigo? How to do it? I am using a MySQL database.

Here is what my final goal is:
1) I have a file tree with images organized as per my need.
2) I have created a lot of tags using Digikam.
3) I wish to upload the whole file structure as well as the metadata (tags and other info) from Digikam to Piwigo.
Finally I should be able to filter my photos using these tags (Multiple tags may be required to use as filters)
After a lot of research I thought Piwigo is the solution I am looking for.
Please guide me on this as well.

Thanks

Offline

 

#8 2021-05-30 12:42:38

erAck
Only trying to help
2015-09-06
2129

Re: Digikam Upload to Piwigo

An FTP client just transfers files. Piwigo reads metadata from files. But that's the same procedure for both, web upload (or plugin upload) and FTP sync. You need to let Digikam embed tag metadata in image files. If you use IPTC metadata you may also want to enable IPTC data in Piwigo, put this in your local config with [extension by Piwigo Team] LocalFiles Editor

Code:

// use_iptc: Use IPTC data during database synchronization with files
// metadata
$conf['use_iptc'] = true;

// use_iptc_mapping : in which IPTC fields will Piwigo find image
// information ? This setting is used during metadata synchronisation. It
// associates a piwigo_images column name to a IPTC key
$conf['use_iptc_mapping'] = array(
  'keywords'        => '2#025',
  'author'          => '2#080', // not 2#122, see https://piwigo.org/forum/viewtopic.php?pid=168381#p168381
  'name'            => '2#005',
  'comment'         => '2#120'
  );

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

Offline

 

#9 2021-05-30 13:36:10

parag
Member
2021-05-29
10

Re: Digikam Upload to Piwigo

OK Thanks a lot.
I was reading your link for FTP and I followed till the "Photo>Add" Menu.
I do not see the "FTP+SYnchronization" Tab
How to enable it.
I am a noob and struggling with this.
Please guide me.

Offline

 

#10 2021-05-31 16:55:17

erAck
Only trying to help
2015-09-06
2129

Re: Digikam Upload to Piwigo

On the Photos -> Add (Upload photos) page are three tabs, Web Form, Applications and FTP + Synchronisation.


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

Offline

 

#11 2021-05-31 17:04:33

parag
Member
2021-05-29
10

Re: Digikam Upload to Piwigo

Yes but the third tab is not visible for my account.
Is it because it is a trial account?

Offline

 

#12 2021-05-31 21:11:42

erAck
Only trying to help
2015-09-06
2129

Re: Digikam Upload to Piwigo

You need to use an admin account for FTP sync.
But now that you mention "trial account", are you on piwigo.com? That's something completely different, I assumed you hosted your own. You'd have to contact piwigo.com support then, but I have no idea whether they make ftp sync even available, quite likely not for trial accounts.


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

Offline

 

#13 2021-06-01 06:53:31

parag
Member
2021-05-29
10

Re: Digikam Upload to Piwigo

I thought so that there is a difference between piwigo.org and piwigo.com accounts. I have written to them as well. SIde by side I am trying to install piwigo on my hosting as well.
I will reply here if I face further difficulties.

Tanks a lot for your help.

Offline

 

#14 2021-06-05 12:04:23

parag
Member
2021-05-29
10

Re: Digikam Upload to Piwigo

Hi there.
I could finally set up piwogo on an ubuntu system.
I tried to upload one album from Digikam using piwigo export tool. I had previously written metadata to image files . (I have a tag tree structure attached to my images. I am not sure whether they are IPTC or Exif or any other format. I also made the changes in the local file as suggested by you.)
But the keywords shows 0 keywords.
Is there a way to export the tag tree from digikam and recreate it here on piwigo?

Also I havent tried FTP sync because it says that filenames have to be without any spaces. This is a major doubt that I have about my images.

Please help further.

Offline

 

#15 2021-06-05 18:58:00

erAck
Only trying to help
2015-09-06
2129

Re: Digikam Upload to Piwigo

You can have spaces accepted in directory and file names by adding a space to sync_chars_regex, so in your local config add

Code:

// permitted characters for files/directories during synchronization
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. ]+$/';

Note the one space character between . and ]

For the missing keywords/tags, you can check with Piwigo's tools/metadata.php what can actually be read if you temporarily copy one of your images as sample.jpg into the tools/ directory and invoke the php in your browser.

If there's no IPTC data and no Exif tags then you probably encounter the PHP read_exif_data bug; if you can install Exiftool on your server then the [extension by plg] Exiftool Keywords might help. I let Digikam store tags in all three, Exif and IPTC and XMP, and Piwigo reads them either from IPTC or XMP, I don't exactly remember which; to have them read from XMP dc:subject I use the small XMPTags plugin from [Forum, topic 25709] Plugin to import XMP tags as Piwigo keywords. So likely it reads them from there because otherwise why should I have that installed..

Additional benefit of that metadata.php: for IPTC data you'll also see which numbered fields have what data so to show those fields along with an image you can setup a proper $conf['show_iptc_mapping'] if you have $conf['show_iptc'] = true; in your local config. See include/config_default.inc.php for a sample of show_iptc_mapping and [Forum, post 166781 by ddtddt in topic 27721] Read and set tags from IPTC metadata and [Forum, post 168381 by executive in topic 28102] use_iptc_mapping for filtering and batch processing permissions for more details. Check your images with an example though, some photo editing software has odd opinions about what goes into which fields. Digikam seems to get things right though.


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

Offline

 

Board footer

Powered by FluxBB

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