V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
`; switch(displayFormat) { case 'text-only': html += `
${description}
`; break; case 'small-with-description': html += `
${campaign.img_small_cid ? `
` : ''}
${description}
`; break; case 'banner-only': html += `
`; break; case 'big-only': html += `
`; break; case 'big-with-description': html += `
`; html += `
${description}
`; break; case 'big-with-title-description-button': html += `
`; html += `
${description}
`; html += ``; break; default: html += `
${description}
`; } html += `` return html; } // Load campaign from emitter var xhr = new XMLHttpRequest(); xhr.open('GET', '/pro/emitter', true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onreadystatechange = function() { if (xhr.readyState === 4) { if (xhr.status === 200) { try { var campaign = JSON.parse(xhr.responseText); if (campaign && campaign.id) { var html = renderCampaign(campaign); document.getElementById('pro-campaign-container').innerHTML = html; } else { // No campaign to display, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; } } catch (e) { // Parse error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error parsing campaign data: ' + e.message); } } else { // HTTP error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error loading campaign: HTTP ' + xhr.status); } } }; xhr.send(); });
V2EX  ›  图片库  ›  介绍

V2EX.com/i

我们希望为你制作一款简单,可靠的图片存储工具。
  • 永久存储每一张图片的原始文件
  • 所有位于 i.v2ex.co 域名下的图片文件都永久支持外链
  • 外链的图片通过一个全球分布的 SSD 存储的 CDN 进行分发
  • 文件最大尺寸 6 MB,目前支持 PNG、JPG、GIF、WebP 格式
  • 图片会获得 IPFS 的 CIDv0 地址
  • 根据原始文件自动生成几张不同尺寸的缩略图
  • JPEG 照片中可能包含的 GPS 信息会在上传时被自动去掉
  • 用 iOS 设备拍摄的照片可能会带有某些浏览器无法支持的朝向信息(orientation),这个在上传时也会自动修复为更具有兼容性的格式
目前这个功能面向所有在 V2EX 充过值的会员开放。你可以上传的图片数量由你在 V2EX 的充值历史金额总数,或是你持有的 $V2EX 数量决定。随着我们的外部成本在未来随着摩尔定律的逐渐下降,你的 V2EX 可以上传的图片总数也会越来越多。

图片的永久存储和永久支持外链,及外链所调用的高速 CDN 都是会持续产生成本的,所以为了让我们的承诺持续靠谱,这个功能是一个收费功能。

V2EX 是一个遵守当地法律的网站,为了避免共同的麻烦,政治敏感、色情、暴力内容的图片请不要上传。

默认情况下,每一张上传到 V2EX 的图片会生成一个随机的 ID,只要你没有把这张图片外链到其他网站,这个 ID 就只有你知道。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3277 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 7ms · UTC 14:22 · PVG 22:22 · LAX 07:22 · JFK 10:22
♥ Do have faith in what you're doing.