nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How can I add custom watermarks to images from shell prompt?

This is a discussion on How can I add custom watermarks to images from shell prompt? within the Linux software forums, part of the Linux Getting Started category; Hai I got some information from your tutorial about creating image thumbnails can you explain how can I add custom ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-20-2005, 02:54 AM
ac1
Guest
 
Posts: n/a
Default How can I add custom watermarks to images from shell prompt?

Hai

I got some information from your tutorial about creating image thumbnails can you explain how can I add custom watermarks to my images from shell prompt/command prompt

One more point I would like to put water mark at bottom of each image?

Thanks a lot in advanced
You guys rules
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-20-2005, 12:10 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

composite command can be use to setup watermark. As name suggest composite composites (combine images to create new images including watermark effect from shell prompt/command or even shell scripts

Syntax:
Code:
composite -watermark %% watermark.gif original.jpg newimagewithwatermark.png
Replace %% with percent brightness of a watermark you want. Here is simple example:
Code:
composite -watermark 100% wm.png file.png abc.png
Read man page of composite for more information
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 12-20-2005, 11:53 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

I guess one can write a script to do automation:

Code:
for i in $(*.jpg)
do
  composite -watermark 25% wm.gif $i wm-$i
done
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Verify Fedora 7 ISO images to get rid of burn error problem deonitin Getting started tutorials 2 07-26-2007 05:41 PM
Custom CentOS installer Feeyo Linux software 4 07-05-2007 03:04 AM
Linux delete mail for root or any other user from a shell prompt raj Getting started tutorials 0 05-05-2007 02:36 AM
Linux GNOME change / create or make a custom logon banner chimu Getting started tutorials 0 12-19-2006 01:20 AM
Backup mysql from shell prompt or script raj Linux software 0 07-30-2006 12:17 AM


All times are GMT +5.5. The time now is 09:31 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36