Youtube Thumbnail Resize and Save
Dit script lijkt erg veel op mijn Image Resize script alleen maakt hij nu een Youtube thumbnail. Wat erg handig kan zijn als je alleen de thumbnail wil laten zien en niet gelijk de hele movie. Hij spreek voor zich. Feedback is zoals altijd welkom.
Author: Ruben Vandenbussche
Website: http://www.RVandenbussche.nl
Contact: info (at) RVandenbussche (dot) nl
Date: 14 Nov 2008
*******************************************
Script: Youtube Thumbnail Resize v1.0
It does:
1. Gets the youtube id.
2. Gets the youtube thumbnail.
3. Resizes the youtube thumbnail.
4. Keep ratio.
5. Make smaller source images bigger.
6. Save the image to the given destination path.
It doesn't:
1. Make directories.
2. Crop.
Summary:
This script is made to get the youtube thumbnail from the embed($src_embed so you can use it yourself. The image is saved with the width ($dst_w) and height ($dst_h) given by the user to the destination path ($dst_path) with the user provided name ($dst_img).
Warning:
The thumbnail image is provided by the youtube image server. If youtube decide to change server or to change the name of the thumbnails. This script will not work anymore. Howevery you only have to change the line: $src_cpl = 'http://s2.ytimg.com/vi/' . $youtube_id . '/default.jpg';
Gesponsorde koppelingen
PHP script bestanden
Er zijn 3 reacties op 'Youtube thumbnail resize and save'
Om te reageren heb je een account nodig en je moet ingelogd zijn.
PHP hulp
0 seconden vanaf nu