Support for Transparent PNG would be welcome!
 Junior Member
					
					
						Junior Member
					
					
                                        
					
					
						 Watermark - Transparent PNGs
 Watermark - Transparent PNGs
		Support for Transparent PNG would be welcome!
 Administrator
					
					
						Administrator
					
					
                                        
					
					
						 
 
		You can edit include/player.inc to change watermark image from GIF to PNG.
 Junior Member
					
					
						Junior Member
					
					
                                        
					
					
						 
 
		Thanks. But when uploading a watermark, the script fails indicating that a .GIF file is the only supported format.Originally Posted by admin
 Administrator
					
					
						Administrator
					
					
                                        
					
					
						 
 
		This is custom modification, so you will need to upload the watermark image with FTP. If you can edit player.inc, it will not be a big task to upload the watermark image with FTP.
 Junior Member
					
					
						Junior Member
					
					
                                        
					
					
						 
 
		While it's not a big task to upload via FTP, that sort of defeats the purpose of having an admin screen for doing so. :DOriginally Posted by admin
That's why I posted it in feature requests in the first place -- it seems cumbersome to have an interface that allows you to only upload a single file type for a watermark.
 Administrator
					
					
						Administrator
					
					
                                        
					
					
						 
 
		This can be done in admin, for that (selecting png/gif watermark by user), we need an extra database field, read it every time to see if watermark is PNG or GIF, then display it.
Doing this process need cpu time, memory, it is not much, but for high traffic site, it will adds up. Do we need to use up extra memory for a rarely used feature ? Watermark image for most are set and forget feature, used only one time.
 Junior Member
					
					
						Junior Member
					
					
                                        
					
					
						 
 
		include/player.inc
Code:<?php $displayheight = $config['player_height'] - 20; $vshare_player = <<<EOT <script type="text/javascript" src="{$config['baseurl']}/player/swfobject_1.5.js"></script> <p id="vshare_player"> <a href="Adobe - Adobe Flash Player"> <img src="http://www.adobe.com/images/shared/d...ash_player.gif" alt="Get Adobe Flash player" /> </a> </p> <script type="text/javascript"> var so = new SWFObject("{$config['baseurl']}/player/player.swf","vshare_player","$config[player_width]","$config[player_height]","8"); so.addParam("allowfullscreen","true"); so.addVariable("file","{$file}"); so.addVariable("image","{$video_thumb_url}/thumb/{$video_folder}{$video_id}.jpg"); so.addVariable("logo","{$config['baseurl']}/templates/images/watermark.png"); so.addVariable("link","{$config["watermark_url"]}"); so.addVariable("linktarget","_blank"); so.addVariable("width","{$config['player_width']}"); so.addVariable("height","{$config['player_height']}"); so.addVariable("displayheight","$displayheight"); so.addVariable("overstretch", "true"); so.addVariable("autostart", "{$config['player_autostart']}"); so.addVariable("bufferlength", "{$config['player_bufferlength']}"); so.write('vshare_player'); </script> EOT;
Bookmarks