thumbnails

Generating thumbnail from video - ios7

∥☆過路亽.° 提交于 2019-12-03 15:35:58
I am using this for reference: Getting thumbnail from a video url or data in IPhone SDK The method is using the MPMoviePlayerController class instead of the AVFoundation, and I think I want to use that as well because the people said that MPMoviePlayer way is faster than the AVFoundation way. The problem is, the method used to create the thumbnails, [player thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame] is deprecated in iOS 7.0. By looking at the apple docs, the remaining supported ways to create thumbnails are by the methods (void)requestThumbnailImagesAtTimes:(NSArray

generate image (e.g. jpg) of a web page?

青春壹個敷衍的年華 提交于 2019-12-03 15:26:25
问题 I want to create an image what a web page looks like, e.g. create a small thumbnail of the html + images. it does not have to be perfect (e.g. flash /javascript rendering). I will call use the code on linux, ideally would be some java library, but a command line tool would be cool as well. any ideas? 回答1: Try CutyCapt, a command-line utility. It uses Webkit for rendering and outputs in various formats (SVG, PNG, etc.). 回答2: you can get it nearly perfect, and cross platform too, by using a

OpenCart show category images on homepage? [closed]

人盡茶涼 提交于 2019-12-03 15:02:40
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 . 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 here: http://www.tomrawcliffe.com/portfolio/strings-r-us/ In the cetegory.tpl file I found: <?php if ($thumb) { ?> <div

Stretch, resize, or thumbnail an image using Perl

大城市里の小女人 提交于 2019-12-03 12:55:27
问题 How can I stretch or resize an image (of any format) using a Perl script? 回答1: I'd recommend Image::Imlib2... if you can install imlib2 on your machine See documentation: Image::Imlib2 use Image::Imlib2; # load image from file my $image = Image::Imlib2->load("in.png"); # get some info if you want my $width = $image->width; my $height = $image->height; # scale the image down to $x and $y # you can set $x or $y to zero and it will maintain aspect ratio my $image2 = $image->create_scaled_image(

Accessing thumbnails that don't exist

旧时模样 提交于 2019-12-03 11:33:23
I have made an application that presents you a list of files in your computer. Whenever you click any item in the list, a small PictureBox next to it should show the thumbnail of the corresponding file. I am using C# on Windows 7. To obtain the thumbnail, I've recurred to a method posted in a different question. First, I reference the Windows API Code pack. Then, I use the following code: ShellFile shellFile = ShellFile.FromFilePath(fullPathToFile); myPictureBox.Image = shellFile.Thumbnail.LargeBitmap; This doesn't always work. Sometimes, the thumbnail shown is merely the 'default application'

Can't figure out how to use Bootstrap thumbnail component

半腔热情 提交于 2019-12-03 11:12:57
I'm trying to use Bootstrap's thumbnail component to display a list of product categories with thumbnail images. I want users to click the thumbnails to go to the category. The documentation on the Bootstrap website provides this basic markup: <ul class="thumbnails"> <li class="span4"> <a href="#" class="thumbnail"> <img data-src="holder.js/300x200" alt=""> </a> </li> ... </ul> I've Googled for information about holder.js, found the official holder.js page, downloaded the zip version, put the files in my site's js folder and linked to the holder.js file with a script tag in my HTML. But how

how to show youtube video thumbnails

╄→гoц情女王★ 提交于 2019-12-03 10:09:11
问题 my site lets users upload the youtube video codes. I am trying to make playlist by showing the thumbnails of the uploaded videos and play the respective video after clicking on specific thumbnail. i would like to know the method of getting the caption and the thumbnail pictures of those videos which has been uploaded using embed code of youtube? Edit: To make question more clear, my users uploads code like one given below: <object width="640" height="385"><param name="movie" value="http://www

Get Vimeo thumbnail for video using jQuery

╄→尐↘猪︶ㄣ 提交于 2019-12-03 09:55:46
问题 I've found similar questions but none of the answers show clearly and easily how to get a thumbnail for a vimeo video using jQuery and JSON. If anyone can help that would be great, here is what I've got but it shows nothing at the moment. var vimeoVideoID = '17631561'; var videoCallback = 'showThumb'; $.getJSON('http://www.vimeo.com/api/v2/video/' + vimeoVideoID + '.json?callback=' + videoCallback, function(data){ $(".thumbs").attr('src',data[0].thumbnail_large); }); Thanks in advance. 回答1: I

Bootstrap 3: How to create responsive, square .thumbnail divs

爷,独闯天下 提交于 2019-12-03 08:27:55
I have created a grid of images using Bootstrap 3's .thumbnail class. Everything seems to be working great with regards to the images resizing, and the columns changing depending on the window size. The only problem is the images are all different sizes, and both portrait/landscape orientation. This causes awkward breaks and "pile-ups" with the thumbnail divs… I was hoping to find a way to create a grid of SQUARE responsive divs using the .thumbnail class. So in other words, the width determined by Bootstrap would be mirrored in the div's height. E.g. the thumbnail image is scaled to 220px so

How to preview any files inside a Java application?

与世无争的帅哥 提交于 2019-12-03 08:04:10
I'm using a JTree to browse the content of a folder and I want that when a user click on a file, the software shows a preview of it (a screenshot of its first page). The files are mostly Office documents and PDF. I manage to do it for PDF file using a module downloaded from Sun, but I'd like to know if there is a way to do it using any software (JARs preferably) or even the built-in Windows API. I was thinking of converting the file to PDF then do a preview of this PDF but this isn't optimal. Any ideas ? I've got the similar problem and the best I found after couple of days of googling is