thumbnails

Randomise & limit Category thumbs on homepage magento

一个人想着一个人 提交于 2019-12-11 19:15:16
问题 The following code simply displays the category thumbs for all subcategories in "category 12" im looking for a way to limit this number to 6 categories and have it be a random selection of those categories. <ul class="brand_list"> <?php $media = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?> <?php $children = Mage::getModel('catalog/category')->getCategories(12); ?> <?php foreach ($children as $category): ?> <?php $category = Mage::getModel('catalog/category')->load($category-

Vista live thumbnail issue with SetWindowRgn

妖精的绣舞 提交于 2019-12-11 18:14:13
问题 I know I am probably missing something, but I can't seem to get windows to show the live thumbnail preview correctly when using a window that has a region. When hitting the minimize button the preview will clip to the minimized size (160x25) rather than showing the full preview (like it does with other windows). Few points to make: 1) The preview works fine in Windows Live Messenger, so Microsoft figured out a way to do it. 2) If I call SetWindowRgn only before a window is visible, it works

Generate thumbnail for text file

烈酒焚心 提交于 2019-12-11 17:57:20
问题 Suppose a user uploads a .txt or .php file, and I want to generate a .png thumbnail for it. Is there a simple way of doing it, that doesn't require me to open the file and write its contents into a new .png? I have ImageMagick and FFmpeg available, there must be a way to take advantage of that, but I've been looking a lot and no luck yet. Thanks in advance. 回答1: You could always use php's imagettftext function. It would give you a representation of what is in the text file. http://php.net

thumbnail returns null on android above version 4.0

别来无恙 提交于 2019-12-11 16:08:14
问题 I am getting the samethis issue public class MainActivity extends Activity { ImageView imgVie; Bitmap bmp,extBmp; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); imgVie = (ImageView)findViewById(R.id.imageView1); String path = "http://202.65.154.108:8080/VODStream/lokesh.stream.mp4"; bmp = ThumbnailUtils.createVideoThumbnail(path, Thumbnails.FULL_SCREEN_KIND); if(bmp!=null) { extBmp = ThumbnailUtils

to show a thumbnail of photo that I took-Phonegap [closed]

北慕城南 提交于 2019-12-11 15:09:00
问题 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 . I'm trying to create a thumbnail of the photo that I take with the camera but I've failed, someone can give me an idea? I'm working with PhoneGap, javascript, html and css 回答1: Try this: $('#button').click

Wordpress Featured Image Custom Shortcode

两盒软妹~` 提交于 2019-12-11 15:07:35
问题 I've ran into an issue that's doing my head in. I'm trying to create custom shortcodes within my themes functions.php file that will allow me to insert and place a posts featured image into a post and align it either left of right. Below is the code I tried last, I've been looking at different sources and trying different things to no avail. function featured_img_left() { if (has_post_thumbnail() ) { $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,

Youtube storyboard script - bigger thumbnail?

三世轮回 提交于 2019-12-11 13:42:32
问题 http://www.labnol.org/internet/print-youtube-video/28217/ javascript:(function(){a=ytplayer.config.args.storyboard_spec;if(!a){alert("Sorry we cannot process this YouTube video. Could you please try another one");exit();}b=a.split("|");base=b[0].split("$")[0] "2/M";c=b[3].split("#");sigh=c[c.length-1];var imgs="";t=ytplayer.config.args.length_seconds;n=Math.ceil(c[2]/(c[3]*c[4]));for(i=0;i<n;i ){imgs ="<PICTURE='" base i ".jpg?sigh=" sigh "'><br/>";}var title=ytplayer.config.args.title;msg="

How do I refresh a file's thumbnail in Windows Explorer?

醉酒当歌 提交于 2019-12-11 12:22:07
问题 Our Windows file server has an archive service installed that "stubs" files that have not been accessed for a defined period of time. When a request for the stubbed file is sent to the server, the archive service replaces the stub with the original document and serves it to the user. A major complaint about the archive service was that thumbnails for photos were no longer available. I decided to create a program in C# that would allow the user to select a folder and unstub all the files in it

Add thumbnail to search results ONLY if the thumbnail is available?

霸气de小男生 提交于 2019-12-11 12:07:52
问题 I currently have the <?php the_post_thumbnail('post-thumbnail', array( 'class' => "search-thumb attachment-post-thumbnail")); ?> inside of a div that holds the Search Result Title, and Excerpt. What I'm trying to achieve is ONLY adding the thumbnail if the post has it available. My reason for this is because adding a thumbnail will make the div's height larger. Let's say the div with the thumbnail is 150px in height. I'd like to eliminate the height and have the div fit ONLY the text if the

google + and facebook style iframe youtube video. by default shows video image, when image clicked video plays

你说的曾经没有我的故事 提交于 2019-12-11 09:48:50
问题 I already have a plugin that embeds videos on my site called oembed. What I need is a javascript code that converts youtube iframes or another embeds to the default image of the videos, when the image is clicked video player appears and plays. Google + and facebook have implemented this idea. Please let me know how to make this happen. This is an example of my youtube iframe: <iframe width="267" height="200" src="http://www.youtube.com/embed/YOUTUBEID;feature=oembed" frameborder="0"