thumbnails

Problems using bitmaps for thumbnails

倾然丶 夕夏残阳落幕 提交于 2019-12-13 02:51:52
问题 I'm trying to make an app that takes videos and then displays the videos in a gridview. I have gotten to the point where all the video thumbnails are showing up in the gridview like they should. However, my problem is that the method I am using has a lot of lag time. It takes some time to get the gridview loaded and when I try to scroll there is always some sort of lag. This is most likely due to the fact that I'm using bit maps for every video thumbnail. I was wondering what I could do to

creating thumbnails without saving them

别等时光非礼了梦想. 提交于 2019-12-13 00:07:27
问题 I need to create a page that will automatically create a thumbnail from all images if selected folder and show them on the same page. But the thing is, I don't want to save them. I want to display them on the same page without saving. And I need to do that in PHP. Is it possible? Please help! Note: If that is not possible,I can put them in some folder. 回答1: You have to make a second PHP-file then. You have to make an image tag in the first file <img src='image.php' /> and in this image.php

how to make thumbnail image with initials two char from name android?

岁酱吖の 提交于 2019-12-12 21:59:02
问题 I want to thumbnail initials with two word for my image view like "Peter Parker" but am able to get only one word "P"while running code how can get second word after space my code is. holder.imgName?.text=teamData[position].userImage.substring(0,1) 回答1: You can do it functional way: val peterParker = "Peter Parker" val initials = peterParker .split(' ') .mapNotNull { it.firstOrNull()?.toString() } .reduce { acc, s -> acc + s } println(initials) //PP This would cover cases when a person's name

Custom JScrollBar-Thumb is painted, but doesn't move

最后都变了- 提交于 2019-12-12 18:24:41
问题 I decided to dive a little bit deeeper in the materia of swing and custom painting components. The last few days I read tons of articles, API-documentations and questions here on StackOverFlow and other forums. But still I got some basic problems in understanding the concept. What I want to do: Basically, I want to design some components for my own Swing GUI. I don't have much problems designing a custom JButton. I just create an custom Image in paint.net, create an ImageIcon and make JButton

Is there any sample code to read thumbnail from Jpeg exif header?

守給你的承諾、 提交于 2019-12-12 11:08:50
问题 I am writing application using c++, in windows. I want to get a thumbnail from jpeg, without decoding the whole image. How Can I read thumbnail from jpeg exif header? Can any one offer me a some sample code? Many thanks! 回答1: Unsurprisingly the library is called libexif has win32 port, and there is sample code for reading thubnail from file 回答2: Don't bother. You can create tumbnails very fast from JPEGs. They are compressed using DCTs on 8x8 pixel blocks. So, get the DC component (i.e. 0,0)

What is the best way to associate a thumbnail with an image in a mysql database?

橙三吉。 提交于 2019-12-12 09:54:55
问题 I am building a database for a website that will be a cataloge of products. I am having a problem with the table of images. I have a php script that resizes the image with three sizes, renames them with a suffix, writes them to a directory and adds a reference to them in a table of images. I am having trouble figuring out how the thumbnails (the small images) will be associated with the medium and large images since I'm planning to have multiple images for each product. I want to be able to

How to get facebook video thumbnail from a given video ID using php

家住魔仙堡 提交于 2019-12-12 09:53:35
问题 I want to get thumbnail of facebook videos from a given video ID . I use the preg_match function to get facebook video ID from a given url retrieved from database preg_match("~/videos/(?:t\.\d+/)?(\d+)~i", $value->url, $matches); $video_id = $matches[1]; echo ' <div class="fb-video" data-href="https://www.facebook.com/facebook/videos/'.$video_id.'/"></div>'; I want to posted on website with something like this: <img src="VIDEO_IMAGE.<?php echo $video_id ?>.jpg"> I don't know if it' posssible?

How to show thumbnail from image path? [closed]

只谈情不闲聊 提交于 2019-12-12 09:26:53
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . How can I show a thumbnail from a fixed image path in an ImageView? 回答1: you can create Image thumbnail from the image path as: public Bitmap getbitpam(String path){ Bitmap imgthumBitmap=null; try { final int

Efficient thumbnail generation of huge pdf file?

亡梦爱人 提交于 2019-12-12 07:57:28
问题 In a system I'm working on we're generating thumbnails as part of the workflow. Sometimes the pdf files are quite large (print size 3m2) and can contain huge bitmap images. Are there thumbnail generation capable programs that are optimized for memory footprint handling such large pdf files? The resulting thumbnail can be png or jpg. 回答1: ImageMagick is what I use for all my CLI graphics, so maybe it can work for you: convert foo.pdf foo-%png This produces three separate PNG files: foo-0.png

Url of large image of a YouTube video

£可爱£侵袭症+ 提交于 2019-12-12 07:30:55
问题 I'm interested in getting a preview image of a youtube video for my application I'm using the url to the previews: http://img.youtube.com/vi/EqWRZrupLrI/0.jpg but this has little two black rows, up and down, and I wish it were bigger. I have read that the 0 is the bigger picture. anyone know if it is possible to obtain a url with a better image?, for my project, I need the image is on a url I appreciate the help Regards :) 回答1: 0.jpg is the full-size 480p thumbnail and there is no bigger