thumbnails

Get images thumbnail file paths

£可爱£侵袭症+ 提交于 2019-12-30 09:38:52
问题 I'm trying to get the thumnail paths , not the bitmaps objects. When I query for these, some of the thumbnail paths are null for some reason. (I have 1028 thumbnail images in my device, the cursor length is indeed 1028, but still returning nulls) I know there are 1028 thumbnail images because I checked. Here's my code: String[] projection = {MediaStore.Images.Thumbnails._ID}; // Create the cursor pointing to the SDCard cursor = this.getContentResolver().query( MediaStore.Images.Thumbnails

Reading large images as thumbnails locally via HTML5 filereader

可紊 提交于 2019-12-30 01:38:08
问题 I am trying to load local images as thumbnails as explained here. My code is below. This works fine for small images. However, when you try load larger images (e.g. 4mb) there is a huge lag. Is there any way to optimize this? Thanks Html <input type="file" id="files" name="files[]" multiple /> <output id="list"></output> Javascript <script> function handleFileSelect(evt) { var files = evt.target.files; // FileList object // Loop through the FileList and render image files as thumbnails. for

Displaying thumbnail icons 128x128 pixels or larger in a grid in ListView

时间秒杀一切 提交于 2019-12-28 08:09:21
问题 Original Question (see Update below) I have a WinForms program that needs a decent scrollable icon control with large icons (128x128 or larger thumbnails, really) that can be clicked to hilight or double clicked to perform some action. Preferably there would be minimal wasted space (short filename captions might be needed below each icon; if the filename is too long I can add an ellipsis). (source: updike.org) I tried using a ListView with LargeIcon (default .View) and the results are

Create thumbnail image for PDF in Java

吃可爱长大的小学妹 提交于 2019-12-27 20:18:34
问题 I'm looking for a Java library that will can take a PDF and create a thumbnail image (PNG) from the first page. I've already looked at JPedal, but its insane licensing fee is completely prohibitive. I am using iText to manipulate PDF files at the moment, but I believe it doesn't do thumbnail generation. I can use something like Ghostscript on the command line, but I'm hoping to keep my project all-Java if possible. 回答1: PDF Renderer is a LGPL licensed pure-java library that makes this as

Create thumbnail image for PDF in Java

匆匆过客 提交于 2019-12-27 20:16:04
问题 I'm looking for a Java library that will can take a PDF and create a thumbnail image (PNG) from the first page. I've already looked at JPedal, but its insane licensing fee is completely prohibitive. I am using iText to manipulate PDF files at the moment, but I believe it doesn't do thumbnail generation. I can use something like Ghostscript on the command line, but I'm hoping to keep my project all-Java if possible. 回答1: PDF Renderer is a LGPL licensed pure-java library that makes this as

Create thumbnail image for PDF in Java

那年仲夏 提交于 2019-12-27 20:15:34
问题 I'm looking for a Java library that will can take a PDF and create a thumbnail image (PNG) from the first page. I've already looked at JPedal, but its insane licensing fee is completely prohibitive. I am using iText to manipulate PDF files at the moment, but I believe it doesn't do thumbnail generation. I can use something like Ghostscript on the command line, but I'm hoping to keep my project all-Java if possible. 回答1: PDF Renderer is a LGPL licensed pure-java library that makes this as

ASP.net swf game file preview (thumbnail)

℡╲_俬逩灬. 提交于 2019-12-25 17:44:24
问题 Scenario : I really in need for your help. I have multiple swf game files which I want to view them on the page as thumbnails and let the visitor click on it to play the game. Required: I want a tool that let make take a thumbnail from swf file, maybe the first frame of the file as image to view it. maybe if there another way to preview the files in asp.net pages without the need to the following way could be better. Bad news I have viewed all the possible answers on StackOverFlow and even on

Webfaction Django 1.4.1: easy_thumbnails 3.0b – “Couldn't get the thumbnail” error

跟風遠走 提交于 2019-12-25 13:54:17
问题 I use easy_thumbnails and it works fine on a development machine but in production I get errors like shown below, when I use {% thumbnail photo.image 300x170 %} templatetag. Though can directly browse http://sitename.com/media/uploads/2012/09/13/microsoft1.jpeg`. Also media set correctly and uploads are being placed at the right place, what is missing then what might be wrong? File "/home/imanhodjaev/lib/python2.7/django/template/base.py" in render 823. bit = self.render_node(node, context)

Create square 1:1 thumbnail in PHP

人走茶凉 提交于 2019-12-25 09:07:42
问题 How can I set this code to return images in 1:1 (square)? The purpose is to create a square (non stretched) thumbnail. I've tried making changes in the 'if section'. I get a square image but stretched. I want it to be cropped. define('THUMBNAIL_IMAGE_MAX_WIDTH', 150); define('THUMBNAIL_IMAGE_MAX_HEIGHT', 150); $source_image_path = {here the source filename}; $thumbnail_image_path = {here de thumb filename}; list($source_image_width, $source_image_height, $source_image_type) = getimagesize(

how to automatically copy an entire directory as thumbnails using phpthumb (or some other library)

狂风中的少年 提交于 2019-12-25 08:01:01
问题 I would like all images dropped in a directory to be copied into a separate directory as thumbnails that i can then view on my site. Right now i'm researching phpthumb, but have also downloaded wideimage and zen photo. Thanks if you can find an exact duplicate to this, near matches may also be helpful. Here is the script that only copies a single files: require_once '../ThumbLib.inc.php'; //include the thumb library $thumb = PhpThumbFactory::create('test.jpg'); //create a new image from the