LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2009, 02:02 PM   #1
mkrems
Member
 
Registered: Jan 2008
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 15
picasa from command line


hi there, i was wanting to use picasa (using the export function) to watermark my photos but it is really annoying to do in the gui. all repetitive tasks naturally want to be scripted. does anyone know how to do this? basically i want to be able to tell what year the image was taken and then watermark all my photos automatically. thanks!
 
Old 04-04-2009, 02:18 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
No idea about how to do it in picassa but if I wanted to do what you want to do, I'd use ImageMagick. Specifically http://www.imagemagick.org/Usage/annotating/
It's probably already installed on your machine, if not check the repos and it'll be there.


Though I have the feeling there ought to be a much better way to do that but can't just figure one out right now.

Code:
for i in *.jpg;do
   year=$(ls --full-time ${i} | awk '{print $6}' | cut -d - -f 1)
   see_linked_examples_for_a_convert_command_to_use_here_you_can_use_the_variable_year_in_the_text
done

I have a feeling there should be a much better way to get the year a file was modified than the example above.

Last edited by arizonagroovejet; 04-04-2009 at 02:18 PM. Reason: forgot do
 
Old 04-04-2009, 08:30 PM   #3
mkrems
Member
 
Registered: Jan 2008
Distribution: Ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by arizonagroovejet View Post
No idea about how to do it in picassa but if I wanted to do what you want to do, I'd use ImageMagick. Specifically http://www.imagemagick.org/Usage/annotating/
It's probably already installed on your machine, if not check the repos and it'll be there.


Though I have the feeling there ought to be a much better way to do that but can't just figure one out right now.

Code:
for i in *.jpg;do
   year=$(ls --full-time ${i} | awk '{print $6}' | cut -d - -f 1)
   see_linked_examples_for_a_convert_command_to_use_here_you_can_use_the_variable_year_in_the_text
done

I have a feeling there should be a much better way to get the year a file was modified than the example above.
Thanks for the info. Although I like picasa for the watermark because it automatically decides whether the font should be white or black based on the surrounding color in the image which is nice. Do you know if it is even possible to use Picasa from the command line?
 
Old 04-05-2009, 03:26 AM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by mkrems View Post
Do you know if it is even possible to use Picasa from the command line?
I don't know. If it is I'm sure the functionality will documented on Google's website.
Though Picasa for Linux is not a native Linux app, it runs under a bundled version of Wine, which makes me doubt it has any sort of significant commandline options. I could be wrong though.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM
Picasa: Please help me with deleting pictures from Picasa brjoon1021 Linux - Software 1 08-14-2007 04:22 PM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration