Skip to content

150. Where to store downloadable images

February 17, 2014

So you create an app with custom images, and if someone else wants to use it, they need to download your image(s). I’ve already covered how to do this automatically the first time, here, but where should you put them on the internet?

The problem is that Codea needs to link directly to the image itself, not to some webpage with the image embedded in it. Many popular sites don’t allow this.


Get a shareable link from Dropbox, eg
(I replaced https with hxxps to prevent WordPress trying to actually load the image)


replace as shown below in blue…


and now you have a direct link that Codea can use.

(Thanks to Briarfox for this tip).


If you upload images to Flickr, you can view them in a webpage, but not on their own, which is useless for Codea. However, there is a way to get a direct link to an image. This may not work for long, as Flickr frequently changes their code.

First, view the image normally in Flickr. Then, depending on which browser you are using, view the page source (in Firefox, rightclick somewhere on the page – other than on an image). This should open up a new tab filled with HTML. Look for a URL containing “” and you can use this URL in Codea to download the image directly.

Google Drive

Google Drive also opens images inside a web page. There is a trick that makes Google download a file when it opens.

Drive links look like this, for an image (the part in red is the file ID):

Replace the “edit” on the end, with “export?format=png”, to produce this

and this should download automatically. However, the problem for Codea is that this is still a web page with HTML, and not just the image on its own, so it won’t work with http.request.

So I don’t know of a way to use Google Drive images with Codea, yet.


This site allows you to get direct links to images without any messing about, so I’ve been using that.

Other Sites

If you know of any others – and how to download images from them – please let me know.


From → Graphics

One Comment

Trackbacks & Pingbacks

  1. Index of posts | coolcodea

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: