Retourner au contenu associé (entrée de forum : Automatisation de réduction d'image)
Posté par Christophe Duparquet (site web personnel) le 10 février 2009 à 13:43. En réponse au message Automatisation de réduction d'image. Évalué à 4.
indy@hal:~$ identify 001.jpeg 001.jpeg JPEG 640x480 640x480+0+0 DirectClass 8-bit 46.4746kb indy@hal:~$ convert 001.jpeg -resize x400\> out.jpeg indy@hal:~$ identify out.jpeg out.jpeg JPEG 533x400 533x400+0+0 DirectClass 8-bit 33.6484kb indy@hal:~$ convert 001.jpeg -resize x800\> out.jpeg indy@hal:~$ identify out.jpeg out.jpeg JPEG 640x480 640x480+0+0 DirectClass 8-bit 45.5918kb
« J'ai pas Word, j'ai pas Windows, et j'ai pas la télé ! »
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: ImageMagick
Posté par Christophe Duparquet (site web personnel) . En réponse au message Automatisation de réduction d'image. Évalué à 4.
Ben si ! Mais faut pas s'attendre à ce que le manuel liste toutes les combinaisons d'options !
Voir les paragraphes « Only Shrink Larger Images ('>' flag) », « Only Enlarge Smaller Images ('<' flag) », le lien « -resize » puis le lien « Image Geometry » :
indy@hal:~$ identify 001.jpeg
001.jpeg JPEG 640x480 640x480+0+0 DirectClass 8-bit 46.4746kb
indy@hal:~$ convert 001.jpeg -resize x400\> out.jpeg
indy@hal:~$ identify out.jpeg
out.jpeg JPEG 533x400 533x400+0+0 DirectClass 8-bit 33.6484kb
indy@hal:~$ convert 001.jpeg -resize x800\> out.jpeg
indy@hal:~$ identify out.jpeg
out.jpeg JPEG 640x480 640x480+0+0 DirectClass 8-bit 45.5918kb
« J'ai pas Word, j'ai pas Windows, et j'ai pas la télé ! »