Add watermark to images with ImageMagick

2011-04-23  来源:本站原创  分类:Internet  人气:178 

ImageMagick to experience a bit strong, add watermark to images using ImageMagick to batch operations, written in a shell.

Input parameters: the watermark image, the folder where the pictures

#! / Bin / bash

echo "Image watermarking Script"

echo ""

if [$ #-ne 2]
then
echo "usage:. / watermark watermark.jpg picture_directory"
echo ""
exit
fi

WATERMARK = $ 1
PICDIR = $ 2
for each in $ PICDIR / * {. jpg,. jpeg,. png,. JPG,. JPEG, PNG}
do
# Mv "$ each" `echo $ each | tr '''_'`;
composite-gravity center-dissolve 15.3 $ WATERMARK $ each $ each 2> / dev / null
echo "$ each: done!"
done
exit 0

相关文章
  • Add watermark to images with ImageMagick 2011-04-23

    ImageMagick to experience a bit strong, add watermark to images using ImageMagick to batch operations, written in a shell. Input parameters: the watermark image, the folder where the pictures #! / Bin / bash echo "Image watermarking Script" echo

  • Batch add watermark software 2011-05-10

    Batch add watermark software http://www.duote.com/soft/1037.html http://www.keniu.com/tb/

  • CKEditor secondary development ---- as CKEditor add watermark features to increase 2010-06-25

    Add a watermark on the increase in CKEditor function, believe we have not seen. CKEditor's predecessor was FCKEditor, FCKEditor from 3.0 after the change called CKEditor. Man of few words said, we go,, First, the changes introduced in that part of th

  • java add watermark to images, text 2010-07-19

    import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Image; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp; import java.awt.image.BufferedImage; import

  • ArcEngine add watermark to the map 2011-07-29

    http://hi.baidu.com/llinkin_park/blog/item/4b452c20f7b539e1d7cae28c.html

  • asp.net dynamically add image watermark 2010-07-23

    [Forum]-IT online shopping clubbing! [Www.itpob.Cn] online shopping community! - Powered by Discuz! http://www.itpob.cn/ Example 1: web.config view plain copy to clipboard print? <httpHandlers> <remove verb="*" path="*.asmx"/&

  • Add a watermark image AS3 2011-01-13

    Look at the code to be appended to the resolution! ! var addSp: Sprite = new Sprite ();// containers with pictures and watermark var txt: TextField = new TextField ();// watermark text box var imageBit: BitmapData = new kuImage (0,0); / / link in the

  • Java implementation to add a picture watermark 2011-08-22

    Scarf on the weekend at home, to see pictures have a watermark on the collar sina, think Java has a special Image processing package, the same watermark should be able to function, check the information I discovered a small test java watermark is sti

  • java to achieve watermark 2010-03-29

    package com.wawagame; import java.awt.AlphaComposite; import java.awt.Font; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.BufferedInputStream; import

  • Increased expansion watermark paperclip 2010-03-05

    1. / Lib / paperclip processors add watermark.rb file 2. module Paperclip class Watermark < Processor class InstanceNotGiven < ArgumentError; end def initialize(file, options = {}) super # puts attachment.to_yaml @file = file @current_format = File.

  • Topics: ASP.NET with watermark 2010-12-02

    For us to publish the picture with a watermark, but also we often do, then how to do it, step by step to begin the following First, the watermark is a production class: ImageHandler, the following code: using System; using System.IO; using System.Dra

  • Turn _ around image watermark 2010-12-23

    package com.news.web; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import javax.imageio.ImageIO; import

  • RHEL5 + ffmpeg + install + watermark turn H.264Mp4 (rpm) 2011-08-30

    Search the web for a long time only to find this is the (ffmpeg video plus watermark) useful articles address the original post: http://hi.baidu.com/73jianbing/blog/item/82b96decdb289dc62e2e21fa.html Install dependencies Reference http://wiki.razuna.

  • Web-based HTML editor (rich text editor) 2010-03-19

    WEB-based HTML editor, WYSIWYG WYSIWYG editor, or a rich text editor, is that we develop WEB applications to receive user input will need to consider. Here are some open source WEB online WYSWIG editor. 1. FCKeditor FCKeditor these online editor of t

  • How to escape from the refuse customers (under) 2009-10-03

    Editor: Xiqiao Project Manager Product Advisor http://blog.xiqiao.info/2009/04/16/263 The story of three: a good opportunity to introduce a friend C: high-level programmer, 5 years working experience in the code. Job, work leisure, and occasionally p

  • Grails development project from scratch 4 2010-02-17

    i18n mechanism Grails provides a sound i18n mechanism, specific documentation to see if / grails-app/i18n directory will understand. The default will be generated in various languages of the properties file. In many parts of Grails and i18n related.

  • Started IText must-read 2010-03-29

    I. Introduction In enterprise information systems, the report processing has accounted for a relatively important role, this article introduces a Java component generates PDF report - iText. Through the server side using the Jsp or JavaBean generate

  • Generating pdf using itext description Java Components 2010-03-29

    iText is able to quickly generate PDF documents java class library. iText of java classes created for those who want to include text, tables, graphics, read-only document is very useful. Its class library especially with java Servlet good to co. Use

  • Using the Java generated pdf 2010-05-02

    iText is able to quickly generate PDF documents java class library. iText of java classes created for those who want to include text, tables, graphics, read-only document is very useful. Its class library especially with java Servlet good to co. Use

  • Nginx + Mongrel Cluster deployment of ROR in CentOS 2010-04-16

    Nginx + Mongrel Cluster deployment of ROR in CentOS I, a basic environment set up, what is CentOS CentOS is RHEL (Red Hat Enterprise Linux) and then compile the source code product, known as 100% compatible re-established, and removed all Red Hat tra