thumbnails

create thumbnail from video in asp.net

若如初见. 提交于 2019-12-21 21:34:48
问题 I want to create thumbnail of an uploaded video file in my application for this I have used ffmpeg . The code is as follows: string thumbpath, thumbname; string thumbargs; string thumbre; thumbpath = Server.MapPath("~/thumbnails/"); thumbname = thumbpath + "Test" + ".png"; string f = Server.MapPath("~/testvideo.wmv"); thumbargs = "-i " + f + " -vcodec png -vframes 1 -ss 00:00:07 -s 150x150 " + thumbname; Process thumbproc = new Process(); thumbproc = new Process(); thumbproc.StartInfo

Youtube api get latest upload thumbnail

好久不见. 提交于 2019-12-21 20:09:14
问题 I am looking to returning the video-thumbnail of the latest uploaded video from my channel, and display it on my website. Anyone know how I can do a minimal connection trough api and get only the thumbnail? Thanks! -Tom REVISED!! Using Cakephp, this is how I did it (thanks dave for suggestions using zend); controller: App::import('Xml'); $channel = 'Blanktv'; $url = 'https://gdata.youtube.com/feeds/api/users/'.$channel.'/uploads?v=2&max-results=1&orderby=published'; $parsed_xml =& new XML(

CSS Clip and Absolute Positioning

我们两清 提交于 2019-12-21 15:20:11
问题 I'm using clip to create thumbnails for a gallery. Unfortunately, clip can only be used when an element is absolutely positioned. Applied equally to each img, this of course makes them all sit on each other while using one CSS style, something like this. .Thumbnails { position: absolute; height: 105px; clip: rect(50px 218px 155px 82px); } How can I then position them relative to each other? I just want basic rows. 回答1: I wouldn't recommend a pure css solution. Have you considered a library

Is it possibile get thumbail image from .doc or .xls document?

﹥>﹥吖頭↗ 提交于 2019-12-21 06:17:32
问题 I'm looking for create an image thumbnail from a MS doc/xls document's page, but I found nothing about it. For pdf documents I used Quarz framework, but I can't in this case. Some help? 回答1: A web view can be used for making a MS doc preview. I've tried once to do that with this piece of code. It works ... but ... the web view need to work in graphical thread, so when this operation is running your interface is slower. Maybe can you optimized that. Header @interface

Efficient Image Thumbnail Control for Python?

浪尽此生 提交于 2019-12-21 05:42:09
问题 What is the best choice for a Python GUI application to display large number of thumbnails, e.g. 10000 or more? For performance reasons such thumbnail control must support virtual items, i.e. request application for those thumbnails only which are currently visible to user. 回答1: In wxPython you can use wxGrid for this as it supports virtual mode and custom cell renderers. This is the minimal interface you have to implement for a wxGrid "data provider": class GridData(wx.grid.PyGridTableBase):

OpenCart show category images on homepage? [closed]

徘徊边缘 提交于 2019-12-21 05:09:20
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I'm using the most up to date version of open cart. What I'm wanting to do is show the image from the store category page on every page page, as I'm wanting to implement it into the menu. You can see what I mean

How to display a thumbnail in the hero unit with Bootstrap?

孤者浪人 提交于 2019-12-21 04:57:09
问题 On this page of the Bootstrap documentation, an example is provided demonstrating the "hero unit" which typically is placed at the top of a page and announces something important. I am trying to incorporate this into a page but I would like to also display a thumbnail beside it. Here is what I have: <div class="hero-unit"> <div class="thumbnail span3"> <img src="http://placehold.it/260x180" alt="Sample Image"> </div> <h1>Important Site Information</h1> <p>This paragraph contains important ...

In a TIFF create a Sub IFD with thumbnail (libtiff)

别等时光非礼了梦想. 提交于 2019-12-20 21:20:10
问题 I know thumbnail.c includes some code that creates a thumbnail and places it in a sub IDF, but there is a lot going on in that code (generating the thumbnail, applying a contrast curve, etc.) and I am having difficulty reproducing just writing a thumbnail. Google has not been any help either. My question is, after I have opened an output file and have a TIFF*, I have my thumbnail data all ready to go (as well as my main image data), how do I add them in such a way that the thumbnail is in a

Creating Thumbnail from Video - Improving Speed Performance - AVAsset - iPhone [duplicate]

最后都变了- 提交于 2019-12-20 15:20:37
问题 This question already has an answer here : Grabbing First Frame of a Video - Thumbnail Resolution - iPhone (1 answer) Closed 2 months ago . I am using code based on the code in the following thread to generate a video thumbnail : Getting a thumbnail from a video url or data in iPhone SDK My code is as follows : if (selectionType == kUserSelectedMedia) { NSURL * assetURL = [info objectForKey:UIImagePickerControllerReferenceURL]; AVURLAsset *asset=[[AVURLAsset alloc] initWithURL:assetURL

Square thumbnail from UIImagePickerViewController image

南笙酒味 提交于 2019-12-20 09:04:08
问题 In my app the user selects an image or take a picture using UIImagePickerViewController. Once the image was selected I want to display its thumbnail on a square UIImageView (90x90). I'm using Apple's code to create a thumbnail. The problem is the thumbnail is not squared, the function, after set kCGImageSourceThumbnailMaxPixelSize key to 90, seems only to resize the image's height, and as far as I know the kCGImageSourceThumbnailMaxPixelSize key should be responsible for setting the height