FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 01-31-2009, 06:42 PM
Dotan Cohen
 
Default Photograph file dates

1) How can I change the dates of files? I know about the touch
command, but I'd rather give her a GUI program. She has a few tens of
files to change the dates of.

2) How can I see the date information in a jpeg? Is there a program
that can use that information to set the date of a file as per the
exif information?

Thanks!

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 01-31-2009, 06:56 PM
Bruce Marshall
 
Default Photograph file dates

On Saturday 31 January 2009, Dotan Cohen wrote:
> 2) How can I see the date information in a jpeg? Is there a program
> that can use that information to set the date of a file as per the
> exif information?

I think digikam can do this

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 01-31-2009, 07:02 PM
Dotan Cohen
 
Default Photograph file dates

2009/1/31 Bruce Marshall <bmarsh@bmarsh.com>:
> On Saturday 31 January 2009, Dotan Cohen wrote:
>> 2) How can I see the date information in a jpeg? Is there a program
>> that can use that information to set the date of a file as per the
>> exif information?
>
> I think digikam can do this
>

But Digikam needs to import and move the files. Also, in this
particular case, Digikam is already used on the computer for managing
unrelated photos, and she doesn't want to mix them all up.

I am looking for a program that I can point at a photo (or a folder of
photos) and get to work.

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 01-31-2009, 07:08 PM
Paul Rumelhart
 
Default Photograph file dates

Dotan Cohen wrote:
> 1) How can I change the dates of files? I know about the touch
> command, but I'd rather give her a GUI program. She has a few tens of
> files to change the dates of.
>
> 2) How can I see the date information in a jpeg? Is there a program
> that can use that information to set the date of a file as per the
> exif information?
>
> Thanks!
>
>

I've never done this, but the krusader gui tool allows for new
useractions to be added to the list. Adding a "touch" useraction should
be relatively trivial as far as creating useractions goes.

Paul


--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 01-31-2009, 09:31 PM
Dotan Cohen
 
Default Photograph file dates

2009/1/31 Paul Rumelhart <godshatter@yahoo.com>:
> I've never done this, but the krusader gui tool allows for new
> useractions to be added to the list. Adding a "touch" useraction should
> be relatively trivial as far as creating useractions goes.
>

Well, Konqi does have the service menus that I could try to play with.

Thanks.

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 01-31-2009, 09:32 PM
Paul Lemmons
 
Default Photograph file dates

Dotan Cohen wrote:

1) How can I change the dates of files? I know about the touch
command, but I'd rather give her a GUI program. She has a few tens of
files to change the dates of.

2) How can I see the date information in a jpeg? Is there a program
that can use that information to set the date of a file as per the
exif information?

Thanks!


Hello Dotan,

Here is a perl script that I wrote some time back that sends files to
directories based on their dates and update the timestams on the file. I
think I remember you being able to code in perl. This may or may not
meet the need but I think it is close to what you are asking for. Take a
look and let me know if you need any assistance modifying it.


I think "apt-get install libimage-info-perl" will get you all the parts
you need to run the script.


-Paul

#!/usr/bin/perl -w
use Image::Info qw(image_info dim);

$testing = 0;
$fromImageDir = "/home/paul/pics";
$toImageDir = "/home/paul/newPics";

opendir(PICS,$fromImageDir) or die "Unable to open $fromImageDir:$!
";
while ($fileName = readdir(PICS))
{
if (-f "$fromImageDir/$fileName" and $fileName =~ /jpg$/i)
{
$info = image_info("$fromImageDir/$fileName");
if ($error = $info->{error})
{
print "Can't parse image info for file:
$fromImageDir/$fileName, Reason: $error
";

}
else
{
if (defined($info->{'DateTimeOriginal'}) and
$info->{'DateTimeOriginal'} !~ /^s*$/ and
$info->{'DateTimeOriginal'} !~ /^0000/)
{
$newDir = substr($info->{'DateTimeOriginal'},0,10);
$newDir =~ s/:/-/g;

$timestamp = $info->{'DateTimeOriginal'};
$timestamp =~ s/[: ]//g;
if (length($timestamp) == 14)
{
substr($timestamp,12,0)= '.';
}

print "$fileName: $newDir, Original Date:
".$info->{'DateTimeOriginal'}."
";

if (!(-e "$toImageDir/$newDir"))
{
if ($testing)
{
print "Would make the directory: $toImageDir/$newDir
";
}
else
{
mkdir("$toImageDir/$newDir",0755) or die "Unable to
create directory: $toImageDir/$newDir: $!
";

}
}

if (-e "$toImageDir/$newDir/$fileName")
{
print "... already exists, skipping
";
}
else
{
if ($testing)
{
print "Would move file $fromImageDir/$fileName to
$toImageDir/$newDir/$fileName
";

print "Would set timestamp to: $timestamp
";
}
else
{
if
(rename("$fromImageDir/$fileName","$toImageDir/$newDir/$fileName"))

{
`touch -t $timestamp $toImageDir/$newDir/$fileName`;
print "... moved successfully and timestamp updated
";
}
else
{
print "... Unable to move $fileName from
$fromImageDir to $toImageDir/$newDir: $!
";

}
}
}
}
else
{
print "No date found in picture exif data for picture:
$fileName
";

}
}
}
}

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 01-31-2009, 09:51 PM
Paul Lemmons
 
Default Photograph file dates

Paul Lemmons wrote:

Dotan Cohen wrote:

1) How can I change the dates of files? I know about the touch
command, but I'd rather give her a GUI program. She has a few tens of
files to change the dates of.

2) How can I see the date information in a jpeg? Is there a program
that can use that information to set the date of a file as per the
exif information?

Thanks!


Hello Dotan,

Here is a perl script that I wrote some time back that sends files to
directories based on their dates and update the timestams on the file.
I think I remember you being able to code in perl. This may or may not
meet the need but I think it is close to what you are asking for. Take
a look and let me know if you need any assistance modifying it.


I think "apt-get install libimage-info-perl" will get you all the
parts you need to run the script.


-Paul

<code snip>
Just read my own post and I think it needs a little explaining. I wrote
it for myself so it has no comments. Not my normal style when sharing
code. Anyway...


The first three assignments determine how the program will run and what
it will do. Here is what they mean:


$testing = 0; # 0 = doit, 1 = just tell me what you would do
$fromImageDir = '...'; # this is the directory where your pictures reside
$toImageDir = '...'; # This is where your pictures will be moved (i.e
not copied)


The $toImageDir will be a base directory. In it directories will be
created in the format:"YYYY-MM-DD". For example "2009-01-31". The
pictures will be moved into the directories that match the day they were
taken.


I also notice that you asked for a GUI that your wife could use. I
missed that when I first replied. Maybe, you could set up an icon that
evokes this script. If your input and output directories are always the
same that could work for her. If you need to update the input and out
put directories, this may not be a good solution.


--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 01-31-2009, 10:12 PM
Dotan Cohen
 
Default Photograph file dates

Thanks, Paul. I don't really know perl, but I can follow along and see
what's happening in the code. It looks like perl has built in bindings
for reading exif data, that's great!

> I also notice that you asked for a GUI that your wife could use.

I could set up Konqueror so that the script will be in the Open With... menu.

It's not quite what I was looking for, but it should get the job done. Thanks.

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 02-01-2009, 12:15 PM
Arnaud bourree
 
Default Photograph file dates

What's about KRename?
It is what I used to rename my jpg

Arnaud

2009/2/1 Dotan Cohen <dotancohen@gmail.com>

Thanks, Paul. I don't really know perl, but I can follow along and see

what's happening in the code. It looks like perl has built in bindings

for reading exif data, that's great!



> I also notice that you asked for a GUI that your wife could use.



I could set up Konqueror so that the script will be in the Open With... menu.



It's not quite what I was looking for, but it should get the job done. Thanks.



--

Dotan Cohen



http://what-is-what.com

http://gibberish.co.il



א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي

А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я

а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я

ä-ö-ü-ß-Ä-Ö-Ü

--

kubuntu-users mailing list

kubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users



--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 02-01-2009, 12:28 PM
Dotan Cohen
 
Default Photograph file dates

2009/2/1 Arnaud bourree <arnaud.bourree@gmail.com>:
> What's about KRename?
> It is what I used to rename my jpg
>

I don't see where it can read exif data. The exif data is correct,
only the file time is wrong.

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 

Thread Tools




All times are GMT. The time now is 02:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org