nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-12-2005, 01: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
  #2 (permalink)  
Old 20-12-2005, 11:10 AM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

composite command can be use to setup watermark. As name suggest composite composites (combines) 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.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 20-12-2005, 10:53 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
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


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 Off


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 26-07-2007 04:41 PM
Custom CentOS installer Feeyo Linux software 4 05-07-2007 02:04 AM
Linux delete mail for root or any other user from a shell prompt raj Getting started tutorials 0 05-05-2007 01:36 AM
Linux GNOME change / create or make a custom logon banner chimu Getting started tutorials 0 19-12-2006 12:20 AM
Backup mysql from shell prompt or script raj Linux software 0 29-07-2006 11:17 PM


All times are GMT +5.5. The time now is 06:12 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38