thumbnail

Problem in creating thumbnail of png image !!

Hi, I have used the following php function to create thumbnail image. function createThumbs( $pathToImages, $pathToThumbs, $thumbWidth ) { $dir = opendir( $pathToImages ); while (false !== ($fname = readdir( $dir ))) { $info = pathinfo($pathToImages . $fname); if ( strtolower($info['extension']) == 'jpg' || strtolowe...

PHP crop image to fix width and height without losing dimension ratio

hi, im looking to create thumbnails that has 100px by 100px dimension. i've seen many articles explaining the methods but most end up having the width!=height if the dimension ratio is to be kept. for example, i have a 450px by 350px image. i would like to crop to 100px by 100px. if i were to keep the ratio, i would end up having 100px ...

Original ID of image through thumbnail ID in Android

How to obtain ID of an image by the ID of the thumbnail? And what about going from original image to thumbnail ID? Is that possible? I saw MINI_THUMB_MAGIC but it seems there is an issue with it. ...

Creating thumbnail from video - choosing the image to be used during preview

Hello, making a thumbnail from video using the picker is straight forward. However, when I press PLAY in the picker and then chose the video, my thumbnail is alway black. I was hoping it makes a screenshot - however this method only takes the first image of the video - and ONLY IF IT HASN'T BEEN PLAYED! How can I make a thumbnail at an...

Three20: Change the CGSize of a Thumbnail?

Hello all. I was wondering if there is a way to set the size of the Thumbnails in in the TTPhotoViewController from the three20 framework? So far I found out, the images need to be 75x75 px while I'd like them to be more of a rectangular shape i.e. 60x75 px.... Thanks in advance! ...

Can't get a video thumbnail in Android 2.0+

I tried to create a video thumbnail as described here. I also read the reference here. In my app I first let the user choose a video with: startActivityForResult(new Intent(Intent.ACTION_GET_CONTENT).setType("video/*"), ACTIVITY_PICKVIDEO); Then I determine the video ID with: fileID = Integer.parseInt(contentUri.getLastPathSegment()...

what kind of approach should I use to implement pdf thumbs ?

Hello I have to implement kind of the below design : In the above image I have kind of thumbnail of a pdfbook pages and there are two next and previous buttons to implement the functionality of paging . i am thinking of two options to do this 1) Do the designing with IB find the page thumbs and set them accordingly . 2) The second ...

Upload image, create its thumb then save

Let's say I uploaded and image. I can get its tmp dir then save it with move_uploaded_file() but what if I wanted to also create a thumb and save bothin some folder? I know how to save the uploaded image, but I don't know how to start manipulating an image and save it after creating a thumb ...

Is there open source audio feature extraction software avaliable?

I undertaking a personal project which involves the development of a system which will automatically generate audio thumbnail clips (about 30 seconds in length) from a full length track. In order to do this I want to look at the energy and pitch of the audio to try and correctly identify its major structural features. Is there any open...

How to get original image file while using MediaStore.Images.Thumbnails

I just load thumbnails(MINI_KIND) into GridView to show overview of local images of Camera.Click on it to show a bigger thumb(MICRO_KIND).And now I need to get the original image through MediaStore.Images.Thumbnails.IMAGE_ID(to upload the original file).Should I query again through MediaStore? like photoshop.com for android ...

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

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? ...

Imagecache with amfphp and flash multiple issues

Hello, I inherited a project with drupal and flash, and I'm pretty noobish on the topic so please don't bash me. What I'm stuck at is that I need to create multiple thumbnails for each uploaded image (5 version to be precise with different settings eg. 150w, 250w,..) I created the presets but I can't seem to understand how imagecache w...

Generate image thumbnails with watermarks on the fly in PHP

I'm looking for PHP class (solution) for generating image thumbnails with watermarks on the fly. Any idea ? ...

Passing a url as a variable into thumbalizr php

I am using the Thumbalizr API for capturing website screenshots. I am trying to pass a url from a variable into the script below where it currently says "www.google.com". When I try and do $url = "www.google.com"; and pass that to $image->request($url); it seems to fail and retrieves a screenshot but one that suggests the url was unrea...

How can I sort my different height same width thumbnail like that?

I have images with same width but different heights... I have seen that before but i ca't remember where i see... I want to sort my thumbnails like above. so let the fight begin :) ...

How to manage Images and Thumbnails ?

I wanna know how photos are managed on websites. Ex: A user uploads a Photo.. say which is 1024 * 768.. I have differnt size thumb nails on the website. 60 * 60 30 * 30 120 * 90 240 * 180 Since all the above images are not of the same aspec ratio. which is the best way to resize and crop images to suit my needs ? Note: Images wil...

In Django, how to get django-storages, boto and easy_thumbnail to work nicely?

I'm making a website where files are uploaded through the admin and this will then store them on Amazon S3. I'm using django-storages and boto for this, and it seems to be working just fine. Thing is, I'm used to use my easy_thumbnails (the new sorl.thumbnail) on the template side to create thumbnails on the fly. I prefer this approach,...

PHP: Image upload, thumbnails, specific crops

I've created a script which implements jCrop to crop an image before displaying it. In the CMS the client needs to be able to upload logos, which fit a specific size as determined by our designer. So I think I'm looking for something which can crop, resize and save out the original, a specific sized version and potentially other thumbna...

how to show youtube video thumbnails

hi guys, 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 emb...

Some code to edit thumbnail such as Facebook

I need some code to edit thumbnail such as Facebook-style. I can drag an area of image to select thumbnail. please give me some idea. Thanks. ...