问题标签 [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.
python - Python 的高效图像缩略图控制?
Python GUI 应用程序显示大量缩略图(例如 10000 个或更多)的最佳选择是什么?出于性能原因,此类缩略图控制必须支持虚拟项目,即仅请求用户当前可见的那些缩略图的应用程序。
image - 是否有任何编解码器可以直接从图像文件中获取缩略图?
我使用 gdi+ 的 Image 类来解码图像文件。但是我发现如果我打开一个图像,然后使用 GetThumbnail() 方法,它真的很慢,尤其是对于高分辨率图像。
有什么方法可以更快地获取缩略图吗?
或者是否有任何专门为快速检索大多数图像格式的缩略图而设计的库。
非常感谢!
感谢经理和 PhiLho 的建议!!
我确实使用 thumbs.db 来获得更好的用户体验,并且在打开一次图像后,我将其缩略图流存储到我自己的数据库系统中以供进一步使用。
让我感到困惑的是如何更快地解码 Jpg、bmp、格式图像,解码器无法获得完整图像而只能获得缩略图。它与图像格式有关。
我只想知道:是否有任何现有的用 C++ 或 C 编写的编解码器库来完成这项任务。
python - 如何使用 PIL 调整图像大小并保持其纵横比?
有没有明显的方法可以做到这一点,我错过了?我只是想制作缩略图。
c++ - 如何像资源管理器一样在列表视图中显示缩略图?
您能否指出 C++ 代码示例以在列表视图中显示视频和图像缩略图?
model-view-controller - 在模型中创建图像缩略图?
我想知道在模型中包含图像缩略图信息是否有意义。就像指定要创建的缩略图大小一样。缩略图目录。等等。
此外,在使用缩略图和数据库时,是否建议将所有创建的缩略图作为新记录存储在数据库中。假设您有图像记录,然后您会创建一对多到缩略图记录吗?
c++ - 谁能给我一个使用 CreateHatchBrush 的样本
我想在我的软件中围绕缩略图绘制阴影。似乎 CreateHatchBrush 可以提供帮助,但我不知道如何使用它,任何人都可以提供 C++ 中的示例吗?非常感谢!
windows - 提取文件的图标/缩略图
我想从我的项目的 windows shell 中提取文件的图标/缩略图(不同大小)。我可以毫无问题地提取缩略图,但是在处理没有缩略图视图的文件时出现了问题。问题是我无法获得 Windows 资源管理器显示的位图。我得到黑色,其中 explorer 显示出漂亮的灰色阴影。
我已经上传了 1. 我为 html 文件获取的图像,2. windows explorer 显示的图像,3. http://www.fileflyer.com/view/seAOcBP的示例源代码
任何帮助在这里表示赞赏。
问候,
马诺伊
wpf - 用于创建视频缩略图的 WCF 服务
我正在尝试创建一个 WCF 服务,该服务利用服务器上的 WPF MediaPlayer 为用户上传的视频生成缩略图。我发现了很多关于如何渲染帧并将其保存到文件的 oif 信息。但问题是我需要绑定的关键事件 MediaOpened (实际上没有任何事件)- EDIT 触发。
有谁知道如果在 WCF 服务的上下文中使用 WPF MediaPlayer 事件是否不会触发?
谢谢迈克尔
php - 如何使用 PHP 获取网页的快照或缩略图?
我需要创建快照/缩略图/站点预览 a-site.com。
有一些网站可以满足我的需求。但是我不想使用外部服务,也不想依赖其他人来完成我的项目(如果他们关闭网站会发生什么?)
出于这个原因,我正在寻找一些项目来让我这样做。
任何想法?
winapi - Vista live thumbnail issue with SetWindowRgn
I know I am probably missing something, but I can't seem to get windows to show the live thumbnail preview correctly when using a window that has a region. When hitting the minimize button the preview will clip to the minimized size (160x25) rather than showing the full preview (like it does with other windows).
Few points to make:
1) The preview works fine in Windows Live Messenger, so Microsoft figured out a way to do it.
2) If I call SetWindowRgn only before a window is visible, it works fine (so its not a fault of the DWM not knowing how to deal with regioned windows.) I can call SetWindowRgn many times before the window is visible and it works great.
3) I need to set the window region after I show the window in case of a resize. So a fix to just set it before will not work.
4) Even when using the default window procedure, the bug still happens. So it is not a fault of processing a message incorrectly (but could be a fault of 'not processing' one :) )
5) When minimizing by clicking the taskbar button (instead of the minimize button in the window), the preview normally works fine (even after setting the region when visible). Again proving that it does not how to deal with the preview.
The bug happens if I set a region after I have shown the window. Code to follow: