thumbnails

List with images from code behind (ASP.NET C#) to image overview in ASPX [closed]

拈花ヽ惹草 提交于 2019-12-05 18:26:20
I am rather new to ASP and C#, and I would like to learn how I can solve the following two problems: In the Code Behind I have a list with images (from database). I would like to show these images on the ASPX page. I was wondering what is the best/easiest way to allow an ASPX page to access lists from the code behind. The tutorials about this subject are a bit confusing to me. The second question I have is about a nice JQuery gallery. Pretty much all the plugins I can find are some kind of slider, which is not what I am looking for. The ideal plugin should show all (thumbnail) images on a page

Using the PHP GD library to resize and save images is HELL

喜欢而已 提交于 2019-12-05 15:45:52
I'm writing a script that will upload a file from user input, resize it to a thumbnail and add the two new filenames to a database. However, I cannot for the life of me figure out how to get PHP to detect the image's MIME type and then give it to the header. Here is the code, I've put comments to try and make it as clear as possible: $picture = $_FILES['picture']['name']; /*original file location*/ $file = 'picture/'.$picture.''; /*save thumbnail location*/ $save = 'thumb/tn-'.$picture.''; /*append thumbnail filename with tn-*/ $thumb = 'tn-'.$picture.''; /*get original file size*/ list($width

Using Thumbnailator, can i make thumbnail with same height and width regardless the image size

落爺英雄遲暮 提交于 2019-12-05 15:39:22
In Thumbnailator , i am making thumbnails. If image size is 400*300 and if i do following thing, Thumbnails.of(new File("original.jpg")) .size(160, 160) .toFile(new File("thumbnail.jpg")); it create thumbnail of 160*120. What i want is if i upload 400*300 image, it will center zoom so that i will become 300*300 and then it will thumbnail. I gone through the documentation, Even i posted same thing over there in comment but no luck. coobird Sounds like a job for the [ sourceRegion ][1] method which can be used to specify the region from which the thumbnail should be produced: In your particular

how to display video thumbnails?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 14:23:16
i am trying to show my arraylist value in my tablayout. now i am successfully passed two values in my two tabhost it's working. i have three tabhost 2tab host working fine. so i am trying show my stored path value video thumb. how to show my stored path value to video thumb nail? i am trying to show but i am getting error error is: The type of the expression must be an array type but it resolved to ArrayList<String> line: imgVw.setImageBitmap(getImage(tabview.videoList[position])); full source code: public class video extends Activity { //set constants for MediaStore to query, and show videos

How do I use sorl-thumbnail? (django)

穿精又带淫゛_ 提交于 2019-12-05 11:58:13
I've been looking at the sorl-thumbnail's documentation, and I still can't figure out how to: 1. upload images to sorl-thumbnail. 2. selectively show images from sorl-thumbnail. (for example, load a specific image from sorl-thumbnail from a view and show it, with customized size, etc.) Could you give some specific examples on how to use this library in a django view? Thanks in advance : ) If you want greater flexibility you can generate the thumbnail right in the view. The following is straight from the sorl-thumbnail documentation : from sorl.thumbnail import get_thumbnail im = get_thumbnail

How do I generate website thumbnails without 3rd party tools?

家住魔仙堡 提交于 2019-12-05 09:12:20
Are there any gems out there for Rails 3.2.1 that generate website thumbnails? I see a lot of 3rd party solutions but I don't like the fact that they aren't hosted on my server. It's really important the app I'm building is as stable as possible and I think this is not a good solution in the long run. My ruby knowledge is fairly good, I think enough to use a gem and implement it, but definitely not good enough to write something like this from scratch if no gems exist. Thanks! three You could try dragonfly or carrierwave Well, here's the first thing that came up on Rubygems: thumbnailer . It

Grabbing First Frame of a Video - Thumbnail Resolution - iPhone

回眸只為那壹抹淺笑 提交于 2019-12-05 08:16:13
I want to display the (static) first frame of a video in my app as a preview. I have read through this thread and understand that I could use a thumbnail : Getting a thumbnail from a video url or data in iPhone SDK I have two questions : 1) What is the resolution of the thumbnail ? I am looking to make the preview a 4:3 format and wonder if the image will end up looking blurry if enlarged. 2) Does the resolution of the thumbnail differ for iPhone / iPad ? 3) Is there a better way to grab and display the first frame of a video ? Thank you. Nimit Parekh Following code may helping to you NSString

Dropzone createThumbnailFromUrl() issue

时间秒杀一切 提交于 2019-12-05 08:12:46
I need to add pre-existing image files to dropzone by using Laravel 5.4 . This is why I use createThumbnailFromUrl() function. But it does not generate images properly. Instead it shows them in blank way. I used that link ( jsfiddle ) for that purpose. I googled a lot, tried several ways, but it did not help: Below is my code: <script type="text/javascript" src='{{asset("js/dropzone/min/dropzone.min.js")}}'></script> <script type="text/javascript"> Dropzone.options.addImages = { paramName: "file", // The name that will be used to transfer the file addRemoveLinks: true, // The setting up of the

Laravel 5.6: Create image thumbnails

依然范特西╮ 提交于 2019-12-05 07:24:57
In my old PHP apps i used to run a function like the one bellow to create jpeg image thumbnails. function imageThumbanail() { $image_src = imagecreatefromjpeg('http://examplesite.com/images/sample-image.jpg'); $thumbnail_width = 180; //Desirable thumbnail width size 180px $image_width = imagesx($image_src); //Original image width size -> 1080px $image_height = imagesy($image_src); //Original image height size -> 1080px $thumbnail_height = floor( $image_height * ( $thumb_width / $image_width ) ); //Calculate the right thumbnail height depends on given thumbnail width $virtual_image =

Avoid images to be processed by the thumbnail service

旧巷老猫 提交于 2019-12-05 06:15:17
问题 I am building an application that downloads images from the web to the SD Card and then displays them conveniently. The application also generates thumbnails for those pictures. Problem is that those images and their generated thumbnails are indexed by the Media service and for instance appear in the gallery. Furthermore, that system service consumes lots of CPU when generating its own thumbnails. Is there a way to tell that system service that I don't want my pictures to appear in the