WATER MARK 2
This commit is contained in:
parent
f2d7f61fec
commit
b387811321
BIN
api/application/docs/icon.png
Normal file
BIN
api/application/docs/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
api/application/docs/icon2.png
Normal file
BIN
api/application/docs/icon2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
BIN
api/application/docs/output-onlinepngtools.png
Normal file
BIN
api/application/docs/output-onlinepngtools.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
api/application/docs/robold.ttf
Normal file
BIN
api/application/docs/robold.ttf
Normal file
Binary file not shown.
BIN
api/application/docs/roboto.ttf
Normal file
BIN
api/application/docs/roboto.ttf
Normal file
Binary file not shown.
BIN
api/application/docs/sineedge_red.png
Normal file
BIN
api/application/docs/sineedge_red.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
api/application/docs/stamps/udaan_stamp.jpg
Normal file
BIN
api/application/docs/stamps/udaan_stamp.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@ -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
|
||||
|
||||
16
api/application/views/vdoplayer.php
Normal file
16
api/application/views/vdoplayer.php
Normal 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> -->
|
||||
Loading…
Reference in New Issue
Block a user