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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-12-2014, 12:28 AM
|
#1
|
Member
Registered: Feb 2008
Posts: 45
Rep:
|
sort photos manually then list sorted filenames to text file
Is there some photo viewer or other tool to sort photos manually and then save the sorted filename list to a text file (for use in a script)?
I formerly used Picasa, which saved the sort order in a fairly transparent .pal file, but Google now hides this information somewhere I can't find.
|
|
|
03-12-2014, 02:40 AM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,663
|
in the folder you can run something like
but the order in a folder will be the system default
and not a "list" of a album
sorted as how ?
1.png
2.png
3.png
or what
|
|
|
03-12-2014, 10:12 AM
|
#3
|
Member
Registered: Feb 2008
Posts: 45
Original Poster
Rep:
|
Quote:
Originally Posted by John VV
sorted as how ?
|
I want a list of filenames in the order that I have manually selected. I will then use that list in a script to rename those files, prepending an index, so that subsequent alphanumeric sorting will use the order that I have manually selected.
I need a viewer to see what I am doing for the manual sort, then some way to get the result into a text file. Prepending the index number to the old filename preserves whatever information was in the old filename. I do this with audio files, but for those, the filename alone identifies the file. Photos require the help of some kind of viewer.
|
|
|
03-12-2014, 10:26 AM
|
#4
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by John VV
in the folder you can run something like
but the order in a folder will be the system default
and not a "list" of a album
sorted as how ?
1.png
2.png
3.png
or what
|
i think it should be for a single column list.
|
|
|
03-12-2014, 10:36 AM
|
#5
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by carolus
I want a list of filenames in the order that I have manually selected. I will then use that list in a script to rename those files, prepending an index, so that subsequent alphanumeric sorting will use the order that I have manually selected.
I need a viewer to see what I am doing for the manual sort, then some way to get the result into a text file. Prepending the index number to the old filename preserves whatever information was in the old filename. I do this with audio files, but for those, the filename alone identifies the file. Photos require the help of some kind of viewer.
|
you may want to check out nautilus scripts (i see one for dumping exif data on the g-scripts site); particularly the NAUTILUS_SCRIPT_SELECTED_FILE_PATHS variable.
|
|
|
03-12-2014, 12:01 PM
|
#6
|
Member
Registered: Feb 2008
Posts: 45
Original Poster
Rep:
|
Quote:
Originally Posted by schneidz
you may want to check out nautilus scripts (i see one for dumping exif data on the g-scripts site); particularly the NAUTILUS_SCRIPT_SELECTED_FILE_PATHS variable.
|
But I want to export the sort order that I have manually selected using the viewer, not anything in the original file. The viewer must be able to sort (like Picasa), and then able to export the manually selected sort order (like Picasa used to do in .pal files).
|
|
|
03-12-2014, 12:02 PM
|
#7
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
$ ls | tee list.txt
Will give you a list of files in a file that you can sort manually. Cut and paste style.
You can perma-sort it by renaming the files in a naming convention that sorts by ascii values. By prefixing timestamp information in front of the files for example.
$ date +"%Y%m%d%H%M%S%N"
|
|
|
03-12-2014, 12:44 PM
|
#8
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by carolus
But I want to export the sort order that I have manually selected using the viewer, not anything in the original file. The viewer must be able to sort (like Picasa), and then able to export the manually selected sort order (like Picasa used to do in .pal files).
|
couldnt nautilus be used as some kind of viewer ? if you were to create a nautilus script (or expand on the meta-exif-dump script) couldnt you export the list of files in NAUTILUS_SCRIPT_SELECTED_FILE_PATHS in sorted order ?
mite be more complicated than you need (not sure about your environment); but just a suggestion.
|
|
|
03-12-2014, 02:05 PM
|
#9
|
Member
Registered: Feb 2008
Posts: 45
Original Poster
Rep:
|
Quote:
Originally Posted by Shadow_7
$ ls | tee list.txt
Will give you a list of files in a file that you can sort manually. Cut and paste style.
You can perma-sort it by renaming the files in a naming convention that sorts by ascii values. By prefixing timestamp information in front of the files for example.
$ date +"%Y%m%d%H%M%S%N"
|
That's what I'm doing now: sorting in Picasa where I can see what I'm doing, then tediously making a matching file list by hand.
Before version 3 of Picasa I could simply extract the file list from Picasa's .pal file.
There are lots of other file viewers and editors available, and I'm hoping one will let me do what I was doing with the old Picasa.
If the viewer allows manual sorting, it has to store the sequence somewhere, and I just want to export it to a text file.
|
|
|
03-12-2014, 03:08 PM
|
#10
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,663
|
picassa ( well G+ photo) is a online album
you will need to use the tools on your g+ page
|
|
|
03-12-2014, 03:27 PM
|
#11
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
mirage is decent for viewing images in a directory. Shows gif images as well. Not exactly featureful or fast if the images are huge, but a nice way to see what you're looking at, literally.
|
|
|
03-12-2014, 04:23 PM
|
#12
|
Member
Registered: Feb 2008
Posts: 45
Original Poster
Rep:
|
Quote:
Originally Posted by John VV
picassa ( well G+ photo) is a online album
you will need to use the tools on your g+ page
|
I use the offline version. I like to keep my data on my own hardware and in a nonproprietary format.
|
|
|
03-13-2014, 12:43 AM
|
#13
|
Member
Registered: Feb 2008
Posts: 45
Original Poster
Rep:
|
Irfanview has the desired capability and runs under Wine. (Under heading "File", choose "save selected filenames as TXT"). But is there no native Linux photo viewer or editor that can do this?
Last edited by carolus; 03-13-2014 at 12:53 AM.
Reason: clarification
|
|
|
03-13-2014, 09:28 AM
|
#14
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
i was able to do this in gthumb.
clik on view -> sort -> sort by date/name/size ...
highlight the files you are interested in. rite-clik -> copy and paste in a text file.
|
|
|
03-13-2014, 10:39 AM
|
#15
|
Member
Registered: Feb 2008
Posts: 45
Original Poster
Rep:
|
Quote:
Originally Posted by schneidz
i was able to do this in gthumb.
clik on view -> sort -> sort by date/name/size ...
highlight the files you are interested in. rite-clik -> copy and paste in a text file.
|
But these photos come from a scanner, not a camera, so it is useless to sort by date/name/size. I found the following about gthumb:
http://sourcepole.com/manually-sort-images
Quote:
you first need to create a “catalog” and within the catalog a “library” which will finally allow you to manually sort your images. All of which is not documented.
Once you’ve sorted your images, you’d possibly want to export the sorting? Again, no trace of any help or documentation: gthumb catalogs are saved under $HOME/.local/share/gthumb/catalogs/foobar.catalog.
|
So maybe gthumb is hackable to do this, or maybe the feature is now supported. I would welcome more information.
|
|
|
All times are GMT -5. The time now is 09:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|