WATER MARK 2

This commit is contained in:
Velz2020 2021-02-01 13:14:43 +05:30
parent f2d7f61fec
commit b387811321
9 changed files with 19 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -24,12 +24,12 @@ class watermark
// $location_watermarktext="Location: ".$doc['link'];
// $location_watermarktext="Location: 9876543210";
$font = APPPATH."docs/roboto.ttf"; //metion font and it's location
$fontsize="8";
$fontsize="7";
$x = imagesx($imagetobewatermark);
$y = imagesy($imagetobewatermark);
$water_mark_text_color = imagecolorallocate($imagetobewatermark, 225, 0, 0);
imagettftext($imagetobewatermark, $fontsize, 0, 70, ($y - 15), $water_mark_text_color, $font, $location_watermarktext);
imagettftext($imagetobewatermark, $fontsize, 0, 70, ($y - 20), $water_mark_text_color, $font, $location_watermarktext);
imagettftext($imagetobewatermark, $fontsize, 0, 70, ($y - 5), $water_mark_text_color, $font, 'Date: '.date('Y-m-d h:i:s a'));
imagepng($imagetobewatermark,$output_file,9);//save as png file in ouputfile location
@ -42,7 +42,7 @@ class watermark
$sx = imagesx($curret_file);
$sy = imagesy($curret_file);
// imagecopyresized ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h ) : bool
imagecopyresampled ( $curret_file , $pd_logo ,5, ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
imagecopyresampled ( $curret_file , $pd_logo ,5, ($sy - 30) , 0 , 0 , 25 , 25 , 53 , 57 );
imagepng($curret_file,$output_file,9);// save png image in specified location
// //###########end of image water marking with logo

View File

@ -0,0 +1,16 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
//echo $uri;
//echo 'view';
?>
<center><video width="500" height="300" controls>
<source src="<?php echo $uri ?>" type="video/mp4">
<!-- <source src="movie.ogg" type="video/ogg"> -->
Your browser does not support the video tag.
</video>
<!-- <a href="https://www.w3schools.com/html/mov_bbb.mp4" target="_blank" download><img class="download" src='https://cdn1.iconfinder.com/data/icons/hawcons/32/698392-icon-129-cloud-download-128.png'/></a> -->
</center>
<!-- <iframe width="420" height="315" -->
<!-- src="<?php echo $uri ?>"> -->
<!-- </iframe> -->