You are here

Displaying images

Page 1 of 3

Re: Displaying images

PostPosted: Mon Jun 12, 2017 5:38 pm
by CS70
By any chance, does this work?


Image

Re: Displaying images

PostPosted: Mon Jun 12, 2017 6:04 pm
by Hugh Robjohns
Yes. I can see a four blokes and three geeetars... ;-)

H

Re: Displaying images

PostPosted: Mon Jun 12, 2017 6:14 pm
by CS70
Hugh Robjohns wrote:Yes. I can see a four blokes and three geeetars... ;-)

H

Haha, yours truly being one of the blokes, from a band photoshoot couple weeks back.
Getting older, darn. :D

The trick is is to obtain the regular "Dropbox link" (not the "Public link") and change it to tell the system to download it - that is, from ?dl=0 to ?dl=1

So the link I get for the picture above is

https://www.dropbox.com/s/cfkw38w307p6t ... a.jpg?dl=0

and I change to

https://www.dropbox.com/s/cfkw38w307p6t ... 3a.jpg?dl=1

The pic is still in my public folder but now that folder is like any other. However, this being a regular share link, it should hopefully be stable.

Re: Displaying images

PostPosted: Mon Jun 12, 2017 6:30 pm
by desmond
Thanks - yes, I've seen the dl parameter trick before, interesting that it seems to be working since they turned the html rendering off some weeks back.

I don't know how long it will last but it seems it's worth experimenting with in the meantime - thanks for this.

Re: Displaying images

PostPosted: Mon Jun 12, 2017 7:59 pm
by CS70
desmond wrote:Thanks - yes, I've seen the dl parameter trick before, interesting that it seems to be working since they turned the html rendering off some weeks back.

I don't know how long it will last but it seems it's worth experimenting with in the meantime - thanks for this.

My guess is that it doesn't produce HTML (that would be the download=0 switch) but simply redirects or streams the content, with the HTML wrapper produced by HTTP client (if so it decides). If you use the download=1 version in Chrome, it downloads the file just like for any file stream.

For this specific request I can see the HTTP handler on the server is using the Location HTTP header to redirect the client to an actual content location (calling the same handler, the second time it knows the file is really there so streams it).

The SOS site client code seems to be happy to recognize the jpeg stream and create the HTML wrapper instead.

These links should be pretty solid as if one needs to share a link the server _must_ allow download the content at some point (that's unlike the public folder, which was deprecated long time ago). Of course dont know for sure since I don't have the Dropbox http handler code.

In a middle of a mixing section (damn bass line need attention) so can't really dig much but fun to look at this stuff in the breaks.

Re: Displaying images

PostPosted: Mon Jun 12, 2017 10:20 pm
by ef37a
Oh! FFS!
I always had trouble posting pictures into forums (except those that allow attachments) but now it seems I have to be a *&^g programmer to do it!

I had Dropbox for a while to send files to my son in France when they are too big to attach. But I found it very intrusive and kept the CPU running all the time. Now I just post him a USB stick! In theory he dumps the data and sends it back...Ha! Kids!

Dave.

Re: Displaying images

PostPosted: Mon Jun 12, 2017 10:36 pm
by desmond
ef37a wrote:I had Dropbox for a while to send files to my son in France when they are too big to attach. But I found it very intrusive and kept the CPU running all the time.

I don't see that behaviour here, but I don't have the Dropbox client running all the time anyway, I just run it when I want running.

You don't have to use it at all, just use the website to upload and download if you don't need the syncing features...

Re: Displaying images

PostPosted: Tue Jun 13, 2017 1:00 am
by Dynamic Mike
Hugh Robjohns wrote:Yes. I can see a four blokes and three geeetars... ;-)

H

I can see five blokes and four geetars.... :lol:

Re: Displaying images

PostPosted: Tue Jun 13, 2017 5:58 am
by ef37a
desmond wrote:
ef37a wrote:I had Dropbox for a while to send files to my son in France when they are too big to attach. But I found it very intrusive and kept the CPU running all the time.

I don't see that behaviour here, but I don't have the Dropbox client running all the time anyway, I just run it when I want running.

You don't have to use it at all, just use the website to upload and download if you don't need the syncing features...

Well, #If there's a wrong way to do it# ! In any case, son often only has internet access in cafés and my 0.8M uplink speed makes the whole exercise a bit impractical, I'll keep buying sticks.
BTW, a few weeks ago Sainsburys were selling a Scandisc drive that doubled for USB 3.0 and micro USB for tablets. 32G for £11.00. Mistake? Sent son one and I had one. Within the week they had gone up to £30.

Dave.

Re: Displaying images

PostPosted: Tue Jun 13, 2017 7:29 am
by CS70
Dynamic Mike wrote:
Hugh Robjohns wrote:Yes. I can see a four blokes and three geeetars... ;-)

H

I can see five blokes and four geetars.... :lol:

Well spotted! :D

Re: Displaying images

PostPosted: Tue Jun 13, 2017 6:40 pm
by Folderol
CS70 wrote:
Dynamic Mike wrote:
Hugh Robjohns wrote:Yes. I can see a four blokes and three geeetars... ;-)

H

I can see five blokes and four geetars.... :lol:

Well spotted! :D
Hmm. I didn't see any spots :wave:

Re: Displaying images

PostPosted: Wed Jun 14, 2017 9:09 pm
by ef37a

Re: Displaying images

PostPosted: Wed Jun 14, 2017 9:52 pm
by blinddrew
No dice.
Well, not in the thread, but the link works.

Re: Displaying images

PostPosted: Thu Jun 15, 2017 6:57 am
by ef37a
blinddrew wrote:No dice.
Well, not in the thread, but the link works.

Yes, my result as well so, if you have an image already in the public domain we can link to it. That will do 95% of the time ?

Dave.

Re: Displaying images

PostPosted: Thu Jun 15, 2017 8:38 pm
by Martin Walker
Image

I just used the above link, but posted it between the SOS Forums Img tags


Martin