Questions tagged [thumbnails]

Thumbnails are reduced-size versions of pictures, used to help in recognizing and organizing them, serving the same role for images as a normal text index does for words.

3149 questions
622
votes
23 answers

How do I resize an image using PIL and maintain its aspect ratio?

Is there an obvious way to do this that I'm missing? I'm just trying to make thumbnails.
saturdayplace
  • 8,370
  • 8
  • 35
  • 39
337
votes
26 answers

Get img thumbnails from Vimeo?

I want to get a thumbnail image for videos from Vimeo. When getting images from Youtube I just do like this: http://img.youtube.com/vi/HwP5NG-3e8I/2.jpg Any idea how to do for Vimeo? Here is same question, without any answer.
Johan
  • 18,814
  • 30
  • 70
  • 88
109
votes
6 answers

Create thumbnail image

I want to display thumbnail image in a gridview from file location. How to generate that of .jpeg file? I am using C# language with asp.net.
Red Swan
  • 15,157
  • 43
  • 156
  • 238
96
votes
1 answer

What is the difference for sample/resample/scale/resize/adaptive-resize/thumbnail operators in ImageMagick convert?

I found multiple ways to change the resolution of an image using convert: -sample -resample -scale -resize -adaptive-resize -thumbnail What's the difference of those? If I need to make various size large picture thumbnail with fixed aspect ratio…
est
  • 11,429
  • 14
  • 70
  • 118
96
votes
12 answers

Facebook Post Link Image

When someone posts a link on facebook, a script usually scans that link for any images, and displays a quick thumbnail next to the post. For certain URLs though (including mine), FB doesn't seem to pick up anything, despite their being a number of…
RudeBoyRock
84
votes
4 answers

Getting image dimensions using the JavaScript File API

I require to generate a thumbnail of an image in my web application. I make use of the HTML5 File API to generate the thumbnail. I made use of the examples from Read files in JavaScript to generate the thumbnails. I am successfully able to generate…
Abishek
  • 11,191
  • 19
  • 72
  • 111
70
votes
7 answers

Create thumbnail from video file via file input

I am attempting to create a thumbnail preview from a video file (mp4,3gp) from a form input type='file'. Many have said that this can be done server side only. I find this hard to believe since I just recently came across this Fiddle using HTML5…
ryan
  • 915
  • 2
  • 13
  • 25
63
votes
12 answers

Getting a thumbnail from a video url or data in iOS

I am trying to acquire a thumbnail (of the first frame) from a video taken from iphone 3GS camera so I can display it. How to do this?
Daniel
  • 22,363
  • 9
  • 64
  • 71
57
votes
7 answers

PIL: Thumbnail and end up with a square image

Calling image = Image.open(data) image.thumbnail((36,36), Image.NEAREST) will maintain the aspect ratio. But I need to end up displaying the image like this: Can I have a letterbox…
Paul Tarjan
  • 48,968
  • 59
  • 172
  • 213
53
votes
12 answers

How to get thumbnail for video in my /sdcard/Android/data/mypackage/files folder?

Query to MediaStore.Video.Media.EXTERNAL_CONTENT_URI returns only video in /sdcard/DCIM/100MEDIA But I want to get thumbnails for video in my /sdcard/Android/data/mypackage/files folder. Is it possible ? Here is part of my code: …
Vladimir Berezkin
  • 3,580
  • 4
  • 27
  • 33
51
votes
3 answers

Generate preview image from Video file?

Is there a way in PHP given a video file (.mov, .mp4) to generate a thumbnail image preview?
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
50
votes
5 answers

How do I generate circular thumbnails with PIL?

How do I generate circular image thumbnails using PIL? The space outside the circle should be transparent. Snippets would be highly appreciated, thank you in advance.
ohnoes
  • 5,542
  • 6
  • 34
  • 32
46
votes
5 answers

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

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…
Jared Updike
  • 7,165
  • 8
  • 46
  • 72
42
votes
8 answers

imagecreatefrompng() Makes a black background instead of transparent?

I make thumbnails using PHP and GD library but my code turn png transparency into a solid black color, Is there a solution to improve my code? this is my php thumbnail maker code: function cropImage($nw, $nh, $source, $stype, $dest) { $size =…
Emily
  • 905
  • 3
  • 10
  • 13
40
votes
9 answers

Creating a thumbnail from an uploaded image

I'm wanting to create a thumbnail from a user uploaded image so the image doesn't look squashed. But also would like a copy of the original image.. So I would like the original image to send the original image to my server and also create a thumb…
dave
  • 1,009
  • 5
  • 15
  • 26
1
2 3
99 100