thumbnails

Display pdf from the weburl iphone sdk

不打扰是莪最后的温柔 提交于 2019-12-20 05:41:56
问题 I am working on one project I want to display the pdf which is on the website, I have the url of the pdf any idea how I can do it. Also I want to create a thumbnail of the pdf which is on the website. 回答1: you could display a pdf in your device. Passing the url to UIWebView directly. UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 360, 420)]; NSURL *targetURL = [NSURL URLWithString:@"http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIWebView_Class

How to use thumb generator inside PHP script

痴心易碎 提交于 2019-12-20 04:52:31
问题 I'm trying to use this thumbnail generator, but as you can see you have to go through this link to create an image thumb. This is maybe a dumb question, but how do I get it work inside a php script that saves some variables to database? I tried to include header("Location: http://www.zubrag.com/thumb.php?src=http://www.test.com/test.jpg&dest=thumb.jpg&x=100&y=50"); but it doesn't work. I bet there's really easy solution but I can't find it. 回答1: I really can't see your problem... Do you want

Trying to generate proportionally cropped thumbnails at a fixed width/height with PHP GD

空扰寡人 提交于 2019-12-20 03:49:07
问题 I'm trying to create a Thumbnail Generator in PHP with GD that will take an image and reduce it to a fixed width/height. The square it takes from the original image (based on my fixed width/height) will come from the center of the image to give a proportionally correct thumbnail. I'll try to demonstrate that confusing sentence with some nice ASCII :} LANDSCAPE EXAMPLE: XXXXXXXXXXXXXXXX XXXXOOOOOOOOXXXX XXXXOOOOOOOOXXXX XXXXOOOOOOOOXXXX XXXXOOOOOOOOXXXX XXXXXXXXXXXXXXXX XXXXXXXX XXXXXXXX

Image resizing on the fly in asp.net

拟墨画扇 提交于 2019-12-19 10:38:10
问题 For simplicity lets say that I have a web page that needs to display thumbnails of images. The images locations are stored in a database(the images are stored on Amazon S3). Is it possible to have my web server scale down the large image before it is delivered to the client? This way I don't have to store thumbnails of every image and the client can download a smaller file. 回答1: Sure, no problem. There's plenty of resources on the web that show how to dish up an image from a database. So I

Create a thumbnail and then convert to byte array

谁都会走 提交于 2019-12-19 06:37:30
问题 I'm having a heck of a time with creating thumbnails and then converting them into a byte array. I've tried three methods, and all 3 times I get an error. The first was using Bitmap.GetThumbnailImage, which I have used in the past and then saved directly into Response.OutputStream The second was using System.Drawing.Graphics with DrawImage(). Still no go. The third was just to create a new bitmap, pass in the old bitmap, and set the new size. Same error. Value cannot be null. Parameter name:

Thumbnail image of Silverlight video

假装没事ソ 提交于 2019-12-19 04:54:05
问题 For the popular video player, like sl2videoplayer, http://www.codeplex.com/sl2videoplayer, my question is how is the thumbnail image of Siverlight video is displayed before we click play (in the scenario of non-autoplay). thanks in advance, George 回答1: the MediaElement that the Video Player uses will show a thumbnail image of the frame at the current position. Otherwise, tools like Expression Encoder create thumbnail images (JPEGs or PNGs) that will be used for the video thumbnails and

asp.net version of timthumb php class

爷,独闯天下 提交于 2019-12-19 03:39:11
问题 Anyone know of a ASP.Net version of the famous PHP class "timthumb"? Just need a script which will work in the same line of "timthumb" and produce square or ratio based thumbnails with good quality for any sized images. Here is the link to the php class: http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/ 回答1: I wrote this up just for you :) ... I tested it by trying all of the cases in http://www.binarymoon.co.uk/demo/timthumb-basic/ and comparing it visually side by side with

Video thumbnail arrayadopter is slow on scroll

余生长醉 提交于 2019-12-19 03:24:24
问题 I have created an adopter to display images thumbnail of video form the specific folder but when I scroll it lags a little but why is that? Below is the code: Main activity class public class TestvideolistingActivity extends ListActivity { String filename = null; String filePath = null; String dirNameSlash = "/videotest/"; String dirName = "videotest"; String path = Environment.getExternalStorageDirectory() + dirNameSlash ; String[] values; String deleteFile ; @Override public void onCreate

PDF to image creation in ios

岁酱吖の 提交于 2019-12-18 18:23:11
问题 Hi Everyone I am trying to create PNG(thumbnail) images from the pdf for my app for that i used couple of answers from the stackoverflow below code is i am using `- -(void)pdfToImageConverter{ NSURL* pdfFileUrl = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"ebook" ofType:@"pdf"]]; CGPDFDocumentRef pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfFileUrl); CGPDFPageRef page; CGRect aRect = CGRectMake(0, 0, 100, 200); // thumbnail size NSUInteger totalNum =

Alternative to ffmpeg for dynamically creating video thumbnails

我只是一个虾纸丫 提交于 2019-12-18 17:06:56
问题 The server hosting my website doesn't have ffmpeg and I am not allowed to install any additional extensions. Is there any other way I can make video thumbnails dynamically? Perhaps some kind of web service, where I pass the video file and as a result I get a picture file. I'm using php, by the way. 回答1: Using external service won't be feasible, since even if you find one, you'll have to PUSH whole video to it and get the thumbnail results back. I recommend you that you host your videos