piwigo / flickr2piwigo Goto Github PK
View Code? Open in Web Editor NEWImport pictures from your Flickr account with Flickr2Piwigo.
Home Page: http://piwigo.org/ext/extension_view.php?eid=612
License: GNU General Public License v2.0
Import pictures from your Flickr account with Flickr2Piwigo.
Home Page: http://piwigo.org/ext/extension_view.php?eid=612
License: GNU General Public License v2.0
Unfortunately the Login to Flickr with the flickr2piwigo-Plugin is not working.
After pressing the "Anmeldung" (login)-Button, the Piwigo-Gallery is closed and you will be redirected to the Flickr Page.
For this reason the plugin is not working at all.
Using 1.5.5 (though it reports 1.5.3
Finds my albums via List Albums, but on the results:
Selection
No photo in the current set.
It is this screen that has these error notices:
Notice: Undefined index: photoset in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 189
Deprecated: Function create_function() is deprecated in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 199
Warning: Invalid argument supplied for foreach() in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 203
Warning: array_slice() expects parameter 1 to be array, null given in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 221
Deprecated: Function create_function() is deprecated in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 222
Warning: array_map(): Argument #2 should be an array in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 222
Warning: Invalid argument supplied for foreach() in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 224
Warning: count(): Parameter must be an array or an object that implements Countable in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 233
Warning: count(): Parameter must be an array or an object that implements Countable in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 234
Warning: count(): Parameter must be an array or an object that implements Countable in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 252
Warning: Cannot modify header information - headers already sent by (output started at /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php:189) in /home/flashale/public_html/piwigo/include/page_header.php on line 86
Flickr items have a date, and a "date granularity" which determines how much of the date is accurate.
Granularity | Format |
---|---|
0 | Y-m-d H:i:s |
4 | Y-m |
6 | Y |
8 | Circa Y |
See https://www.flickr.com/services/api/misc.dates.html form more info.
I'm not really sure how Piwigo can support this, as we need to be able to modify the date inputs everywhere, and all the places that the date is displayed (including the calendar view, where we'd want to be able to list photos that e.g. only have a year or a month, and no day).
I think this could be a separate plugin, because it's something that would be useful even without any connection to Flickr. Could still use the same granularity identifiers though, for simplicity (they seem a reasonable design).
Alternatively, perhaps flickr2piwigo could just add keywords for these approximate dates? At least for now, so we don't through this information away.
I'd tried to import albums from flickr. The images get imported but some of them are half grey.
I'd take look into the logfile and can't find any hint of the cause. I also tried this with a new install on a server where the script has way more RAM and can run longer. The results are the same.
The grey images are different on different imports. Also often the first part of the image is not grey but shows parts of the original image.
I can't figure out whether it is caused by my Piwigo installation or flickr.
Any comments?
I have many albums in Flickr. In Flickr2Piwigo, when I click "List my albums" there are some missing albums. Any idea how to troubleshoot this? It currently shows 1005 albums.
Seems to be perhaps a rate-limiting, so doesn't matter (any missed photo will be caught on the next run) but we should make it work better than this.
Fatal error: Uncaught OAuth\Common\Http\Exception\TokenResponseException:
cURL Error # 28: Operation timed out after 0 milliseconds with 0 out of 0 bytes received in
plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php:135
Stack trace:
#0 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(98):
OAuth\Common\Http\Client\CurlClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), 'photo_ids=36061...', Array, 'POST')
#1 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(124):
OAuth\OAuth1\Service\Flickr->request('flickr.photoset...', 'POST', Array, Array)
#2 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/PhpFlickr.php(347):
OAuth\OAuth1\Service\Flickr->requestJson('flickr.photoset...', 'POST', Array)
#3 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/Photos
in plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php on line 135
Hi @mistic100 and @samwilson
from https://twitter.com/hehark/status/1061007503624990720
Warning: Invalid argument supplied for foreach() in /home/sys/var/www/piwigo_master_29/plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/PhotosApi.php on line 77
{"stat":"ok","result":"Photo "" imported"}
when importing
$ unzip /Users/plg/Downloads/flickr2piwigo_1-5-5.zip
[...]
$ grep ^Version flickr2piwigo/main.inc.php
Version: 1.5.3
I am getting a cURL timeout error, and I am curious if this is a setting that can be set in Flickr2Piwigo, Flickr issue or if it is a hosting issue?
ERROR MESSAGE:
An error occurred when trying to log in to Flickr: cURL Error # 28: Connection timed out after 15000 milliseconds
Any advice appreciated.
The PhpFlickr cache directory should be purged sometimes somehow.
I have 17000+ photos on Flickr and I'm transferring them on Piwigo with this plugin. Everything goes smoothly (even if it takes several hours to complete) until I get to picture 16421. I can't know what goes on because my display is filled with errors of wrong file type (for videos, which are not imported). I tried again the import several times, even by night, leaving the computer on and waiting for several hours but the counter stays put to photo 16421.
Thanks a lot in advance for your help!
T
Greetings!
Some of the transferred images are not complete, with portions blank/empty as seen in this screen capture:
The grey parts of the image represent the missing parts of the image.
The images are indeed complete on flickr.
Is this a known issue? Any remedies? I've seen it in a few dozen instances so far.
When I re-run the flickr2piwigo transfer, will it update the incomplete images with the complete versions?
I read somewhere that flickr2piwigo checks to see if the flickr image matches up with the piwigo image, and if they don't match, then flickr2piwigo will replace the incomplete piwigo version with the full flickr version. Is that what we should expect?
Thank you!
Hi,
I have tried to install the plugin.
Adding the keys works, but when I open the import tab I get the following message
Fatal error: Uncaught Error: Call to undefined function OAuth\Common\Http\Client\curl_init() in
plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php:86 Stack trace: #0 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(98): OAuth\Common\Http\Client\CurlClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), Array, Array, 'POST') #1 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(124): OAuth\OAuth1\Service\Flickr->request('flickr.test.log...', 'POST', Array, Array) #2 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/PhpFlickr.php(347): OAuth\OAuth1\Service\Flickr->requestJson('flickr.test.log...', 'POST', Array) #3 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/TestApi.php(31): Samwilson\PhpFlickr\PhpFlickr->request('flickr.test.log in plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php on line 86
I did not complete this setup "7) on the Flickr page, click on the “Edit auth flow for this app” link and copy your Callback URL, provided on Flickr2Piwigo configuration page." as I am not sure where the URL is provided. Could this be the issue?
Thanks for any help
Ash
Piwigo latest version (recent install) and the flickr2piwigo plugin current version.
PHP Version 5.3.3 (CentOS)
$prefilters[] = [
'ID' => 'flickr',
'NAME' => l10n('Imported from Flickr'),
];
When I remark over it the issue moves to another file with a similar syntax.
Php version issue?
I notice that when I try to import an album with more than 500 images, only the first 500 images are imported. Is there a work-around for this limitation?
Flickr offers a way to collect several albums in a set, such set is called a Collection.
It would be great if collections could be imported to Piwigo as parent albums containing the albums which were part of a collection in Flickr.
×
ERROR
An error happened:
Fatal error: Call to a member function debug() on null in /home/nedder77/plugins/flickr2piwigo/include/ws_functions.inc.php on line 88
This is line 88.
$logger->debug('Attempting to import Flickr photo '.$params['id'], FLICKR2PIWIGO);
Administration ->
Plugins ->
Flickr2Piwigo ->
List my albums ->
Auto Upload
(no photos selected, 480 in current set)
-> The whole set
( All 480 photos are selected )
-> Choose album
-> Begin transfer
Processing (1/20) ... (20/20)
And it is finished importing 20 of them.
Piwigo 12.1
The import from Flickr is still working, but the photos will not appear in the choosen album.
The photos are not connected to any virtual album after import, so it is needed to do this manually.
Hi,
I've reinstalled the plugin using the piwigo admin interface.
Its show is version 1.3.0.
When click at "login" button , then raise the error below .
What could be?
PHP version?
Fatal error: Uncaught OAuth\Common\Http\Exception\TokenResponseException: file_get_contents(https://www.flickr.com/services/oauth/request_token): failed to open stream: no suitable wrapper could be found in /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php:73 Stack trace: #0 /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/AbstractService.php(52): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), '', Array) #1 /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/PhpFlickr.php(718): OAuth\OAuth1\Service\AbstractService->requestRequestToken() #2 /home/imartins/public_html/fotos/plugins/flickr2piwigo/admin/import.php(60): Samwilson\PhpFlickr\PhpFlickr->getAuthUrl('read', 'https://fotos.i...') #3 /home/imartins/public_html/fotos/plugins/flickr2piwigo/admin.php(19): include('/home/imartins/...') #4 /home/imartins/public_html/f in /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php on line 73
Piwigo 2.9.2
Operating system: Linux
PHP: 7.0.27 (Show info) [2018-02-20 15:41:22]
MySQL: 5.6.36-cll-lve [2018-02-20 12:41:22]
Graphics Library: External ImageMagick 6.7.8-9
Greetings! I hope this is the right forum to ask this question:
Is Flickr2Piwigo capable of recording the dates from flickr, including the date of upload?
If not, how hard might this be to implement?
Thank you!
Also, I have a Flickr2Piwigo for which I would be interested in hiring someone. Please message me if you might be interested. Thank you! :)
Hi Sam!
I suffering with a issue very very annoying where I not found how workaround.
I'm importing my flickrs photos, album by album, where I import few albums each day.
For each album usually I create a new one during the import process.
But if during this process I want to choose an album where I create few minutes ago they don't appear at the combo to choose it.
They appear only hours later.
I already try purge all options of cache available at piwigo and have no effect , I really need to wait and import later if I want to choose a recent album created.
To reproduce, just :
Regards
Cesar
Hello. I've successfully imported my pictures fro Flickr, after some attempts. I would like to ask what's the folder flickr_cache for, and if it's possible to delete it. The reason is that I'm on a free host with limited inode and that folder is full of small files. Thank you.
The javascript action leads to no reaction.
We should add some continuous integration for coding standards etc.
I have started this, with adding Scrutinizer; see https://github.com/samwilson/Flickr2Piwigo/pull/1 where it's doing various tests: https://github.com/samwilson/Flickr2Piwigo/pull/1/files#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780R15
The code quality is currently:
I think before it should go any further, however, the vendor directory should be removed from the repository. It seems like it will be easy to generate a distribution zip file for upload to piwigo.org, and if we do that we can selectively include only the bits of vendor/
that are required and thus keep the download size as small as possible.
@mistic100 what do you think of Scrutinizer? It'd require a repo admin to activate it.
If a photo being imported isn't in any album on Flickr, it should be added to a Piwigo album called 'No Flickr album'.
Create plugins/flickr2piwigo/tools/download.php
that is the equivalent to the 'import all my pictures' button in the web interface (and perhaps in the future could be extended to support single-album or other sorts of downloading).
Hello,
when I try to transfert an album, I have to show all the photos of the album to import them all.
example :
If the album has more than 20 photos, it paginates in the import screen.
I select 'whole set' to import more than 20 photos but the system only transfers the photos that are showed.
Only showed photos on the screen are imported
Firstly, this is a great plugin that works really well. Thank you!
I have noticed that when an album is imported from Flickr to Piwigo, the album description is not imported from Flickr - only the album name. This means I must edit each album in Piwigo and add the description again myself.
Greetings!
Now and then I have been seeing intermittent error messages during transfers as shown in the attached screenshots:
These errors seem to appear at random for certain images, but then Flickr2Piwigo continues working and transferring further images, after reporting the intermittent errors.
My question runs as follows:
Suppose Flickr2Piwigo reports an error while transferring an image, and the image is not transferred.
If we restart the process/reload the browser, will Flickr2Piwigo try to transfer any missing images which failed to transfer during the errors which were reported?
Thank you!
Elliot
Greetings All!
The import from flickr stalls after a few days. Sometimes it stalls at over 100,000 photos, sometimes under. To date I have imported around 150,000 photos out of 300,000. But it's been a week since the import has even reached beyond 150,000 photos, after numerous stalls and restarts in the browser.
It may be that flickr times out, or the internet connection to the browser times out, but the timeout always happens in different places.
For this reason, I would like to request a feature where one could elect to just start at 100,000 photos, or at some arbitrary number. So basically the first 100,000 photos in the flickr stream could be skipped, and flickr2piwigo would just immediately start at 100,001 photos.
This is because it can take a day or two or three just to GET to the place where it stalled at 100,000 photos, and sometimes it stalls before it get there. So three days can be spent just verifying the photos which I know I already have anyway, until I have to restart the import from the browser, whence after a few days it stalls again.
Also, a server-side chron job would at least eliminate the browser network timeout.
Ideas? Suggestions?
Thank you! :)
Requested in #12:
Would it be possible to import and store the safety status of the photo from flickr, such as safe, moderate, or restricted?
If this isn't possible or easy, would it be possible to import moderate and restricted photos as private, while importing the safe photos as public?
I don't think it's easy to store a new metadata key for the safety status, but certainly we should import them as private, and I think also add a keyword so it's easy to search for and modify them as required.
Does that sound okay?
Does it work in background if I run it for 19k photos? Or browser has to be open all the time? What with the session of PHP?
Is there a rate limit imposed by Flickr?
Hi,
This is a feature request.
At my flickr , some photos are into multiples albums.
During the import process the plugin import only to the first album found.
If possible, when this occur, where they detected some photos was imported before , include a check box to allow add theses photos to album selected at this import, since piwigo support link one photo to multiple albums.
Regards
Cesar
Fresh install, latest version. Followed instructions, got API keys. Managed to login to Flickr, got list of my albums allright. However no matter which album I choose I can not see a single image in them and can not import anything. In the upper part of the import window I can see the traceback:
Notice: Undefined index: photoset in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 189
Deprecated: Function create_function() is deprecated in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 199
Warning: Invalid argument supplied for foreach() in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 203
Warning: array_slice() expects parameter 1 to be array, null given in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 221
Deprecated: Function create_function() is deprecated in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 222
Warning: array_map(): Expected parameter 2 to be an array, null given in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 222
Warning: Invalid argument supplied for foreach() in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 224
Warning: count(): Parameter must be an array or an object that implements Countable in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 233
Warning: count(): Parameter must be an array or an object that implements Countable in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 234
Warning: count(): Parameter must be an array or an object that implements Countable in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 252
In "selection" :
Selection
No photo in the current set.
Tried to reinstall a few times, no luck.
Am I missing something completely obvious??
Hi there,
I'd really love to use this plugin to import my Flickr photos into my new self-hosted instance of Piwigo but I notice on this page:
https://piwigo.org/ext/extension_view.php?eid=612
It says it's only compatible with version 11 - are there any plans to make it compatible with piwigo 12.3.0?
Thanks!
Administration ->
Plugins ->
Flickr2Piwigo ->
List my albums ->
Auto Upload
(no photos selected, 460 in current set)
-> The whole set
( All 460 photos are selected )
When I go to look in the Album: dropdown, I do not see the flickr_import album that I created the previous time.
I don't know if this should be a separate problem or not, but if I click on "create a new album" and then type in the same name as before, it works. Shouldn't it fail if I ask it to create an album that already exists?
Import the names of people tagged in a photo as keywords.
"Get a list of people in a given photo.": https://www.flickr.com/services/api/flickr.photos.people.getList.html
This approach should I think also be compatible with https://github.com/cccraig/MugShot
Thank you! I have just set piwigo up on a brand new Centos server! I hope to help you debug Flickr2Piwigo. At the moment, it is transferring files, with some issues:
Some things I've noticed:
Here is the site:
http://66.45.225.82/pw/piwigo/
For instance, it takes an album title from flickr which has 85 photos, chops it up, and creates five albums, each which has 85 photos:
http://66.45.225.82/pw/piwigo/
Albums:
**- and Beautiful! Athena! [85]
The good news is that it is transferring photos! Thanks!
Also, a question:
Is there a way to run Flickr2Piwigo from the linux shell or command line, rather than from a browser?
I have a dedicated server where I would like to leave it running so as to transfer all my images.
A related question to my above question is that if one closes the browser running Flickr2Piwigo and then opens a new browser on a new computer and runs Flickr2Piwigo, will Flickr2Piwigo continue where it last left off when the first browser was closed? Or will Flickr2Piwigo begin all over again, and download every gallery starting from the very first gallery again?
Thanks! :)
Some Flickr users and software tag photos with machine tags of the form checksum:<algo>=<hash>
where algo
is e.g. md5
and hash
is the corresponding hash of the original file. These shouldn't be imported as Piwigo keywords.
Followed all instructions and can't get past this error:
"An error occurred when trying to log in to Flickr: Error in retrieving token."
Also, the instructions on the user guide linked in the extensions reads:
"on the Flickr page, click on the “Edit auth flow for this app” link and copy your Callback URL, provided on Flickr2Piwigo configuration page."
There is no Callback URL on the configuration page. I just put in the root domain I am installing on.
Any help appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.