tags:

views:

24

answers:

1

I'm creating thumbnails from videos using ffmpeg and it's working fine.

But now I want to add a play button image at the center of the thumbnail image and store them.

I've used CSS to get that, but I want to know whether there is any method to create thumbnails with the given image at the center.

+1  A: 

Yes, you can use a library such as GD or ImageMagick.

But, why don't you continue to do it with CSS? You can keep the play button separate for maintainability, use JPEG for thumbnails (play buttons generally don't look good when encoded as JPEGs).

I would only recommend combining them if there was some need to have them always there (exposing them via an API, for one).

alex
+1 for maintenability. Besides, adding information to each thumbnail will increase their size, whereas the css overlay "play button" will only be downloaded once, then applied to all.
Fanis
I was looking to reduce the requests, if i use the css, the original thumbnails will be loaded and another request will be done for play button and i also want to print the video duration inside the thumbnail and it has a background image in css, so mulitple requests for a single thumbnail..
kvijayhari
@kvijayhari: Play button: Just one for all thumbnails, counter: Inlined in the html code of the page. What's the problem?
FUZxxl