thumbnails

how to create website thumb nail using PHP?

余生颓废 提交于 2019-12-11 09:16:17
问题 I do have a code with me couple of years back to create a website thumbnail using PHP in windows. But I cant find the same now is there anybody has a code to generate same on Windows?? or some Ideas to capture a website preview?? 回答1: Try checking out this PHP class. It's one of the only ones I know that does this sort of thing. http://www.phpclasses.org/package/4608-PHP-Take-screenshots-of-pages-with-Internet-Explorer.html Best of luck! 回答2: if working on windows hosting use (http://www

wordpress post-thumbnail crop question. is this even possible?

こ雲淡風輕ζ 提交于 2019-12-11 08:48:57
问题 When I'm using the post thumbnail feature in wp3 and set the thumbnail size to e.g. 230x160 wp crops the image from the top left corner to the set size. Sometimes this is sadly just the wrong part of the image. Is there any way to give the backend user the chance to choose the part of the original image which should be the thumbnail? Like a jQuery script or something? Right now I'm using a custom field workaround to upload a second image with the excact dimensions... Any ideas on this? //EDIT

how to auto center thumbnails for all screen sizes

微笑、不失礼 提交于 2019-12-11 07:25:56
问题 body{ width:auto; color:white; font-size:15px; width:100%; max-width:1980px; min-width:334px; margin:0px auto; } This is my code. I need thumbnails to be in the center for all screen resolutions. But I can't do it. I even tried tag. It didn't work either. What should I do? 回答1: see this url : http://jsfiddle.net/DyRS4/2/ html: <div id="my-div">my div</div> css: div#my-div{ margin:0px auto; background: red; width: 100px; height: 100px; } 回答2: CSS .picture_area { width:/*width of picture area

Get Facebook video thumbnail image URLs?

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:01:36
问题 We can get the video thumb of YouTube videos by using the video ID in an URL the way defined below $src = "http://img.youtube.com/vi/".$video_id."/default.jpg"; Similarly, how can I get the video thumb of Facebook videos? Is there any predefined URL in which we put the Facebook video ID and get the as like youtube defined in the way above? 回答1: Trying to do this as well but it does not appear so. Example: a video I have on a Page with ID "1015030122022040" has a thumbnail url of: http:/

Programmatically change/add thumbnail of pptx powerpoint. With Openxml sdk?

折月煮酒 提交于 2019-12-11 06:18:19
问题 I use openxml sdk 2.5 in combination with the power tools by Eric White. I've managed to create dynamic pptx presentations using template files. (In C#) Unfortunately the thumbnail gets lost during the process. Is there any way to (re)create the thumbnail of a pptx-file using openxml or power tools? I successfully wrote some code that changes an existing thumbnail with an image. But when there is is no thumbnail it gives me a System.NullReferenceException . Here is the code: using

Resize animated GIF with PythonMagick

梦想与她 提交于 2019-12-11 05:36:18
问题 I'm using PythonMagick 0.9.3 (cannot switch to PIL) to resize images. It works fine for everything except for animated GIFs. This is the way how I resize the images at the moment: orig_image = Image('path/to/animated.gif') orig_image.resize('..resize string..') orig_image.write('path/to/thumbnail.gif') Currently it only resizes the first image of the sequence so the image is no longer animated afterwards. Does anyone have a workaround for my problem? Thank you! 回答1: I suppose you have to

Wordpress query_posts adding two “post-entry” divs, one with “post-thumbnail” and one without

懵懂的女人 提交于 2019-12-11 05:32:48
问题 Hi my name is Antony and this is my first question. I'm currently making a worpress theme. And in the loop I want to have two "post-entry" divs one that's small that goes next to my post thumb, and one for without the thumb. I know that I need to do a <div class="post"> <?php if ( has_post_thumbnail()) { ?><div class="post-thumb"> <?php the_post_thumbnail(); ?> </div> <div class="post-entry-1"> <? } else { ?><div class="post-entry-2"> <?php } ?> Any help will be greatly appreciated, as I have

Using multiple thumbnail sprites with Video.js Thumbnails

China☆狼群 提交于 2019-12-11 04:49:41
问题 I'm trying to use Video.js Thumbnails to display seek-preview thumbnails when hovering over my Video.js player track bar. I have extracted thumbnails from my videos to sprite sheets using ffmpeg. Each sprite sheet holds a set number of thumbnails, and when one gets filled up during thumbnail extraction, a new sprite file is created. On my video player page, I am using javascript to create an object to load into the thumbnails() function. If I wanted thumbnails for every five seconds, my

PHP Using imagegrabscreen

这一生的挚爱 提交于 2019-12-11 04:35:38
问题 How could I use imagegrabscreen to get a thumbnail image and a full size image of a specific website. I was thinking that I could have an array that I feed the wanted uri's into but I am a bit stuck on how I would set the wxh of the image I need to grab. I also think that I would need a thumbnail class and a fullimage class and call them when required. Any better Ideas? 回答1: Keep in mind that imagaegrabscreen is Windows-only. If you have multiple displays set up, this function will only grab

FancyBox Thumbnail Helper creates new thumbnail at end of thumbnails instead of calling it directly

孤人 提交于 2019-12-11 04:34:07
问题 I'm trying to use FancyBox for a gallery of 36 images, but whenever I click on the image to trigger FancyBox, the thumbnail helper does 2 really odd things: 1) loads an extra thumbnail of the image I clicked at the END of the gallery thumbnails 2) the thumbnail helper does not go to clicked image's corresponding thumbnail. instead, it goes to the new thumbnail of that image I made at the end of the gallery. here is a link to what I have so far: http://lalalichan.com/temp/process_test6.html At