Announcement

  •  » Extensions
  •  » Virtualize one or several physical albums

#1 2018-06-17 22:01:14

abravorus
Member
2015-03-03
18

Virtualize one or several physical albums

Hello,

I need to convert one physical album to virtual one. Or several physical albums but not all existing.

Does I understand right that Virtualize extension will automatically convert all physical albums to virtual albums or there is a way to convert only selected physical albums.

Thanks,
  Alexandr

Piwigo version: 2.9.3
PHP version: 7.0.27-0+deb9u1
MySQL version: 5.7.21-20
Piwigo URL: https://terijoki.spb.ru/photos/

Offline

 

#2 2018-06-18 13:53:24

abravorus
Member
2015-03-03
18

Re: Virtualize one or several physical albums

Well, I looked to Virtualize plugin code and see the answers to my questions.

Plugin will transform all physical albums to virtual one without possibility to select particular album for conversion.

Looks like it should be not too difficult to make a new plugin based on Virtualize, let say VirtualizeAlbumById, to convert only images from the physical album with specified id. I will try :)

Thanks,
  Alexandr

Offline

 

#3 2018-06-20 21:51:33

abravorus
Member
2015-03-03
18

Re: Virtualize one or several physical albums

Hello,

I made very simple modification of Virtualize plugin by plg.
It convert one physical album given by album id. The debug mode is provided to see which files will be converted.

So, you can input physical album id to convert, check in Debug mode that everything is ok, remove Debug flag and perform album virtualization. You can repeat above steps for next album if you need and so on.

For my installation of Piwigo 2.9.3 it works without problems.
The only thing is that I applied my changes locally replacing original Virtualize plugin source code. Which is not right way, I understand. But I didn't find how to commit new plugin to Piwigo community.
If somebody will be interested in such a plugin, please point me how to commit it.

Alexandr


Uploaded Images

Offline

 

#4 2018-06-21 09:03:50

executive
Member
2017-08-16
333

Re: Virtualize one or several physical albums

I think all plugins pages contain links to their respective repositories .

https://github.com/plegall/Piwigo-virtualize

Thanks for your contribution. :)

Offline

 

#5 2018-06-21 20:31:48

abravorus
Member
2015-03-03
18

Re: Virtualize one or several physical albums

Well, as this is not a replacement for Virtualize plugin, I made a separate repository:

https://github.com/abravorus/Piwigo-VirtualizeAlbumById

And registered this extension on Piwigo web-site:

https://piwigo.org/ext/extension_view.php?eid=878

Thanks,
  Alexandr

Offline

 
  •  » Extensions
  •  » Virtualize one or several physical albums

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact