LinuxQuestions.org
Help answer threads with 0 replies.
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 11-06-2009, 11:51 PM   #1
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Rep: Reputation: 44
Question sorting images by dimension in Fedora 11


My Friends,

Please excuse me if it seems like I'm wasting your time, but I'd like to take a second to thank you all for your support and patience during my transition to linux. I couldn't have done it without this forum.

Anyway, what I'm looking to do is rather simple, and I'm embarrassed I need to ask which program to use to do this. I run KDE and dolphin doesn't give me any options in folders full of images to sort by dimension. I just want to skim out all the ones that are 1280 by 1024 or larger. Is there a command for this?
 
Old 11-07-2009, 01:20 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
you can see here for similar example, change the values as needed
 
Old 11-13-2009, 09:17 PM   #3
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Original Poster
Rep: Reputation: 44
I appreciate your help, but this didn't work for me. I copied the command, put in the appropriate directory, and hit enter but nothing happened. I also don't know what the appropriate command would be as I don't want to resiwe them, just move them if they're over a certain size.
 
Old 11-13-2009, 09:31 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
that full script is for RESIZING images using imagemagick
the part ghostdog74 is talking about is
Code:
   if ( arr[1] > 200 && arr[2] > 200 ) {
part where 200 is the image size

you need to wright your own script to select images bigger than 1024

PS. DO NOT GO AROUND AND RUN RANDOM SCRIPTS posted by people one of them just might have you deleting your OS like this "rm -f / "

Last edited by John VV; 11-13-2009 at 09:34 PM.
 
Old 11-13-2009, 09:44 PM   #5
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by thezerodragon View Post
I appreciate your help, but this didn't work for me. I copied the command, put in the appropriate directory, and hit enter but nothing happened. I also don't know what the appropriate command would be as I don't want to resiwe them, just move them if they're over a certain size.
i said its similar, i did not say its exactly what you want. you just want to skim out the dimensions right? so the if() statement does just that. change the values as needed. if you want to move them, just do
Code:
if ( ... ) {
  cmd = "mv "$1" /destination"
  system(cmd)
}
 
Old 11-13-2009, 09:45 PM   #6
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by John VV View Post

PS. DO NOT GO AROUND AND RUN RANDOM SCRIPTS posted by people one of them just might have you deleting your OS like this "rm -f / "
only if they have the naive assumption that everything works exactly if they cut and paste, and are too lazy to read the source code and understand what it does.
 
Old 11-13-2009, 10:31 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
ghostdog74
i still like the bash "fork" script .
and NO i will not post that,it is way to wicked .

thezerodragon
you might want to learn some shell scripting
some guides
http://www.linuxcommand.org/index.php
http://www.linuxcommand.org/writing_shell_scripts.php

Linus IS NOT like MS Windows not everything is done using a GUI
 
Old 11-13-2009, 10:57 PM   #8
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by John VV View Post
ghostdog74
i still like the bash "fork" script .
and NO i will not post that,it is way to wicked .
its already written and discussed in computer security books and published to the whole world.
 
Old 11-13-2009, 11:03 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
true but i think it is one of the baned things on the forum

i am getting way off topic

he will still need ImageMagick installed so that "-identify" can be used
 
Old 11-13-2009, 11:12 PM   #10
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by John VV View Post
he will still need ImageMagick installed so that "-identify" can be used
any tool that reads images and get their meta is fine. Its just that i have ImageMagick with me, hence the solution. if OP wants, he can even program in languages like Perl or Python and install modules specifically for that.
 
  


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
Will Fedora 7/8 X86_64 run on a Dimension 8400? drick Fedora - Installation 5 01-04-2008 07:41 PM
Fedora 7 x86_64 won't install on Dimension 8400 drick Fedora - Installation 0 09-17-2007 07:52 PM
Fedora Core 6 on Dell Dimension E520 sandyman Linux - Hardware 6 01-25-2007 04:07 PM
Fedora 4 on Dell Dimension 4300 meb3v Linux - Software 4 05-15-2006 07:58 PM
Fedora Core 4 on Dell Dimension 8200 ieduarte73 Linux - Newbie 3 08-28-2005 05:41 AM


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