thumbnails

Accessing thumbnails that don't exist

只愿长相守 提交于 2019-12-04 19:01:57
问题 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

Set Thumbnail image Content-Type

∥☆過路亽.° 提交于 2019-12-04 18:51:08
I need to set Content-Type for the thumbnail image. I have tried as shown below.But it is not working.Still, it stores as a stream. Azure function: index.json var Jimp = require("jimp"); module.exports = (context, myBlob) => { // Read image with Jimp Jimp.read(myBlob).then((image) => { // Manipulate image image .resize(200, Jimp.AUTO) .greyscale() .getBuffer(Jimp.MIME_JPEG, (error, stream) => { if (error) { context.log(`There was an error processing the image.`); context.done(error); } else { context.log(`Successfully processed the image`); stream.set("Content-Type", Jimp.MIME_JPEG); // here

PHP Thumbnails

匆匆过客 提交于 2019-12-04 18:32:42
I was looking at a way to dynamically create thumbnails using PHP and GD but everytime i select a large image maybe 10MegaPixels about 4-5MB it gives the error **images/Surabhi_Cow.jpgimages/tn/Surabhi_Cow.jpg Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 10368 bytes) in C:\Program Files\xampp\htdocs\MySite\Staff\test.php on line 51** Changing the memory_limit in php.ini to 60 does the trick but my host only allows the memory_limit to 32M. What other options do I have to generate thumbnails on the fly? I checked phpThumb() but don't really get it. So any other

Twitter Bootstrap thumbnail caption to the right

北城余情 提交于 2019-12-04 17:28:00
问题 How to make the caption of a Twitter Bootstrap thumbnail be placed to the right of the image instead of below? Preferably in CSS. So far I am just using existing tags as my css knowledge is very limited. <ul class="thumbnails"> <li class="span2"> <div class="thumbnail span4"> <div class="span2"> <img src="http://placehold.it/120x160" alt=""> </div> <div class="caption"> <h5>Thumbnail label </h5> <p>Cras justo odio, dapibus ac facilisis in, egestas eget. Eget metus</p> <p><a href="#" class=

Android Image Getter for Larger Images

一世执手 提交于 2019-12-04 16:26:46
I have used all the Standard Network related code for Getting Images of about 45KB to 75KB but all are failing these methods work fine for Files of about 3-5KB size of Images. How can I achieve Downloading Image of 45 - 75KB for displaying them on an ImageView in Android for my Network Operations the Things I have used are final URL url = new URL(urlString); final URLConnection conn = url.openConnection(); HttpURLConnection httpConn = (HttpURLConnection) conn; httpConn.setAllowUserInteraction(true); httpConn.setInstanceFollowRedirects(true); httpConn.setRequestMethod("GET"); httpConn.connect()

Replace an embed or iframe youtube video by an tumbnail + link to vídeo

不羁岁月 提交于 2019-12-04 15:58:05
I need an javascript that can be placed on header that recognizes an youtube embed or iframe player and replaces it by a tumbnail linked to the vídeo on youtube. The script should identifies an code like this ones: <object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/J4oJWUJpbLY?fs=1&hl=pt_BR&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/J4oJWUJpbLY?fs=1&hl=pt_BR&hd=1&color1=0x5d1719&color2=0xcd311b" type="application/x

create thumbnail from video in asp.net

妖精的绣舞 提交于 2019-12-04 15:31:26
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.FileName = Server.MapPath("~\\ffmpeg\\ffmpeg.exe"); thumbproc.StartInfo.Arguments = thumbargs; thumbproc

PHP/JS - Create thumbnails on the fly or store as files

ぐ巨炮叔叔 提交于 2019-12-04 15:21:05
For an image hosting web application: For my stored images, is it feasible to create thumbnails on the fly using PHP (or whatever), or should I save 1 or more different sized thumbnails to disk and just load those? Any help is appreciated. Save thumbnails to disk. Image processing takes a lot of resources and, depending on the size of the image, might exceed the default allowed memory limit for php. It is less of a concern if you have your own server with only your application running but it still takes a lot of cpu power and memory to resize images. If you're considering creating thumbnails

Video thumbnail

匆匆过客 提交于 2019-12-04 14:09:48
问题 I am working on a site that people can submit the video's link. Then I just embed it. However, I want to get the thumbnail of the videos without saving the videos in my server. So that when I list the vidoes, I can use the thumbnails instead of embedding all videos. My serve uses PHP. Assume the video is in SWF format. is there anything in the or tag that I can 'grap' the thumbnail? or in PHP, is there anything that I can remotely get the thumbnail (or a frame ) of the remote video? any idea?

How to preview any files inside a Java application?

我只是一个虾纸丫 提交于 2019-12-04 12:57:43
问题 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.