Profile image gallery provided by database - image

I'm currently working on profile images for my registered users.
As of now my users can upload their own images to use and of course there's a default image, incase users don't upload a picture.
By the way, I'm using the Paperclip gem.
I've been trying to do so that my users can choose to select an image from a list of images, provided by the website/database.
This website: https://satwcomic.com/ has exactly what I'm looking for.
Example from the website.
I've been trying to find a solution for this for the past month, but without luck. any hints on how i could successfully achieve such feature with or without paperclip?
I'm hoping to get pushed in the right direction.
Please do keep in mind, I'm still learning Ruby on Rails as a student and any help will be appriciated.

Related

Best way to protect copyright on images

We're building a startup centred around assets users would sell on the platform. We need to provision our users by giving them a way to protect their copyrights on images/videos they're uploading. Of course, it is not possible to remove any chance of misuse, but we would like at least to minimise it, using the following identified options:
Add non-distraint watermark to images. Only when users buy an image/video they would get the original/"clear" version
Using Google Reverse Images API to check the web for images and eventually show the user where the similar images are uploaded (can also be used for videos by taking a screenshot)
Add copyright information to each image metadata.
Is there something else that we can do?
The second part is getting some insights in assets reusage
Is there some API on Facebook and other social networks to check how many times certain image is uploaded / re-shared / liked / commented etc ?
Any information on the topic is welcome.
Thanks in advance

Face Detection using javascript

As a part of learning MEAN stack development I decided do one social media demo application and It is working fine now, in my local mechine. The problem raised when I started to implement tagging option in group photo.I have an idea which is related to face detection.
The requirement is to detect the persons in group photo and the software itself need to tag those persons. So I implemented a face detection technique by using tracking.js and fetched the eye,mouth,face value in Mongodb during profile picture upload. And my need is to check these values during group photo post upload. But this idea didn't meet my expectation.
So how I need to generate the data of face during each person's profile picture upload?.
So I just would like to know that how to implement this scenario in my project and what kind of implementation style is on facebook and picasa photo editor(desktop application) has already done. If anybody has done this before please help me.

How to add user-data in JOOMLA?

i wannt to build a website with user management. User should be able to loggin with different accounts, f.e. GMail, Facebook, .....
When the user is logged in he/she can upload pictures with geolocation data and some text.
All uploaded geolocations should be visualized on something like google-maps.
Unregisterd users can view the map, but can not change the data or upload anything.
To solve this requirement i decided to use JOOMLA 2.5. with the "plugin_googlemap_J25_J3x.v3.2" plugin.
Everything i know about JOOMLA is what i learned the last two days.So i am very new to it.
Currently i am stuck, because i do not know how to save the user-data (pictures with geolocation data and some text) in JOOMLA.
I asked google! For more than an hour now! Could not find anything, related to that topic!
So my concrete questions are:
I suppose it is not possible to extend the JOOMLA user data database with the user-data, or?
If this is not possible, than i need a second database which holds the user-data, or?
Does anyone knows a tutorial which solves this problem?
I found someting for wordpress "http://codecanyon.net/item/privatecontent-user-data-addon/2399731"
but i have to check if this solves my requirements.
Thanks
Try this,
First make a list of your requirement then go to JED(Joomla extension Directory). search for related extensions.
Here from your requirement ,
You need a Customized Joomla Registration form
Social Media logins
And so on, so check the details of requirement and extension available, In any way you may need some customization on the Application then you can create some plugins for Users events.
Hope it helps..

How to find someone changed their Twitter profile image?

Say, with in my application, I have a list of friends (Twitter IDs) the user follow. I show their name and their image (from Twitter). Every time the user logs into the application, I want to get the recent profile display image from Twitter.
How do I know, someone changed their Twitter profile image?
Currently, I think, I need to get their image (I use Twitter API: GET users/profile_image/:screen_name) and find the modify time and if it is not newer, I assume it is not changed. Is there a better way of doing it? How would you do if you have to built something like this? I hate getting all the image files and checking them one after one. I hope there is a better way to get the images of those who have made a change to their profile recently.
You can try looking at http://api.twitter.com/1/account/verify_credentials.json and see if anything in there tracks profile changes although I doubt it. (Try using: https://dev.twitter.com/console for an easier interface).
If you can't find anything in the API, then there is not way to know that the profile image has changed without checking. In which case, you can store a hash of the old image, and compare the hash of any new images, and see if they match. If they do not, then you know it has changed.
Hope that helps.

IMDB Poster URL Returns Referral Denied

In my Ruby on Rails app, I use the imdb gem (https://rubygems.org/gems/imdb) to search for a movie by title and grab the poster url and add it to the movie model I have in my database. Then in my view, I put that url in an image source tag and display the image to the user.
I don't have any problems when I'm running my application locally, but when I deploy it to Heroku, sometimes a few images are rendered successfully but for the most part, they aren't displayed properly. I've tried multiple browsers and as it turns out when I try to load the image, I get a "Referral Denied" message saying:
You don't have permission to access "[poster url here]" on this server. Reference #[some ref. number here]
How would I go about fixing this? I'm guessing it's because the IMDB server is denying my access because either I'm making too many requests from my application or because my application doesn't have the necessary credentials to get the data or maybe some combination of both. Is there a way to bypass this at all?
IMDB blocks the direct linking of images from their site on other sites, I think this previous question covers the topic.
The easiest way to get around this is to download the image and host it yourself rather than linking IMDB's copy. Alternatively you could investigate alternative movie DBs to see if they can offer what you want - the answers to this question on IMDB APIs lists a few. The Movie DB API looks like a good bet.

Resources