How to add watermarks to images via command line – Hopefully using Irfanview

I recommend using ImageMagick, which is open source and quite standard for manipulating images on the command line. Watermarking with an image is as simple as composite -dissolve 30% -gravity south watermark.jpg input-file.jpg output-file.jpg With text, it’s a little more complicated but possible. Using the above command as an example, a Bash command for doing … Read more

Add ‘Watermark’ to images with php [closed]

A good example in the PHP manual: // Load the stamp and the photo to apply the watermark to $stamp = imagecreatefrompng(‘stamp.png’); $im = imagecreatefromjpeg(‘photo.jpeg’); // Set the margins for the stamp and get the height/width of the stamp image $marge_right = 10; $marge_bottom = 10; $sx = imagesx($stamp); $sy = imagesy($stamp); // Copy the … Read more

Removing watermark out of an image using OpenCV

I’m not sure if the following solution is acceptable in your case. But I think it performs slightly better, and doesn’t care about the shape of the watermark. Remove the strokes using morphological filtering. This should give you a background image. Calculate the difference image: difference = background – initial, and threshold it: binary = … Read more

How to add transparent watermark in center of a video with ffmpeg?

Examples to add a watermark / logo image on video using the overlay filter. Centered ffmpeg -i input.mp4 -i logo.png -filter_complex “overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2” -codec:a copy output.mp4 or with the shortened overlay options: overlay=(W-w)/2:(H-h)/2 Top left This is the easy one because the default, if you provide no options to overlay, is to place the image in … Read more

Watermark / hint / placeholder text in TextBox?

You can create a watermark that can be added to any TextBox with an Attached Property. Here is the source for the Attached Property: using System; using System.Collections.Generic; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; /// <summary> /// Class that provides the Watermark attached property /// </summary> public static class WatermarkService { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)