寻找一个好的框架/界面来创建图像浏览器
如果这个问题太笼统,我很抱歉,因为这是我第一次使用 stackoverflow。 :)
基本上,我想编写一个图像浏览器,它可以抓取图像的目录树,将它们插入到数据库中,并分层显示它们。我希望它能够全屏运行,能够相当快地浏览大图像,并且在视图之间转换时具有一些细节,例如滑动和淡入淡出动画。
我最初开始使用 Adobe AIR 的 HTML/JS 界面 + jQuery,因为我已经熟悉 HTML 等并且需要访问本地文件系统。此时的问题是 AIR 非常慢,尤其是处理大图像时。我也想不出任何有效的方法来生成图像的缩略图(as3corelib 现在作为 SWC 分发,即使从中提取 SWF 后我也无法将其包含到页面中)。
所以,基本上,我只是在寻找一种方法来快速设置界面,生成缩略图,并快速且“平滑”地显示大图像(例如,使用动画等)。我不介意学习新界面,并且我相当精通 C/C++、Python、C#/VB.NET、Javascript 和 HTML/CSS。我更喜欢能够快速进行界面原型设计的东西,而不是从头开始编写大量界面内容(例如,我正在考虑 pygame,但在意识到我必须编写所有内容后放弃了它)我自己滚动浏览缩略图列表)。
预先感谢,并对措辞不当的问题表示歉意。 :\
My apologies if this question is too general, as this is my first time using stackoverflow. :)
Basically, I wanted to write an image browser that would crawl a directory tree for images, insert them into a DB, and display them hierarchically. I wanted it to run fullscreen, be fairly fast to browse through large images, and have some niceties like sliding and fading animations when transitioning between views.
I originally started using Adobe AIR's HTML/JS interface + jQuery since I'm already familiar with HTML, etc. and needed access to the local filesystem. The problem at this point is that AIR is painfully slow, especially with large images. I can't figure out any efficient way to generate thumbnails of the images either (as3corelib is being distributed as an SWC now, which I've been unable to include into the page even after extracting the SWF from it).
So, basically, I'm just looking for a way to rapidly set up an interface, generate thumbnails, and display large images quickly and "smoothly" (e.g. with animations, etc.) I don't mind learning a new interface, and I'm fairly proficient with C/C++, Python, C#/VB.NET, Javascript, and HTML/CSS. I'd prefer something which would allow rapid interface prototyping, rather than having to write a lot of the interface stuff from scratch (for example, I was considering pygame, but dropped it after realizing that I'd have to write all the stuff for scrolling through a list of thumbnails myself).
Thanks in advance, and sorry for the poorly-worded question. :\
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我个人喜欢 ASP.NET 和 jQuery。我做了类似的事情,我编写了代码来抓取目录并使用后端(ASP.NET)将数据输入到数据库中。然后,我使用 foreach 循环 (MVC) 或 Repeater Control(Web 表单)将记录吐出,并将元素附加到看起来很漂亮的 jQuery 库(有很多可供选择)
http://speckyboy.com/2009/06/03/15-amazing -jquery-image-galleryslideshow-plugins-and-tutorials/
Galleriffic 是我的最爱
I personally LOVE both ASP.NET and jQuery. I have done something similar, where I've written code to crawl a directory and input the data into the database using the backend (ASP.NET). Then I spit the records back out using either a foreach loop (MVC) or a Repeater Control (Web Forms) and attach the elements to a slick looking jQuery gallery (there's lots to choose from)
http://speckyboy.com/2009/06/03/15-amazing-jquery-image-galleryslideshow-plugins-and-tutorials/
Galleriffic is my favorite