Created
March 16, 2018 02:46
-
-
Save kresnasatya/8f1678c39aabd52e1894b0d9239f29a1 to your computer and use it in GitHub Desktop.
Menarik gambar dari api dan mengkonversinya menggunakan cloudinary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pastikan anda telah mendaftarkan di cloudinary | |
// Dokumentasi tentang fetch remote images: https://cloudinary.com/documentation/fetch_remote_images | |
function cloudinaryJpg(thumbnail) { | |
return `https://res.cloudinary.com/{youraccountname}/image/fetch/c_scale,fl_force_strip.progressive,w_478/f_jpg/${thumbnail}` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment