问题标签 [thumbnails]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2053 浏览

c++ - 使用 QItemDelegate 显示图像缩略图

QItemDelegate使用 QT4在视图中显示图像缩略图的最佳方式是什么?

pixmaps具体来说,当从非常大的图像文件(> 500MB)生成时,如何阻止项目委托?

任何人都可以链接到实现此目的的一些示例代码吗?再说一次,也许这不是寻找 Qt 特定代码的地方。

0 投票
6 回答
26463 浏览

asp.net - 使用 ASP.NET 创建缩略图的“最佳”方法是什么?

故事:用户上传将添加到照片库的图像。作为上传过程的一部分,我们需要 A) 将图像存储在 Web 服务器的硬盘驱动器上,并且 B) 将图像的缩略图存储在 Web 服务器的硬盘驱动器上。

这里的“最佳”定义为

  • 相对容易实施、理解和维护
  • 生成质量合理的缩略图

性能和高质量的缩略图是次要的。

0 投票
3 回答
3329 浏览

image - 创建网页缩略图的最佳方法是什么?

是否有一些合理的跨平台方法来创建给定 URL 的缩略图?我知道有缩略图网络服务可以做到这一点,但我想要一个软件或库可以在本地做到这一点。我想在 Linux 中我总是可以使用无头 X 服务器生成浏览器窗口,但是 Windows 或 OS X 呢?

0 投票
1 回答
3068 浏览

c# - 生成带有白色边框的缩略图

我需要从一组需要有一个小的白色边框的 jpg 生成缩略图,以便它们在地图上显示时看起来像“照片”。自己获取缩略图很容易,但我不知道如何获取边框。

0 投票
5 回答
8229 浏览

php - PHP/JS - 即时创建缩略图或存储为文件

对于图像托管 Web 应用程序:

对于我存储的图像,使用 PHP(或其他)动态创建缩略图是否可行,或者我应该将 1 个或多个不同大小的缩略图保存到磁盘并加载它们?

任何帮助表示赞赏。

0 投票
4 回答
808 浏览

ajax - AJAX 缩略图

有谁知道任何免费框架可以帮助您为网页创建缩略​​图,单击时,原始图像会加载到页面顶部(类似模式),而不是打开单独的页面。谢谢!

0 投票
1 回答
3315 浏览

com - 如何为 Windows Vista 编写有效的 IThumbnailProvider

我已经按照 MSDN 上指定的接口编写了缩略图提供程序。但是,我一直无法弄清楚如何以 Vista 实际调用它的方式注册它。有没有人找到为 Vista 工作的缩略图提供商?示例代码或链接将特别有用。

0 投票
4 回答
13059 浏览

java - 用于在服务器端生成网页缩略图的开源 Java 库

我正在寻找一个开源 Java 库来为给定的 URL 生成缩略图。我需要捆绑此功能,而不是调用外部服务,例如Amazonwebsnapr

这篇文章中提到了http://www.webrenderer.com/ :服务器生成的网页截图,但它是一个商业解决方案。

我希望有一个基于 Java 的解决方案,但可能需要考虑执行诸如khtml2png 之类的外部进程,或集成诸如html2ps之类的东西。

有什么建议么?

0 投票
2 回答
2972 浏览

asp.net - Simple way to grab thumbnail of FLV in ASP.NET without changing permissions on server?

I'm looking for a simple way to grab thumbnails of FLVs in ASP.NET, without having to change any permissions/settings on the server. Ideally, nothing is installed on the server machine, but if necessary, small tools such as FFmpeg are fine.

I've tried FFmpeg using the command-line tool with Process.Start, but the same command that works in a Windows Forms application and from the command prompt does not work in ASP.NET (presumably because of permissions).

I've also tried using TAO.FFmpeg, and it seems to be working most of the time, but fails randomly, and does not start working again until the machine is restarted. Even when I use the sample code (decoder.cs), it sometimes fails when I try to open multiple videos in a single request.

If this isn't possible in a clean/straightforward way, I'm open to other suggestions.

0 投票
2 回答
1022 浏览

vb.net - 在 .NET 中“正方形”图像的最佳方法是什么?

我需要为一堆 jpeg(200,000+)生成缩略图,但我想确保我所有的拇指都具有相同的高度和宽度。但是,我不想改变图像的比例,所以我需要在较短的维度上添加空白空间以“对齐”。空白区域的背景颜色是可变的。

这是我用来生成拇指的代码片段。进行平方的最佳方法是什么?