LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2006, 08:40 PM   #1
sunpascal
Member
 
Registered: Jan 2005
Distribution: Debian
Posts: 104

Rep: Reputation: 15
Sort Pictures in KDE


Hi,
I have a CD with pictures that I burned using windows quite a while ago. The pictures are named
Picture (1).jpg
Picture (2).jpg
Picture (3).jpg
and so on. However none of the filenames have a leading zero, so Konqueror sorts them differently. It is really hard to find the right pictures. Is there a way to rename these pictures (using an image viewer or script) or to sort them differently?
Also, are there any good image viewers? The build in Koqueror viewerr is not sufficient for me. But something like the Windows "Picture and Fax Viewer" would be good. I use KDE 3.5 on Debian.
Thanks for your help!
sunpascal
 
Old 01-28-2006, 10:41 PM   #2
oneferna
Member
 
Registered: May 2003
Distribution: Fedora Core 3, Gentoo
Posts: 47

Rep: Reputation: 15
For renaming pictures I like a program called xnview:
http://www.xnview.com/

You can also make a lot of other changes to the pictures with it.
 
Old 01-28-2006, 11:21 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by sunpascal
Hi,
I have a CD with pictures that I burned using windows quite a while ago. The pictures are named
Picture (1).jpg
Picture (2).jpg
Picture (3).jpg
and so on. However none of the filenames have a leading zero, so Konqueror sorts them differently. It is really hard to find the right pictures. Is there a way to rename these pictures (using an image viewer or script) or to sort them differently?
Also, are there any good image viewers? The build in Koqueror viewerr is not sufficient for me. But something like the Windows "Picture and Fax Viewer" would be good. I use KDE 3.5 on Debian.
Thanks for your help!
sunpascal
I'm not certain that I understand what you're trying to
say about the sort order, or what exactly your problem
is with it...

As for the "other tool" I'd recommend having a look at
gqview and endeavour 2; both very nice FOSS tools.


Cheers,
Tink
 
Old 01-28-2006, 11:23 PM   #4
sunpascal
Member
 
Registered: Jan 2005
Distribution: Debian
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks for your replies.

XnViewer seem to be a good program and support numeric sorting.

My problem is that Konqueror does not sort the pictures properly. It gives me
Picture 1
Picture 10
Picture 100
Picture 101
Picture 102
...

rather than

Picture 1
Picture 2
Picture 3
Picture 4
Picture 5
...

So, either I get Konqueror to sort it properly or I need to rename every file so that it has zeros in front.Like:
Picture 001
Picture 002
Picture 003
...
Picture 010
Picture 111
Picture 112
This would be sorted properly, right?

So, since I have a lot of pictures, I thought there might be a picture viewer or rename utility to help me out.
Do you know what I mean?

sunpascal

Last edited by sunpascal; 01-28-2006 at 11:35 PM.
 
Old 02-03-2006, 09:01 PM   #5
sunpascal
Member
 
Registered: Jan 2005
Distribution: Debian
Posts: 104

Original Poster
Rep: Reputation: 15
I think the easiest way was to rename all files so they all have zeroes in front. I used a small bash script.
thanks, for your help.
sunpascal
 
Old 02-04-2006, 12:05 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sorry - I assumed that renaming was no option, and I knew no
other viewers that would have supported what you want.

As for the renaming, the command rename would have been
what you wanted.

Something like:
rename picture picture0 picture?.jpg
rename picture picture0 picture??.jpg
would have handled any number between 1 and 999


Cheers,
Tink
 
  


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
Pictures brianthegreat Linux - Software 3 11-14-2005 12:16 PM
screensaver pictures... talkinggoat Linux - Software 1 07-19-2004 08:29 PM
Viewing pictures from kmail (KDE 3.2) iainr Linux - Software 0 05-31-2004 06:09 AM
How to sort files in a directory by date in KDE? Ace_Azzameen Linux - Software 7 05-24-2004 02:49 PM
KDE 3.1 hangs on start...sort of... tcaptain Linux - Software 0 03-17-2003 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:39 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