LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09: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, 11: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-29-2006, 12:21 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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-29-2006, 12:23 AM   #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-29-2006 at 12:35 AM.
 
Old 02-03-2006, 10: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, 01:05 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 07:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration