YouTube prevent Black Border?

Posted in: Newsmag
Post count: 27

Hi..

When using the Video Post Featured Image feature, WP grabs the image
from YouTube. So far so good. When using Block 6, this preview image
has a black bar on top and on bottom.

Any advice to prevent this except changing the Block Type?
Such as automatic zoom so that no borders are visible?

Cheers,
Guenter

Post count: 7909

Hi,

Please try this with another video and see if you still have this issue. The featured image is created from the youtube/vimeo video so the theme cannot control that: http://screencast.com/t/4lh79G2ByS

Thanks

Post count: 27

Allright.. seems to work with a different video. I noticed though that all images in Newsmag
use differen aspect ratios. This is very disturbing, since you see more or less from the images.
Its not only two different ratios which I would have understood but almost every image uses it’s
own ration / part of the image.

So in my YouTube example I see a black bar on top of the image (while the bottom black bar is
hidden from the aspect ratio) and in another view I see both bars. Any suggestions which pairs
of modules have the same output?

Post count: 7909

Hi,

If you want change the width and height and also crop(center) of the thumb please edit the td_config.php file: http://screencast.com/t/MvPEw8AGR ..then regenerate thumbnails using this guide: https://forum.tagdiv.com/how-to-fix-strange-thumbnails/

For example I edited like this – http://screencast.com/t/b7zifZGZLK then regenerate thumbs – http://screencast.com/t/cYyU8UxbXF
Before: http://screencast.com/t/bzJFlnc3VDsT
Result: http://screencast.com/t/MImsQmSf
Please also consider that changing thumb sizes will also affect other blocks/modules which also use this thumbs.

Hope this helps!

Post count: 27

Thanks… Is there also a setting to center-scale it to fit while keeping the aspect ratio so that the image is croped at top/bottom or left/right? Your result images have a non-flattering aspect ratio.

Post count: 7909

Hi,

Please take a look here and find out more about the image size and the crop parameter: https://codex.wordpress.org/Function_Reference/add_image_sizehttp://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
And try to find the best size and crop for you images.

Hope this helps!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.