thumbnails

Take a thumbnail from a quicktime (movie) file

为君一笑 提交于 2019-12-07 00:45:23
问题 Does someone know if it's even possible (in PHP) to take a frame/thumbnail from a quicktime movie on the server? Something like the usual GD thumbnail generation, but for .mov files. note: I'm using dreamhost, so I don't have more than web-panel access to the server. 回答1: Dreamhost provides a shared ffmpeg binary in /usr/bin/ffmpeg, so you should definitely be able to call ffmpeg from php by using the system() or shell_exec() functions. The Dreamhost wiki has also an entry providing

C# Showing Buttons on taskbar thumbnails

情到浓时终转凉″ 提交于 2019-12-06 20:18:42
问题 In WMP, I have been shown buttons on the taskbar thumbnail. How can I make them for my winforms app in C#? 回答1: The WindowsAPICodePack contains a control called ThumbnailToolBarButton that you can use to get this functionality going. You'll need to make sure you have icons for each of the buttons (as I don't believe you can put text on them), and then it should be a simple matter of creating new controls and adding relevant event handlers. Sourced from here. 回答2: XAML <Window.TaskbarItemInfo>

Image Thumbnails ASP.NET

a 夏天 提交于 2019-12-06 16:11:29
I'm trying to genererate thumbnails from image files stored in a folder under the website root, I am currently using the built in capebilites in .NET to dynamically generate the thumbnails but the quality gets quite bad and since its an webshop thats a real problem my question is if there is any good (open source?) frameworks that can help me hanlde the image thumbnail creation and rezise and possible help with image file size compression during upload? I've looked but havent found any yet? Thanks in advance. I've written some code you could use. Please don't sell it ;) This is the code: /* *

Reading a file created by the media capture plugin in Cordova - Creating Thumbnails

╄→гoц情女王★ 提交于 2019-12-06 13:16:55
问题 Big picture here is that I'm trying to get a photo gallery working for a large number of photos. Currently I'm using the raw URL of the images as gallery thumbnails, which is incredibly slow and crashes older devices quickly. I'd like to create a thumbnail of each photo that is taken with my app's camera and store these either locally or on a backend database. However, I haven't found a good solution. I tried the thumbnailer plugin here but my build failed after installation. I think this

How to get full size picture and thumbnail from Camera in the same intent

試著忘記壹切 提交于 2019-12-06 13:03:04
问题 I've been needing to get a solution for this problem. I've already searched and tested many solutions from this community but anyone was fit for helping me. I have two activities, the first one takes a picture and sends it to another which has an ImageView to receive that (until here i'm getting problems) and a query to insert the file path in the database (the code which do this last part is well). I guess its better for the View load an Image Low Resolution as a Thumbnail. Therefore, to

How to thumbnail faster in c#

[亡魂溺海] 提交于 2019-12-06 12:06:45
I'm trying to thumb an image as fast as possible regardless of the usage of resources to be used in my ImageList and listview and this is currently how i'm doing it but it seems to be slow: public Image toThumbs(string file, int width, int height) { image = null; aspectRatio = 1; fullSizeImg = null; try { fullSizeImg = Image.FromFile(file); float w = fullSizeImg.Width; float h = fullSizeImg.Height; aspectRatio = w / h; int xp = width; int yp = height; if (fullSizeImg.Width > width && fullSizeImg.Height > height) { if ((float)xp / yp > aspectRatio) { xp = (int)(yp * aspectRatio); } else { yp =

How to create a custom gallery having images of a particular folder on SD card?

冷暖自知 提交于 2019-12-06 12:03:20
I have seen the API demos of android (/ApiDemos/src/com/example/android/apis/view/Gallery1.java) , but they take images from the res folder within the project. I want to create a gallery of the images which are put up in the folder: /mnt/sdcard/Android/data/com.myapp/files/Pictures/ All i could come up was this code, which, i suppose, displays all images. public class ExistingPicGallery extends Activity { private Cursor cursor; private int columnIndex; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gallery1); Gallery g

Choosing between Imagemagick & GD for thumbnail creation

≯℡__Kan透↙ 提交于 2019-12-06 11:28:11
I'm going to write a function for thumbnail creation. I can use both Imagemagick & GD Library methods. Which method creates better thumbnails and is faster and better for server (load, ...)? Thanks $im = imagecreatefromjpeg('photo.jpg'); $ox = imagesx($im); $oy = imagesy($im); $nx = 320; $ny = 240; $nm = imagecreatetruecolor($nx, $ny); imagecopyresized($nm,$im,0,0,0,0,$nx,$ny,$ox,$oy); imagejpeg($nm, 't_photo.jpg'); VS exec('convert photo.jpg -resize 320x240 t_photo.jpg'); What do you think? Also every good thumbnail should be sharpened a bit... exec('convert photo.jpg -resize 320x240 -unsharp

Thumbnail generation with Ghostscript rotates my device size definition for landscape pdf pages

三世轮回 提交于 2019-12-06 11:22:12
I want to use GS to generate thumbnails from pdf files. The thumbnail must fit a 90x120 pixel rectangle The image should not be rotated The image should be resized to fit the rectangle with keeping aspect ratio I use the following command: gswin32 -dPDFFitPage -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 -dDEVICEWIDTH=90 -dDEVICEHEIGHT=120 -dORIENT1=true -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=output.%d.jpg input.pdf Result: If I use some PDF with portrait pages like this example , which you can download, then the

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

纵然是瞬间 提交于 2019-12-06 11:19:53
问题 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. 回答1: 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