SOTK

By Drajad 22 Jan 2025, 10:40:59 WIB
Preview & Thumbnail Google Drive

Preview & Thumbnail Google Drive

Contoh ini menampilkan thumbnail (gambar kecil) yang bisa diklik untuk membuka preview (viewer Google Drive). Ubah FILE_ID dengan ID file Drive Anda.

Drive thumbnail
ID file: 1VqcihP2v1cs9w8jB_cEGwid1MVD6Smbm
Jika file tidak muncul: pastikan file di Google Drive bersifat Anyone with the link - Viewer.

Kode HTML yang bisa Anda salin

Gunakan salah satu: thumbnail (img) atau embed (iframe preview).

<!-- Thumbnail sederhana -->
<a href="https://drive.google.com/file/d/1VqcihP2v1cs9w8jB_cEGwid1MVD6Smbm/view?usp=sharing" target="_blank" rel="noopener noreferrer">
  <img src="https://drive.google.com/uc?export=view&id=1VqcihP2v1cs9w8jB_cEGwid1MVD6Smbm" alt="thumbnail" style="width:260px;height:160px;object-fit:cover;border-radius:8px;border:1px solid #e6e6e9;"/>
</a>

<!-- Embed preview (baik untuk PDF / image / video) -->
<iframe src="https://drive.google.com/file/d/1VqcihP2v1cs9w8jB_cEGwid1MVD6Smbm/preview" width="100%" height="600" frameborder="0"></iframe>