Maitiro ekushandisa zvisirizvo mifananidzo kubva kune iyo terminal

ImageMagick chishandiso chinotibvumidza isu kushandisa mifananidzo kuburikidza netambo yekuraira uye iyo inoshandiswa kune ese mafomati. Nayo, zvinokwanisika kugadzirisa zviito pamifananidzo iri mune dhairekitori (kutendeuka, kushandura saizi, nezvimwe ...
Ngatione runyorwa rweanobatsira ImageMagick mirairo:

Tora ruzivo kubva pamufananidzo.

identify -ping image.png

Tora rumwe ruzivo.

identify -verbose image.png

Ziva iro runyorwa rwemavara anoshandiswa mumufananidzo.

identify -list color image.png

Chinja mufananidzo wePNG kuva JPG

convert image.png image.jpg

Chinja mufananidzo wePNG kuita JPG zvichiratidza mhando yekutendeuka.

convert -quality 96 image.png image.jpg

Chinja mifananidzo yese yePNG kuita JPG iri mufaira

mogrify -format png *.jpg

Chinja mifananidzo yese (* .jpg, * .png) kuti ive PDF

convert images*.* archivo.pdf

Gadziridza mufananidzo

convert -resize 48×48 image.png image-mini.png

Resize mifananidzo yese mufaira

mogrify -resize 48×48 *.png

Resize mufananidzo nekutsanangura upamhi

convert -resize 620x image.png image-620.png

Resize mufananidzo nekutsanangura kukwirira

convert -resize x100 image.png image-100.png

Gadzira iyo Favicon

convert -colors 256 -resize 16×16 image.jpg favicon.ico

Chinja mufananidzo wemuvara kuti uve mutema nemachena

convert -type image.jpg image-noir-blanc.jpg

Wedzera 1 pixel yakajeka muganho wakakomberedza mufananidzo

convert -bordercolor Transparent -border 1×1 image.png image-borde.png

Wedzera 10 pixel nhema muganho wakakomberedza mufananidzo

convert -bordercolor #000000 -border 10×10 image.png image-borde.png

Gadzira yakashata yemufananidzo

convert -negate image.png image-negate.png

Shandura mufananidzo wakamira

convert -flip image.png image-inversee.png

Shandura mufananidzo kubva kuruboshwe kuenda kurudyi

convert -flop image.png image-inversee.png

Shandisa iyo ImageMagick GUI

display image.png


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira iyo data: Miguel Ángel Gatón
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   kudzai akadaro

    urikushandisa mogrify ?? tarisa iwo muenzaniso mune iyo posvo.
    Mufaro! Paul.

  2.   RubenGnu akadaro

    Wakateedzera nekunamatira here?

    Inoisa tsamba 'x' pachinzvimbo chechiratidzo che '×' icho chinoiswa nemunyori wenyaya papeji.

    Reply with quote

    Rubén

  3.   ainhoaredam akadaro

    hola
    Ndanga ndichizviongorora uye zvakanaka, asi iwo murairo wekugadzira favicon haushande kwandiri, iyi ndiyo mhosho yainondipa:
    shandura: isina kukodzera nharo yesarudzo `-resize ': 16 × 16 @ kukanganisa / convert.c / ConvertImageCommand / 2343.
    Kwazisa

  4.   katherine akadaro

    chii chinonzi chinouraya

  5.   jatani akadaro

    Yakanaka kwazvo sarudzo yemirairo uye kujekesa mune yavo syntax. Pakutanga ndakave nedambudziko rakawanda kuyedza kushandisa shandura kuti ndigadzirise batch remifananidzo uye ikozvino kuti ini ndinoshandisa mogrify nechinangwa chimwe chete zvese zvakashanda zvakanaka. Ndatenda zvikuru Pablo.

  6.   Enrique akadaro

    Mupiro mudiki kune ino yakajeka post!

    Kuchinjira kuB & W:

    shandura -monochrome image.png image-bw.png

    Reply with quote

    1.    ngatishandise linux akadaro

      Kutenda nemupiro!
      Kumbundirana! Paul

  7.   Moises Garnica Radilla akadaro

    Mhoroi, ini ndaona ruzivo urwu pane mazhinji mawebhusaiti!
    Mubvunzo: Ndingaite sei kukwira kune imwe dhairekitori?
    Semuenzaniso: shandura -scale 50% -quality 80% * .jpg> kuyera /
    Muenzaniso haushandi, unofanirwa kunge uri sei kubva mufolda x kuenda kune subfolder x / scaled?
    Pamberi pekutenda zvikuru!

    1.    Gumi nenhanhatu akadaro

      Ndakaigadzirira script uye iwo akachinjwa anochengetwa mune imwe dura.
      Ini ndinoisa script mukati mefaira umo ini ndine zvese zvifananidzo zvandinoda kugadzirisa, uye ndozviita kubva paconsole (iyo faira inofanirwa kuve nemvumo yekuita). Iyo kodhi yandinozoisa inotevera, unoinamatira mufaira uye ndokupa zita raunoda (ini ndinoisa .sh kumagumo kuziva kuti iri chinyorwa nekungoverenga zita refaira).

      Ini ndinoteedzera uye ndinamate kodhi yacho kana ikakubatsira:

      #! / bin / bash
      ### Chinja saizi yemufananidzo unoratidza hupamhi nehunhu
      # shandura -quality 86 -resize 620x image.png mufananidzo-620.png
      ### Chinja saizi yemufananidzo inoratidza kukwirira uye mhando
      # shandura -quality 86 -resize x100 image.png mufananidzo-100.png

      + ruzivo: https://blog.desdelinux.net/como-manipular-imagenes-desde-el-terminal/

      #
      # =============================================== ==============
      Dhairekitori =pwd
      cd $ CHIRANGARIDZO
      resized_directory = »resized_img»
      $ (mkdir "$ resized_directory" 2> / dev / null)
      TEMP = »img_list» # yemukati faira rechinguva
      #
      # runyorwa rwe dhairekitori mifananidzo mune yenguva pfupi faira
      ls * .png 2> / dev / null >> $ resized_directory / $ TEMP; ls * .PNG 2> / dev / null >> $ resized_directory / $ TEMP;
      ls * .jpg 2> / dev / null >> $ resized_directory / $ TEMP; ls * .JPG 2> / dev / null >> $ resized_directory / $ TEMP;
      ls * .jpeg 2> / dev / null >> $ resized_directory / $ TEMP; ls * .JPEG 2> / dev / null >> $ resized_directory / $ TEMP;
      ls * .gif 2> / dev / null >> $ resized_directory / $ TEMP; ls * .GIF 2> / dev / null >> $ resized_directory / $ TEMP
      #
      #changing mifananidzo mukati medhairekitori
      echo -n "Kugadzira, ndokumbira umirire"
      paunenge uchiverenga mufananidzo
      do
      echo -n "."
      shandura -quality 90 -resize 1000x $ image $ resized_directory / $ image
      zvaitwa <$ resized_directory / $ TEMP
      wakanda kunze ""
      #
      # bvisa iyo pfupi faira
      rm $ resized_directory / $ TEMP
      echo "yakapedza kubudirira"

  8.   linux pro akadaro

    ndatenda chaizvo

bool (chokwadi)