-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framapic shutdown for undefined amount of time #1161
Comments
😢 No, no, no… OSM should really implement this. In the meantime, I would suggest:
This is the fail-safest option, I could think of. |
*Sigh*, own solution then. There seems to be no reliability on external services.
A simple upload script which also connects each photo with a note (id) and a cron(like) script which deletes all photos attached to closed/redacted notes or starts deleting the oldest if a predefined max size limit is reached.
Probably something needs to be done to make the cron not run too long
Am 18. August 2018 14:17:47 MESZ schrieb ENT8R <[email protected]>:
…Framapic (https://framapic.org) shows the following image on every page
you visit:
![](https://framapic.org/screenshot.png)
Right now it is not possible at all to access already uploaded pictures
and a user told me in a
[note](https://www.openstreetmap.org/note/1485881) that the upload of
new images does not work too...
Should we switch to yet another provider (would be the third if I
remember right) or do we have to think about a completely different
solution?
|
Just be aware that you need to deal with all those trouble, in case you are self-hosting these images:
|
Regardless the suspension of Framapic service, instead of delete pictures, may be you should keep them in dir de.westnordost.streetcomplete/files/Pictures or, at least, move them in the common dir. Pictures/Streetcomplete after synchro. |
@deuzeffe I guess you are talking about the client, i.e. the app. In such a case, please open a new issue, explain your use case and why you think this is useful. Thanks. |
@rugk You're right, of course! |
As Framapic was developed during the de-google-ify Internet campaign from Framasoft, and free software based (Lutim : https://framagit.org/luc/lutim), may be you (or other volunteers) could install "somewhere on the osm network" you own instance of Framapic-like service. Just an idea. |
Users can only upload pictures by taking a photo, how can there be a copyright on that? I imagine it like this:
This is to ensure that the service is bound to OSM notes and cannot be misused easily as some kind of photo storage. |
You cannot technically limit it to this. Even if you use an API key only in the app, this can be reverse-engineered. But using this and your proposed note "verification" algorithm sound liee a great idea. |
Neat idea! So the only way to abuse this is to place a publicly visible note at OSM containing the link to it. And when this is abusive content, the note will pretty quickly be closed, leading to the removal of the picture short after... I cannot guarantee that I find time to implement this, but whoever might start with this may be interested to have the following points cleared beforehand (I take a few assumptions based on the development of the oneway-api):
Would be good if you could comment on these points and clarify if my assumptions are accurate or if something is different. |
PHP is not favored at all, it just runs anywhere and everybody seems to be able to code in PHP. I think Python would work, Perl works, also Ruby. But easily deployable holds. |
Maybe not do so directly after closing, as a note may also be reopened, due to accidental closing etc. |
True, but moderated notes can be distinguished from closed notes. |
Yes, the thing with PHP is it runs everywhere but makes no fun to program (at least for me). The only problem with Python is, that it can be hard to deploy and has no MySQL support built-in. Depends. If you would like to find out if Python has a chance in your scenario, try to deploy and run the following Python3 CGI script and see if it tells you its version and some info about available MySQL connectors. #!/usr/bin/env python3
import sys
print("Content-Type: text/plain")
print()
print(sys.version)
try:
import PyMySQL
except:
print("no PyMySQL")
try:
import MySQLdb
except:
print("no MySQLdb")
try:
import mysql.connector
except:
print("no mysql.connector")
try:
import sqlalchemy
except:
print("no sqlalchemy") If this won't work or no connector is available, then PHP it is :D |
Python seems to be not installed. I can ask my webhoster if it would be possible to install/enable it. Still, there is Ruby and Perl. At least the former is pretty, isn't it? (Never used it) |
Come on, let's not argue what language is better. They all have their advantages and disavantages, and you can choose what suit's the use case best. |
Okay, Python is definitely not available, I asked the hoster |
Yes, I think Ruby is pretty, but I can't write in Ruby :D However, then PHP is the simplest and most appropriate choice I think. I started implementing the photo service. Don't expect it to be finished within the next few days. Hope that's fine. |
(v8 is a wish, if it is not ready, it is not ready, but it would be cool. It won't be due until at least 2 weeks though anyway) |
I almost finished the upload script. Activate and cleanup script to go. I think v8 is a reasonable target. I'll be back ^^ |
There were only 500 photos in total? That's about 100MB only! |
No, the plots show the amount of photos per month. So in total there were more than 2000 photos |
Ah okay. Well, I got several GB, so it seems that there will be no problems. |
Or switch to @nextcloud ? The APIs there are easy to implement and there are already libraries for many common and uncommon languages. |
I'm back ^^ First version of the photo upload service is done so far. Get it here: Take a look, give it a try, let me know what you think. If the one or other person does a review, that would be appreciated :) Things I deliberately omitted for now:
But if you want one or both things to be implemented, I can take a look. (@Quix0r I guess that would not solve the abuse problem, since everyone could upload to that Nextcloud instance. Something like an API key could be extracted from SC apk) |
@exploide yes, I later came to same thought. :-/ |
If OSM could provide oauth2, then you can authenticate OSM users easily. At least not everbody can upload. |
Oh, they do have OpenID (for users) ... |
And they do have OAuth, at least: https://wiki.openstreetmap.org/wiki/OAuth |
By the way, this will be the last thing I'll do for v8, if someone would like to write the client-side code to talk with exploide's API, feel free to. Though, I plan to release the first beta of v8 in about a week or two. |
I think I am going to postpone this to v9. There is no reason to delay v8 when the feature I am currently working on is complete. But when v8 is out quicker, v9 will be as well, so... |
Framapic (https://framapic.org) shows the following image on every page you visit:
Right now it is not possible at all to access already uploaded pictures and a user told me in a note that the upload of new images does not work too...
Should we switch to yet another provider (would be the third if I remember right) or do we have to think about a completely different solution?
The text was updated successfully, but these errors were encountered: