• Resolved DanMichel

    (@danmichel)


    Any way I can crop instead of resizing?
    here is part of my code

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) : ?>
    		<img src="<?php video_thumbnail(); ?>" width="222" height="142" />
    		<?php else : ?>
    		<?php if ( $iNumberOfPics > 0 ) : ?>
    	<a>" rel="bookmark" title="<?php echo (get_post_meta($post->ID, "post-img-alt", true)) ? htmlspecialchars(get_post_meta($post->ID, "post-img-alt", true)) : the_title(); ?>">[/code]</a>

    [Please post code snippets between backticks or use the code button.]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Check out TimThumb, it can crop images to specific dimensions.

    alexkickham

    (@alexkickham)

    People have suggested TimThumb to me before, but I don’t know how to integrate it into the Video Thumbnail plugin?

    Do I upload the TimThumb.php to my site then put some other code into the Video Thumbnail Plugin?

    I want to the Video Thumbnail plugin to spit out the same size thumbnail everytime.

    Please help, even if you just tell me what to do?

    Thanks
    Alex

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Here’s a good guide on using TimThumb. A more advanced option is to use Post Thumbnails, but it requires a little more WordPress theme experience.

    alexkickham

    (@alexkickham)

    I’m sorry, I am not code minded so after reading that I still don’t know what to do.

    I have added the timthumb.php to the site root folder, added 2 directories (cache and temp) with 777 permissions but now what do I do?

    I’m guessing I have to put a version (but what?) of this code…
    timthumb.php?src=castle1.jpg&h=180&w=120
    somewhere in the “Video Thumbnail’ plugin code, but where???

    Thanks
    Alex

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    You don’t have to change anything in the plugin, it has to be in your theme. For example:

    <img src="timthumb.php?src=<?php video_thumbnail(); ?>&h=180&w=120" width="180" height="120" />

    Hi…i’m reading this topic because i’m also trying to understand how & where to insert these codes.

    I’m using “Minimatica” theme, and every time i posted a video, the video thumbnails will generate and it will automatically make it as a featured image. And then this featured image will be the default image that will go to the container of the slider of Minimatica theme which the size doesn’t fit in. I can make the image fit to the container by re-sizing it manually but i don’t want to do it every time.

    My question is, how will i set to generate a thumbnail on posted videos that will fit exactly to to the container of the slider of Minimatica theme?

    This is the site: https://jilas.kri8tiv.com

    Thanks in advance for your help.

    Roger

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Video Thumbnails] Setting Height and Width, Cropping Instead of Resizing’ is closed to new replies.