Otu esi etinye ImageMagick na Rocky Linux 8

ImageMagick bụ ngwa mepere emepe arụnyere dị ka nkesa ọnụọgụ abụọ ma ọ bụ dị ka koodu isi mmalite. ImageMagick nwere ike ịtụgharị, gụọ, dee na hazie onyonyo raster. ImageMagick dịkwa n'ofe nyiwe isi niile, gụnyere Android, BSD, Linux, Windows, Mac OSX, iOS, na ọtụtụ ndị ọzọ.

N'ime nkuzi a, ị ga-amụta Otu esi etinye ImageMagick na Rocky Linux 8 iji DNF ma ọ bụ usoro ntinye isi mmalite.

Prerequisites

  • OS akwadoro: Rocky Linux 8.+.
  • Akaụntụ onye ọrụ: Akaụntụ onye ọrụ nwere sudo ma ọ bụ ohere mgbọrọgwụ.

Melite Sistemụ Ọrụ

Melite gi Nkume linux Sistemụ arụmọrụ iji hụ na ngwugwu niile dị adị adịla ugbu a:

sudo dnf upgrade --refresh -y

Nkuzi a ga-eji ya sudo iwu na na-eche na ị nwere ọnọdụ sudo.

Iji nyochaa ọkwa sudo na akaụntụ gị:

sudo whoami

Ihe atụ na-egosi ọkwa sudo:

[joshua@rockylinux ~]$ sudo whoami
root

Ka ịtọlite ​​akaụntụ sudo dị adị ma ọ bụ ọhụrụ, gaa na nkuzi anyị na Otu esi etinye onye ọrụ na Sudoers na Rocky Linux.

Iji mgbọrọgwụ akaụntụ, jiri iwu na-esonụ na paswọọdụ mgbọrọgwụ banye.

su

Advertisement


Nhọrọ 1 - Wụnye ImageMagick site na DNF

Ụzọ kachasị mfe na nke akwadoro iji wụnye bụ iji Njikwa ngwugwu DNF maka nkezi onye ọrụ. Ihe iseokwu a bụ na iyi ngwa ngwa Rocky Linux 8 anaghị abịa na ngwugwu ahụ, yabụ ị ga-achọ ịwụnye ebe nchekwa EPEL wee mee ka ọ rụọ ọrụ. "PowerTools."

Mbụ, wụnye Ụlọ ọrụ EPEL na-eji iwu a:

sudo dnf install epel-release -y

Na-esote, mee ka ebe nchekwa PowerTools:

sudo dnf config-manager --set-enabled powertools

Ugbu a tinye ImageMagick site na iji iwu a:

sudo dnf install ImageMagick ImageMagick-devel

Ihe atụ mmepụta:

Otu esi etinye ImageMagick na Rocky Linux 8

Ụdị Y wee pịa Tinye igodo ịga n'ihu na mezue nrụnye.

Ozugbo echichi ahụ mechara, nyochaa nrụnye site na ịlele ihe nrụpụta na ụdị.

convert --version

Ihe atụ mmepụta:

Otu esi etinye ImageMagick na Rocky Linux 8

A ga-edozi mmelite site na iji iwu melite sistemu ọkọlọtọ.

sudo dnf upgrade --refresh -y

Iji wepu ImageMagick na sistemu gị, jiri iwu a.

sudo dnf autoremove ImageMagick ImageMagick-devel -y

Mara, nke a ga-ewepụkwa ndabere niile ejighi ya maka iwepụ kpamkpam.

Nhọrọ 2 - Wụnye ImageMagick site na Isi Iyi

A naghị atụ aro nhọrọ nrụnye a maka nkezi onye ọrụ. Otú ọ dị, n'ihi na ndị chọrọ iji isi iyi version, na-eso nzọụkwụ n'okpuru.

Nke mbụ, gbaa mbọ hụ na etinyere GIT:

sudo dnf install git -y

Ugbu a mechie GIT:

sudo git clone https://github.com/ImageMagick/ImageMagick.git /usr/local/src/ImageMagick

Mara, dabere n'otu esi edobe GIT gị, yana enwere ike iji ya sudo iwu.

Osote, CD n'ime akwụkwọ ndekọ aha:

cd /usr/local/src/ImageMagick

Ugbu a wụnye ndabere achọrọ:

sudo dnf install make automake cmake gcc libtool-ltdl-devel

Ị ga-achọ ugbu a iji ./configure iwud:

sudo ./configure

Ndị ọrụ dị elu chọrọ ihe ndị ọzọ site na ImageMagick ọ na-atụ aro iji - na-modul iru:

sudo ./configure --with-modules

Ugbu a ị wulitela ma hazie gburugburu, ọ bụ oge iji iwu ahụ chịkọta ya -eme ka.

sudo make

Aghụghọ dị mma bụ ịkọwapụta ya -j n'ihi na nke a nwere ike ịbawanye ọsọ nke mkpokọta ma ọ bụrụ na ị nwere ihe nkesa dị ike.

Dịka ọmụmaatụ, LinuxCapable nkesa nwere 6 CPUs, enwere m ike iji 6 niile ma ọ bụ opekata mpe jiri 4 ruo 5 mee ka ọsọ ọsọ.

Ọmụmaatụ naanị:

sudo make -j 6

Mgbe ị chịkọtachara koodu mmalite, tinye iwu nwụnye na ọdụ gị:

sudo make install

Mgbe echichi ahụ gasịrị, ịkwesịrị ịhazi njikọ njikọ oge na-arụ ọrụ ike:

sudo ldconfig /usr/local/lib

Ugbu a nyochaa nrụnye wee wuo:

magick --version

Ihe atụ mmepụta:

Otu esi etinye ImageMagick na Rocky Linux 8

Na-emelite ImageMagick site na Isi Iyi

Ọ bụrụ na i tinye ImageMagick site na isi iyi site na iji git, megharịa usoro nrụnye ahụ mgbe i wepụrụ mgbanwe ọhụrụ ọ bụla site na isi mmalite Github site na iji iwu njedebe ndị a:

sudo git pull

Ozugbo ebubatara, megharịa usoro iji wụnye mmelite ahụ.


Advertisement


Nwalee & Nyochaa ImageMagick

Ụzọ kachasị ọsọ iji nwalee ma ọ bụrụ ImageMagick na-arụ ọrụ bụ iji iwu ntụgharị akara dị ka ndị a:

convert logo: logo.gif

Ọ bụrụ na ị wụnye ImageMagick site na iji ma ọ bụ iji DNF repository ma ọ bụ ImageMagick isi iyi, ule logo.gif ga-adị na ebe obibi ndekọ.

mbụ CD na ndekọ ụlọ gị, jiri nke gị dochie aha njirimara:

cd /home/username/

Wee depụta ndekọ ahụ site na iji ls iwu:

ls

Ihe Nlereanya:

Otu esi etinye ImageMagick na Rocky Linux 8

Iwu njedebe Ọmụmaatụ

N'okpuru bụ tebụl iwu na ngwaọrụ enwere ike iji ImageMagick:

iwu Description
dikwa nduGosipụta usoro onyonyo dị ka ihe nkiri.
tụnyereNyochaa ihe onyonyo abụọ, wee jiri anya nke uche hụ ọdịiche dị na mgbakọ na mwepụ dị n'etiti ha.
mejupụtaraJiri nghọta agbanwe agbanwe mepụta otu onyonyo n'ofe ọzọ iji mepụta onyonyo agwakọtara.
ijisiTụgharịa asụsụ ma mebie script edere na MSL, asụsụ Magick Scripting.
tọghataTụgharịa onyonyo site n'ụdị faịlụ gaa na nke ọzọ. Ngwá ọrụ a nwekwara ike ime ka ọ daa, gbutuo, speckle, dither, ma gbanwee ọdịnaya nke onyonyo.
ngosiIhe nlele onyonyo dị mfe.
mataGosipụta akụkụ onyonyo a, ogo yana metadata onyonyo ndị ọzọ.
mbubataWere ihuenyo ahụ na faịlụ onyonyo.
huzieMegharịa onyonyo. Yiri ntụgharị, mana degharịa onyonyo izizi.
MontageMepụta onyonyo nwere onyonyo pere mpe. Iwu a nwere ike ịmepụta otu onyonyo nwere thumbnails nke ọtụtụ onyonyo.
streamHazie data onyonyo wee chekwaa ya na faịlụ ka a na-ebuga ya site na isi mmalite ntinye. Ọ bara uru maka ọnọdụ ndị nwere obere iyi data ma ọ bụ nnukwu ihe oyiyi nke nhazi data kwesịrị ịmalite tupu echekwa ihe oyiyi ahụ dum.

Advertisement


Iwu na mmechi

Na nkuzi, ị mụtara ụzọ abụọ iji wụnye ImageMagick on Nkume Linux 8. N'ozuzu, ImageMagick ka na-ewu ewu nke ukwuu, karịsịa na gburugburu ebe nrụọrụ weebụ WordPress na plugins, ma ọ bụ nhọrọ a nwalere na anwale maka igosipụta, ịmepụta, ịtụgharị, gbanwee, na dezie ihe oyiyi raster.

Maka ozi ndị ọzọ, biko gaa na Ebe nrụọrụ weebụ ImageMagick.

Idenye aha
Gwa nke
0 Comments
Inline nzaghachi
Lee echiche niile
0
Ga-ahụ n'anya gị echiche, biko okwu.x