imgmin, kunciphisa ubunzima beemifanekiso zeJPG

imgmin

Imifanekiso yoqobo: lamiradadelreplicante.com

Enye yeengxaki esinokuyifumana nemifanekiso bubunzima bayo. Kucacile ukuba kuya kubakho iifoto esifuna ukuzigcina nomgangatho ophezulu kakhulu, kodwa zininzi izihlandlo apho oku kungafuneki. Ingxaki xa sifuna ukuthoba umgangatho womfanekiso kukuba asazi ukuba singayikhuphela kangakanani ngaphandle kokubonakala kakhulu, kodwa le ngxaki ingasonjululwa imgmin.

imgmin yiprojekthi ejolise ekusombululeni ingxaki ekhankanyiweyo. Njengoko bendiya kuyenza? Kulungile ukubala ngokwezibalo nangokuzenzekelayo kungakanani ukwehliswa ubunzima bomfanekiso ngaphandle kokuba kuqatshelwe ukuba siwuhlelile. Eyona nto ibaluleke kakhulu, abasebenzisi kuya kufuneka basebenzise umyalelo omnye kwesi sixhobo sincinci ukusenzela wonke umsebenzi. Apha sikuxelela yonke into ekufuneka uyazi.

imgmin sisiphumo sophando olunzulu. Sebenzisa indlela akukho kulahleka komgangatho (Ilahleko) ukuvelisa imifanekiso elungiselelwe ngokukhohlisa iibhloko zeepekseli. Apha sichaza indlela yokuyifaka.

Ukufaka kunye nokusebenzisa imgmin

Ukufakela i-imgmin kufuneka sivule i-terminal yefestile kwaye sichwetheze le miyalelo ilandelayo:

sudo apt-get install -y autoconf libmagickwand-dev pngnq pngcrush pngquant
git clone https://github.com/rflynn/imgmin.git
cd imgmin
autoreconf -fi
./configure
make
sudo make install

Sebenzisa esi sixhobo sincinci akunakuba lula. Into ekufuneka siyenzile kukusebenzisa lo myalelo ulandelayo:

imgmin original.jpg optimizada.jpg

Ewe kunjalo, kubonakala kubalulekile kum ukuba ndichaze ukuba kuya kufuneka ungene kumendo opheleleyo womfanekiso ngamnye. Indlela elula yokusombulula oku kukushiya ifoto kwidesktop, vula itheminali, ngenisa incwadi eneenkcukacha kwiDesktop (kwimeko yam isebenzisa umyalelo cd Desk) Kwaye emva koko sele ungene kumyalelo. Ngokusengqiqweni, kuya kufuneka sitshintshe amagama "oqobo" kunye "nokwandiswa" ngegama lomfanekiso esifuna ukuthoba kuwo ubunzima bawo kunye nomfanekiso wemveliso.

Ukuba ukhe wayizama, ucinga ntoni nge-imgmin?


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-2, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   lwakhiwo1975 sitsho

    Ngaba ikusebenzele ku-Ubuntu 16.04? Indinika impazamo xa usenza:

    "Imgmin.c: 30: 29: impazamo ebulalayo: wand / MagickWand.h: Akukho fayile okanye ulawulo olunjalo"

    Ndicinga ukuba ndizifakile zonke izinto ezifunekayo

  2.   ukukhutshwa sitsho

    @ leillo1975 Kwenzeka into efanayo kum