Video thumbnails distorting

I'm trying to upload video thumbnails to my gallery and they're distorting.

I have my thumbnail width set at 288px wide, "Crop thumbnails" 14.9% top & bottom.

However, when I upload a thumbnail for a video (using the jpg / txt method), its thumbnail distorts both left and right and up and down as you can see here: http://cl.ly/image/3I3l2P0O3I0x

The video thumbnail is the last thumbnail you see, and the youtube play button should appear in the middle of the thumbnail.

I'm not sure what I'm doing wrong, I've tried 288x202 (my default thumbnail size) as a starting point. I thought I might have to make the thumbnail 14.9% taller as a result, which I did, but that didn't help.

Any ideas?

Comments

  • acrylian Administrator, Developer
    Link to the site maybe? It dependes a bit on the theme and how it generates the thumbs. Some themes don't use teh settings from the options but fixed sizes for layout reasons on the theme itself.

    The settings are actually quite a bit tricky because of the percentage values. The plain theme functions and their parameters are a bit easier as you set pixel values there. For example:
    http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage
  • kocho Member
    Link to website

    I'm using the default theme.

    Do I set pixel values within template-functions.php and then place this within album.php: <?php printCustomSizedImage(); ?>

    Is that right?
  • kocho Member
    I'm using the default theme.

    Link to website

    Do I set pixel values within template-functions.php and then place this within album.php: <?php printCustomSizedImage(); ?>

    Is that right?
  • kocho Member
    I'm using the default theme.

    I'm not exactly sure what to do, but I'm trying to work it out anyway and give it a try. I didn't think it would be this puzzling.

    So, printCustomSizedImage seems to be an image function rather than a Thumbnail function? But anyway, you said that it's the solution, so who am I to question.. ;)

    Anyway, what I thought might be the solution is if I substitute in:
    <?php printCustomSizedImage('',100,288,202,'15','15','','','','',TRUE,FALSE)); ?>

    into the next_image loop. I thought it might replace printImageThumb.

    Then I thought it might be an if / else thing? I dunno.

    Any help?

    Here's a link:
    http://adv1wheels.com/gallery/porsche/porsche-991-c2-stinger-adv5.1mv1sl/

    Thumbnail appears to look like a distorted version of:
    http://adv1wheels.com/gallery/cache/porsche/porsche-991-c2-stinger-adv5.1mv1sl/porsche-991-c2-stinger-adv5-1mv1sl_288_w288_h202_thumb.jpg

    Uploaded thumbnail is:
    http://adv1wheels.com/gallery/albums/porsche/porsche-991-c2-stinger-adv5.1mv1sl/porsche-991-c2-stinger-adv5-1mv1sl.jpg
  • acrylian Administrator, Developer
    The printCustomSizeImage function is for both thumbs and sized image. The only real difference between both is that thumbs have no watermarks ( the $thumbstandin parameter).

    Non image items like video/audio have of course no "sized image" as the "sized image" is the video/audio itself. That Zenphoot of course cannot resize.

    `<?php printCustomSizedImage('',100,288,202,'15','15','','','','',TRUE,FALSE)); ?>`
    First, integer values are not enclosed in quotes (php basics!). If you need an even thumb you need to set width/height and cropwidth/height the same value. If that all works depends a bit on the size of the actual image. Cropwidth is taken from the image with width. So if that is smaller the cropping will not work. A bit tricky at times.

    The thumbs here http://www.zenphoto.org/showcase/ are therefore set to
    `<?php printCustomSizedImage(getBareImageTitle(), NULL, 255, 128, 255, 128, NULL, NULL, "thumbnail", NULL, true, false); ?>`
  • kocho Member
    Awesome, thanks for your help acrylian.
Sign In or Register to comment.