Uyilungiselela njani imifanekiso yePNG kwiConsole

I-OptiPNG

Ayisiyomifanekiso kuphela ekwifomathi yeJPG enokulungiswa, ngokunjalo neefayile zePNG. Zininzi izinto ezenziwayo kule njongo, kule posi siza kugxila ngokukodwa: I-OptiPNG.

I-OptiPNG sisixhobo esincinci esivumayo Lungiselela imifanekiso yePNG -Kunye nokuguqula abanye kule fomathi- ngaphandle kokulahla nawuphi na umgangatho kuyo yonke loo ndlela. Sisixhobo esingenayo imbonakalo yomzobo, nangona ukusetyenziswa kwaso kusetyenziswa ifayile ye- iselfowuni ilula ngokwenene. Umyalelo osisiseko wokunciphisa ubungakanani bemifanekiso yethu yePNG ngu:

optipng [archivo]

Elula njengaleyo. Nangona i-OptiPNG ineeparitha ezininzi ezinokulungiswa eziza kusinceda ukuba senze ngokwezifiso inkqubo yokusebenza. Umzekelo, ukuba sinqwenela gcina ifayile yoqobo Siza kusebenzisa ukhetho

-keep

-k

-backup

Masithi umfanekiso wethu ubekwe kwingcambu yolawulo lwethu lwasekhaya kwaye sifuna ukuyilungisa ngaphandle kokulahlekelwa yifayile yoqobo. Ukulungiselela le njongo siza kusebenzisa lo myalelo:

optipng -k $HOME/imagen.png

Nangona i-OptiPNG ikhetha eyona ilungileyo inqanaba lokunyanzelwa, sinokuyibeka ngesandla. Ngale nto sisebenzisa ukhetho

-o

, ukubanakho ukuseta amaxabiso ukusuka kwi-1 kuye kwi-7, nge-7 ibe lelona nqanaba liphezulu. Ukubuyela kumzekelo wangaphambili, cinga ukuba sifuna ukongeza ukunyanzelwa kwesiko lesi-5 ngokunjalo; emva koko siphumeza:

optipng -k -o5 $HOME/imagen.png

Ukuba sifuna ukwenza umthetho wangaphambili ku yonke imifanekiso kulawulo, sisebenzisa:

optipng -k -o5 $HOME/directorio-de-las-imágenes/*.png

Ukufikelela kuluhlu olupheleleyo lwe Iinketho ze-OptiPNG Kufuneka siphumeze kuphela

optipng --help

Kufuneka kuqatshelwe ukuba uxinzelelo olwenziwa yi-OptiPNG ngaphandle kokulahleka komgangatho, ngokuqinisekileyo ngekhe sifumane iziphumo ezinamandla njengalezo zinikezelwa ziinkonzo ezithile ezikwi-Intanethi- ezinje ngeTinyPNG-, apho imifanekiso ilahlekelwa ngumgangatho, into ephawuleka ngakumbi kwezo ziqulathe iigradients.

Ukufakwa

I-OptiPNG ikwiindawo zokugcina ezisemthethweni ze- Ubuntu, ke ukufaka isixhobo sisebenza nje kwisiphelo sethu:

sudo apt-get install optipng

Iinkcukacha ezithe xaxe - Ukulungisa ukukhanya kwesikrini kunye neXbacklight, Uyikhulula njani i-RAM ku-Ubuntu


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

Izimvo, shiya eyakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  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.   ULionel bino sitsho

    Ndiyabulela kakhulu ngokwabelana ngolwazi lwakho. 🙂