Gravatar default profile image? - bitbucket

Why do I keep seeing this image as my profile pic?? Its on a lot of stuff: bitbucket, slack, password manager. I don't set profile pics normally, so I'm surprised that THIS is the default or is being chosen for me...
https://gravatar.com/avatar/80ba0cb3b35a90ce431dadbddcc4a7f0
Reverse image search led me here and its the same (I presume) stock photo being used for Amazon:

Related

Explicity disable image sharing to facebook using mini_fb gem

I use mini_fb to share text and images to facebook. My requirement is
When share text then it should share only text
When share text with image, then both text and image should be shared.
My problem is when I share text only, then a random image from the url is posted to facebook along with text. When I searched for it, I found that facebook is picking up images with og:image tag, and picking the last image and posted it.
But there is no explicit meta tag with property "og:image" in my site.
To avoid this I also put explicit meta tag with property "og:image". But the client does not need this.
Can I explicity disable image sharing to facebook, when no image is shared to facebook using 'mini_fb' gem?
it seems that at the moment it isn't possible, not because of the gem, but because of facebook.
By removing the ability to customize link metadata (i.e. headline, description, image) from all link sharing entry points on Facebook, we are eliminating a channel that has been abused to post false news.
you can see more information about this here
https://developers.facebook.com/blog/post/2017/06/27/API-Change-Log-Modifying-Link-Previews/
the way you solved it at the moment is the right way. it's better for you to set explicit the image you want to show, so there is more control about it by you.

Setting profile pic from an upload OR an external URL using Paperclip

I would like to let my users set their profile picture by either:
Providing a remote URL into a text box that I will use to grab the image into an S3 bucket
Uploading a file using SimpleForm's file_field method
I would love to know the cleanest way to allow users to do both of these from the same form. I have done some experimenting but not come up with anything particularly satisfactory yet. Thanks.
The following is a good guide giving a general idea how to do an upload via a url. Its very old but it gives a good general idea of what needs to be done.
http://trevorturk.com/2008/12/11/easy-upload-via-url-with-paperclip/
After doing something like the above, first I would start with both the url and upload field disabled. Then I would just have some javascript, and a buttons that upon selecting url or upload un disabled the corresponding field by removing attribute disabled.

making the images secure so as to make it not accessed by others

I use paperclip gem to store images to s3 and it is displayed with the url of amazon. What i need is, i want to store images in s3 and i want only the users to view the images by using the url. Now if the url is known the image can be accessed anywhere. So how can this be restricted?
There is a very detailed description of how to do this on the paperclip wiki on Github:
check here. Just provide the links created in that way only to users with permission and it should work fine.

Creating photo albums with Wordpress on an existing site

I'm looking for a solution to a particular query. I've got a website that I have made for a client and I coded my own image uploader/thumbnail creator but it's not handling what he wants very well.
So basically I'm looking for alternatives, and someone suggested using Wordpress and one its plugins to help upload albums. This seems straight forward after a bit of reading. But can I integrate it with my current set up:
A user logs into their account on the site (I've set up user accounts in a DB),
They see which albums are associated with this account.
They open the album and the images appear.
So I guess what I'm asking is, how configurable is wordpress to fit in with my current set up. I need to be able to only display albums related to the logged in user to them.
Tbh if my current way worked consistently (the upload/thumbnail creation is all done in PHP), I would prefer to use that, but this has gone on for a while and I just want to give him a clean solution.
You can consider to use this wordpress plugin:
http://wordpress.org/extend/plugins/nextgen-gallery/

Image upload options for website users

I want to be able to provide my website users with the ability to upload a profile picture. What are my options? What is the best way to do this? I would need to be able to limit the image size, crop / resize the image so that I can display thumbnails of the image. The website is written using Ruby on Rails
In alternate plugin to manage your upload file is carrierwave
The PaperClip plugin is pretty much the new hotness (standard):
http://github.com/thoughtbot/paperclip
It supports different image processors but we use ImageScience. RMagick leaks memory
I agree with the others recommendation of Paperclip for handling any kind of upload.
However for profile pictures in particular, if you are storing your user's email addresses you might like to consider using Gravatar, as StackOverflow does, to effectively "outsource" this functionality and let your users maintain consistent avatars among all the sites they use.

Resources