A quick hack how to display an uploaded image in full quality with no compression artifacts:
-
Upload an image e.g. to a table and wait for Coda to ingest (process) it.
-
Copy the link to an image.
It’ll return something like this to you:
https://codaio.imgix.net/docs/<DOC_ID>/blobs/bl-<BLOB_ID>?auto=format%2Ccompress&fit=max
-
Replace
codaio.imgix.net
withcodahosted.io
and remove everything after the<BLOB_ID>
, i.e. remove the?auto=format...
part. -
Put the resulting URL into an
Image()
. -
Follow @CodaTricks — a mandatory step, otherwise the above trick won’t work
-
Enjoy!
In other news — I’ll be making an Edit Images pack for the Packathon. Initially I planned to use Jimp or any similar JS library that I could load into Packs SDK but it turned out I could just leverage the Imgix service Coda is already using internally, and with no added cost to them (cuz transformations are free). How cool is that!