PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > processing / concatenating pictures
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

processing / concatenating pictures

Réponse
 
LinkBack Outils de la discussion
Vieux 09/09/2007, 13h45   #1
Axel Schlicht
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut processing / concatenating pictures

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
  Réponse avec citation
Vieux 09/09/2007, 14h25   #2
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: processing / concatenating pictures

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
  Réponse avec citation
Vieux 09/09/2007, 14h34   #3
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: processing / concatenating pictures

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
  Réponse avec citation
Vieux 09/09/2007, 14h46   #4
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: processing / concatenating pictures

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
  Réponse avec citation
Vieux 09/09/2007, 15h13   #5
Axel Schlicht
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: processing / concatenating pictures

Hi Cyrus
Thanks for the fast answer. Will look into it.

Axel
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h49.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11134 seconds with 13 queries