|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi
1. Let's assume I have a directory full of pictures (gif, jpg, tiff, etc.) Is there a program that will list them all with their respective sizes like pic1.gif : 240*360 pic2.jpg : 780*1024 .... 2. Is there a program that will allow me to cut off ore preserve some parts of a picture: +++++++++*** ***+++++++++ + +*** ***+ + + +*** ***+ + + +*** ***+ + +++++++++*** ***+++++++++ *** parts to cut away. So I need a program which will accept something like prog --keep l 400 or prog --keep l 20% to preserve the left 400 pixels or 20% respectively, or prog --cut l 400 or prog --cut l 20% to cut away the left 400 pixels or 20% respectively. The same should be possible for thr right side or the top / bottom part of the picture. There is no need for a center selection as applying a right and a left operation will yield the desired result. 3. Let's assume I have several pics, all the same size and I want to concatenate them into one big picture like +++ +++ +++ +1+ +2+ +3+ +++ +++ +++ +++ +++ +++ +++ +4+ +5+ +6+ +7+ +++ +++ +++ +++ +++ +++ +8+ +9+ +++ +++ +++ +++ +++ +++ +++ +A+ +B+ +C+ +D+ +E+ +++ +++ +++ +++ +++ So the programm should be able to process a list of file names with options for horizontal space and vertical space, like, e.g., 1 2 3 \n 4 5 6 7 \n 8 9 \n A B C D E --horspace=200dots --vertspace=400dots Is there a program that can do so? The crucial point here is: I want to arrange the pics in a grid with equal horizontal and vertical distances. Any suggestions? TIA Axel |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Axel Schlicht wrote:
> > 1. > Let's assume I have a directory full of pictures (gif, jpg, tiff, etc.) Is > there a program that will list them all with their respective sizes like > pic1.gif : 240*360 > pic2.jpg : 780*1024 > ... Use imagemagick: $ convert -verbose * | head -n 5 bottom-left.gif GIF 15x15 15x15+0+0 PseudoClass 16c 122 bottom-right.gif GIF 15x15 15x15+0+0 PseudoClass 16c 123 button-accept-jobs.gif GIF 93x20 93x20+0+0 PseudoClass 32c 527 button-add-class.gif GIF 80x20 80x20+0+0 PseudoClass 32c 484 button-add-printer.gif GIF 86x20 86x20+0+0 PseudoClass 32c 487 > 2. > Is there a program that will allow me to cut off ore preserve some parts of > a picture: > > +++++++++*** ***+++++++++ > + +*** ***+ + > + +*** ***+ + > + +*** ***+ + > +++++++++*** ***+++++++++ Use imagemagick: $ convert -- | grep crop -crop geometry cut out a rectangular region of the image -- Best regards | "The only way to really learn scripting is to write Cyrus | scripts." -- Advanced Bash-Scripting Guide |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Axel Schlicht wrote:
> > 3. > Let's assume I have several pics, all the same size and I want to > concatenate them into one big picture Install imagemagick and open file:///usr/share/doc/imagemagick/www/montage.html in your browser or $ montage -- -- Best regards | "The only way to really learn scripting is to write Cyrus | scripts." -- Advanced Bash-Scripting Guide |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Axel Schlicht wrote:
> > 3. > Let's assume I have several pics, all the same size and I want to > concatenate them into one big picture Use imagemagick: http://redux.imagemagick.org/script/montage.php or $ montage -- -- Best regards | "The only way to really learn scripting is to write Cyrus | scripts." -- Advanced Bash-Scripting Guide |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Hi Cyrus
Thanks for the fast answer. Will look into it. Axel |
|
![]() |
| Outils de la discussion | |
|
|