This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32519685c0b422e4656de6e6c41878e95fd95026267daab4215ee59c107d6c77 Solarwinds | |
dab758bf98d9b36fa057a66cd0284737abf89857b73ca89280267ee7caf62f3b Solarwinds | |
eb6fab5a2964c5817fb239a7a5079cabca0a00464fb3e07155f28b0a57a2c0ed Solarwinds | |
c09040d35630d75dfef0f804f320f8b3d16a481071076918e9b236a321c1ea77 Solarwinds | |
a25cadd48d70f6ea0c4a241d99c5241269e6faccb4054e62d16784640f8e53bc Solarwinds | |
d3c6785e18fba3749fb785bc313cf8346182f532c59172b69adfb31b96a5d0af Solarwinds | |
ad1b2b89e60707a20e9eb1ca480bc3410ead40643b386d624c5d21b47c02917c Solarwinds | |
019085a76ba7126fff22770d71bd901c325fc68ac55aa743327984e89f4b0134 Solarwinds | |
ce77d116a074dab7a22a0fd4f2c1ab475f16eec42e1ded3c0bOaa8211fe858d6 Solarwinds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_text_watermark($kep,$Text,$WatermarkNeeded = 1) { | |
list($img_type, $Image) = getImage($kep); | |
$sx = imagesx($Image) ; | |
$sy = imagesy($Image) ; | |
if ($WatermarkNeeded) | |
{ | |
/* Set the font */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generate_watermarked_image($originalFileContents, $originalWidth, $originalHeight, $paddingFromBottomRight = 0, $watermarkFileLocation = 'logo.png') { | |
$watermarkImage = imagecreatefrompng($watermarkFileLocation); | |
$watermarkWidth = imagesx($watermarkImage); | |
$watermarkHeight = imagesy($watermarkImage); | |
$originalImage = imagecreatefromstring($originalFileContents); | |
$destX = $originalWidth - $watermarkWidth - $paddingFromBottomRight; | |
$destY = $originalHeight - $watermarkHeight - $paddingFromBottomRight; |