Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 .tif 图像的图像文件夹,当用户搜索图像时,图像必须是.png或.jpeg文件扩展名,以避免在显示.tif图像时浏览器不兼容。我怎样才能做到这一点?请注意,图像保存在目录中,而不是数据库中。
TIFF或“标记图像文件格式”是一种压缩很少或没有压缩的原始文件格式。PNG和JPEG都是压缩格式。
您将不得不找到一种方法来编写 PNG 和 JPEG 文件或安装一些 SDK 插件来执行此操作。
您不能只更改扩展名并将 TIF 显示为这些压缩格式之一。
为 WIKI 参考提供的链接。
希望有帮助。