Results 1 to 7 of 7

Thread: Watermark - Transparent PNGs

  1. #1
    Join Date
    Aug 2007
    Posts
    12

    Default Watermark - Transparent PNGs

    Support for Transparent PNG would be welcome!

  2. #2
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    You can edit include/player.inc to change watermark image from GIF to PNG.

  3. #3
    Join Date
    Aug 2007
    Posts
    12

    Default

    Quote Originally Posted by admin
    You can edit include/player.inc to change watermark image from GIF to PNG.
    Thanks. But when uploading a watermark, the script fails indicating that a .GIF file is the only supported format.

  4. #4
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    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.

  5. #5
    Join Date
    Aug 2007
    Posts
    12

    Default

    Quote Originally Posted by admin
    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.
    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. :D

    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.

  6. #6
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    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.

  7. #7
    Join Date
    Jun 2010
    Posts
    1

    Default

    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;

Similar Threads

  1. Set Flash Player to transparent
    By porkd in forum General Discussions
    Replies: 0
    Last Post: 11-29-2007, 03:29 PM
  2. Watermark
    By igorcreed in forum Template Modifications
    Replies: 1
    Last Post: 09-27-2007, 05:28 PM
  3. Watermark
    By Alexy in forum Feature Requests
    Replies: 12
    Last Post: 08-14-2007, 09:27 PM
  4. Watermark
    By admin in forum Frequently Asked Questions
    Replies: 7
    Last Post: 08-01-2007, 02:51 AM
  5. .Swf Or .Flv as A watermark
    By zeffer in forum Feature Requests
    Replies: 2
    Last Post: 06-03-2007, 10:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •