Yet Another Cycling Forum

General Category => The Knowledge => Ctrl-Alt-Del => Topic started by: 321up on 06 May, 2017, 12:05:02 pm

Title: host for photos in yacf posts
Post by: 321up on 06 May, 2017, 12:05:02 pm
Previously I used picasaweb to host photos for yacf posts, but that has been replaced by google photos and I've not found a way to get a direct link to a photo in google photos (i.e. so the image can be embedded in a yacf post) - is it possible? how?

What are the alternatives (aside from having my own web server)?
Title: Re: host for photos in yacf posts
Post by: woollypigs on 06 May, 2017, 12:32:09 pm
OK how I just managed to do it

Find and click on the photo in google photos. Right click on images, click "copy address to image". Pasted within [ img ] <here> [/ img ].

(https://lh3.googleusercontent.com/qp0v1466lliLBG1f43KR3-hZn5itJeyVpv5RMeo7KJM9jXq6RxoU2PyAMGBummre5Hk_KBzjS1UQtJyyZ38f7v6IMscFF0vkml0omAx9GaMqDixqCpP88i4ddRM5gOXw4CKVFv-WDm7RtIsgYN0LXKI_tc4Ql3AZM9SznGs3rYPheOkd5bBWaPWfsGUgLDiZCq3w9qsxgjjQMFgF5Rzv0e_Oyts7keOKe_Pdt6O9LIP_Nx1cluKW_y_44Ah0r07OAj9CnSuA6LYR7X-1UuzV3qFWiEt0E3uNqi2zc2LzsFRXzzgjYq_-VcYhMQz2s9oZJ63SKsAnlBl9yWxdMZtTHEPECQkt5UXdnDw-9aok6DZHSP8y_fwd5Q_kWWPXs9JQOMHF54aTSRmh65yp8BXau8CUx3JHef_lkaKhxaS0y80gBxc_DW9QQNotIXI5jSNUzdvvJPO2QSVNDPcqed2rv9pT2V4-ZYeQSPdyxnkz1_HjUAnUNV72E7NtNquYbv8-do7igRmsTSCpNj4QrDKw21cScvisH_tNk6BHGyJS_T-x9TgQlHT7vOCf1Dyk7Ig9Hw7MFVf8uWxF3JC-h1A8XI6cRNEUlFcL91Ue3nZU_uTTpr7IQsv0ow=w991-h990-no)

Getting a mahooooooocive long link, the short coded link don't work.

Though I think you need to have the images public.
Title: Re: host for photos in yacf posts
Post by: 321up on 06 May, 2017, 01:01:45 pm
OK how I just managed to do it

Find and click on the photo in google photos. Right click on images, click "copy address to image". Pasted within [ img ] <here> [/ img ].

Getting a mahooooooocive long link, the short coded link don't work.

Though I think you need to have the images public.

Thanks, that appears to work, I'll check again later in case the long url is time limited to your session.

I also could not figure out how to remove/hide the location & exif data from google photos - is there an option to do this or do I need to strip it out before uploading?
Title: Re: host for photos in yacf posts
Post by: woollypigs on 06 May, 2017, 01:05:18 pm
I think that is only removed if you "hide" yourself as in not making anything public. But then again if it is there, G knows it. So best to remove it before uploading if you don't want that out and about.
Title: Re: host for photos in yacf posts
Post by: 321up on 06 May, 2017, 02:05:12 pm
OK how I just managed to do it

Find and click on the photo in google photos. Right click on images, click "copy address to image". Pasted within [ img ] <here> [/ img ].

Getting a mahooooooocive long link, the short coded link don't work.

Though I think you need to have the images public.

Thanks, that appears to work, I'll check again later in case the long url is time limited to your session.

I also could not figure out how to remove/hide the location & exif data from google photos - is there an option to do this or do I need to strip it out before uploading?

woollypigs, did you remove your photo?  It's not showing now - url expired??
Title: Re: host for photos in yacf posts
Post by: LEE on 06 May, 2017, 02:21:30 pm
I use Google Photos.

Use "Sharing Options" to make an album public and store your YACF images in that album.  URLs are long but that's irrelevant.
Title: Re: host for photos in yacf posts
Post by: woollypigs on 06 May, 2017, 02:30:47 pm
OK how I just managed to do it

Find and click on the photo in google photos. Right click on images, click "copy address to image". Pasted within [ img ] <here> [/ img ].

Getting a mahooooooocive long link, the short coded link don't work.

Though I think you need to have the images public.

Thanks, that appears to work, I'll check again later in case the long url is time limited to your session.

I also could not figure out how to remove/hide the location & exif data from google photos - is there an option to do this or do I need to strip it out before uploading?

woollypigs, did you remove your photo?  It's not showing now - url expired??

Nope didn't touch it. hmm
Title: Re: host for photos in yacf posts
Post by: hulver on 06 May, 2017, 02:55:07 pm
For sharing on here, I use imgur.com

Pretty straightforward to use, and will produce bbcode for you that you can just paste into the box here. You can chose different thumbnail sizes as well.

(http://i.imgur.com/4BYO7sBm.jpg)

(http://i.imgur.com/4BYO7sBl.jpg)

Just make sure that you don't hit "Share to community" once you've uploaded it, as that will then post it on their forum type thing as well. You don't need to do that to make it visible elsewhere.
Title: Re: host for photos in yacf posts
Post by: Mrs Pingu on 06 May, 2017, 06:57:44 pm
We use Flickr,  as Ham said you can get BBcode which makes it trivial to post pics of different sizes on here.
Title: Re: host for photos in yacf posts
Post by: Mrs Pingu on 06 May, 2017, 07:04:45 pm
Found these instructions for Google photos. The rogue apostrophes are all the fault of the author, not me. YMMV.
http://www.rainsberger.ca/2016/02/19/direct-link-to-image-in-google-photos-for-html-image-tag/
Title: Re: host for photos in yacf posts
Post by: Mr Larrington on 06 May, 2017, 07:31:51 pm
+1 for Flickr, although the option to copy & paste bbcode has been b0rked under iOS for more than a year chiz.
Title: Re: host for photos in yacf posts
Post by: andrew_s on 06 May, 2017, 10:52:25 pm
In general, photos hosted on google are not visible to all and sundry.
Making the photo "public" isn't sufficient - the viewer has to have a google account, and be logged in.

For example. I can't see Woolly's photo, even if he can.
If I copy the link and paste it into the address bar, I get "Sign in with your google account" rather than an image.
Woolly can verify whether it's properly visible or not by clearing all his cookies, then looking again.

I can't see LEE's photos either, but I gave up moaning ages ago.
Title: Re: host for photos in yacf posts
Post by: woollypigs on 06 May, 2017, 10:59:26 pm
I was looking at it in a incognito browsers just finished e at first and it was set as public.
Title: Re: host for photos in yacf posts
Post by: andrew_s on 06 May, 2017, 11:08:10 pm
did you clear your cookies though?

warning: clearing your cookies will log you out of everywhere, so you'll have to sign in again before replying.

"public" doesn't mean "everybody", it means "all google users"

I host the photos I post here on photobucket
(http://i161.photobucket.com/albums/t207/andrew_sw/GloucesterDocks_zps41016b51.jpg) (http://s161.photobucket.com/user/andrew_sw/media/GloucesterDocks_zps41016b51.jpg.html)

(now changed to dropbox)
Title: Re: host for photos in yacf posts
Post by: LittleWheelsandBig on 07 May, 2017, 12:10:34 am
I can't see WP's photo either and I am logged into Google. I can see all of the other in-thread photos though.
Title: Re: host for photos in yacf posts
Post by: Ham on 07 May, 2017, 12:40:43 am
The "easiest" way to use Google photos is as follows.

Step 1 - in Google photos, create an album that has public view permission. This step has only to be done once
Step 2 - Add any photo to that album. Any photo can be added to multiple albums. The three dots options on the top right contain this option

You now need to have a Blogger account, and create a blog.You do not need to post anything.

Step 3a - Create a new blog post, select "HTML" rather than "Compose" and click the button to add an image.Select "From the Google  Album Archive" and you will get your albums presented. Even if your <YACF album. is not in the first selection, you will only have to scroll down once as these are ordered by frequency of use.

Step 3b - Select as many images as you want (you can select multiple), click OK

you will see something like
Code: [Select]
<a href="https://3.bp.blogspot.com/-rIBat5PUuWI/WQ1ymxm5NCI/AAAAAAABA4g/yR1E_fh4LugpoAbJ7qsQ0YKpVIFD4JFJwCPcB/s1600/IMG_20170502_215250.jpg"
imageanchor="1" ><img border="0" src="https://3.bp.blogspot.com/-rIBat5PUuWI/WQ1ymxm5NCI/AAAAAAABA4g/yR1E_fh4LugpoAbJ7qsQ0YKpVIFD4JFJwCPcB/s320/IMG_20170502_215250.jpg"
width="320" height="240" /></a>


Step 3c - Select the element referring to the image eg in the above
Code: [Select]
https://3.bp.blogspot.com/-rIBat5PUuWI/WQ1ymxm5NCI/AAAAAAABA4g/yR1E_fh4LugpoAbJ7qsQ0YKpVIFD4JFJwCPcB/s1600/IMG_20170502_215250.jpg
Copy and paste into your YACF post tag

Step 3d - modify the size (if YCBA) - where it says "s1600" change to "s640" or "s800" depending on what you want the max size of the image to be.

It might sound a little laborious, but it isn't too bad and works perfectly.
Title: Re: host for photos in yacf posts
Post by: Pingu on 07 May, 2017, 10:44:22 am
Jings! What's the difficult way?
Title: Re: host for photos in yacf posts
Post by: Ben T on 07 May, 2017, 11:06:21 am
dropbox. It has a 'public' folder, and in windows explorer you can just right click on any file in the public folder -> Dropbox -> copy public link
Title: Re: host for photos in yacf posts
Post by: IanDG on 07 May, 2017, 11:10:34 am
Another vote for Flickr.

Title: Re: host for photos in yacf posts
Post by: mcshroom on 07 May, 2017, 12:54:47 pm
I switched from Picasa to flickr recently as it's now difficult to make any new albums which are publicly accessible in the new Google photos. The old public albums work, and you can just rename those, but you can't make new ones. Other than insisting on adding extra links to the BBCode in flickr, it does seem to just "work" without too much faffing around.
Title: Re: host for photos in yacf posts
Post by: L CC on 07 May, 2017, 01:00:58 pm
The "easiest" way to use Google photos is as follows.

It might be easy, but (assuming this is the method you always use) it doesn't actually make your images universally visible- I can't ever see them without a laborious hunt and log in to whatever, which is 99% a disappointment- anything you have to work that hard to see inevitably would be.

I can't see WP's photo either and I am logged into Google. I can see all of the other in-thread photos though.
Ditto.

I use photobucket, which is a bit shit, but does work.

Dropbox links will link universally, but don't leave an inline image in the thread.

As a viewer, Flickr and photobucket are the most likely to work.
Title: Re: host for photos in yacf posts
Post by: Ham on 07 May, 2017, 01:05:50 pm
Step 3d - modify the size (if YCBA) - where it says "s1600" change to "s640" or "s800" depending on what you want the max size of the image to be.

One of the nice things about this forum is that it limits the maximum displayable dimensions to 640 x 640 pixels, so unless you wish to display a picture smaller (or distort the relative width and height) there is no need to include dimensions.

Well, y-e-e-e-s, but.

Whatever size it is displayed, the full image is loaded. Thus, if you have a full size image it will take longer to load, noticeable for people with poor connections. Also, if the image is larger it is then the larger version becomes accessible by clicking on it. Also, using the Blogger method (which truly isn't as dire as it sounds) you are presented with two links for the same image, one is sized small as the display image (typically s320) and one is the linked full size image (typically s1600). Knowing the ability to freeform resize using the URL and the "snnnn" bit is therefore important and, if you copy the 320 one by mistake knowing that you can change it quickly is useful.

So, as I say, IYCBA.
Title: Re: host for photos in yacf posts
Post by: Ham on 07 May, 2017, 01:10:07 pm
The "easiest" way to use Google photos is as follows.

It might be easy, but (assuming this is the method you always use) it doesn't actually make your images universally visible- I can't ever see them without a laborious hunt and log in to whatever, which is 99% a disappointment- anything you have to work that hard to see inevitably would be.


Is that so? I can see all my images even when not logged into Google. Can you not see the images, say, in my  ride report (https://yacf.co.uk/forum/index.php?topic=103026.0)?
Title: Re: host for photos in yacf posts
Post by: woollypigs on 07 May, 2017, 01:10:24 pm
Just found this tool, haven't tried it out yet.

https://www.labnol.org/internet/embed-google-photos-in-website/29194/

https://ctrlq.org/google/photos/

Well I have now - a test

(https://lh3.googleusercontent.com/afu6HCMGd2RJfzgHCGzhfOoPyohX8igto0wAI-hDGxdY8zPI0G518Oh2jpwwL4AJKCmHuos_5eTMe2eKoN59wr94lqQynTnDPouhmttV8B9xZmOTmTupxMvRTNrDXBzR43SImVo)


Update that works: in chrome, main browser and logged into google/yacf I can see this image and the first attempt further up. In firefox which never sees me logged into google/yacf, I can't see the first attempt but this one I can see. So too a WM with windows10.
Title: Re: host for photos in yacf posts
Post by: Mr Larrington on 07 May, 2017, 03:03:07 pm
I can see Mr Pigs' X-Files MOTW, but not his previous photo upthread,
Title: Re: host for photos in yacf posts
Post by: Kim on 07 May, 2017, 03:28:38 pm
I can see Mr Pigs' X-Files MOTW, but not his previous photo upthread,

AOL
Title: Re: host for photos in yacf posts
Post by: Basil on 07 May, 2017, 03:33:16 pm

I use photobucket, which is a bit shit, but does work.


Me too.  Yes shit .  Yes just works