{"id":5093,"date":"2011-10-03T20:23:43","date_gmt":"2011-10-03T13:23:43","guid":{"rendered":"http:\/\/sinaulinux.martianuswb.com\/?p=1042"},"modified":"2011-10-03T20:23:43","modified_gmt":"2011-10-03T13:23:43","slug":"terminal-mengubah-ukuran-gambar","status":"publish","type":"post","link":"https:\/\/martianuswb.com\/?p=5093","title":{"rendered":"Terminal: mengubah ukuran gambar"},"content":{"rendered":"<p>Nah, ini yang saya bilang luarbiasanya Terminal di Ubuntu. Hanya dengan menggunakan text command, kita bisa mengubah ukuran satu atau lebih file gambar. Memang sepertinya lebih enak pakai GIMP yang punya GUI, tapi Terminal jauh lebih sederhana.<\/p>\n<p>O&#8217;ya, mengingatkan, kalau Terminal di Ubuntu itu case-sensitive, artinya musti berhati-hati melihat apakah nama filenya menggunakan huruf besar atau huruf kecil.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1043\" title=\"Terminal resizing image\" alt=\"\" src=\"http:\/\/martianuswb.com\/wp-content\/uploads\/2011\/10\/martianuswb@martianuswb-desktop-_001.png\" width=\"400\" height=\"268\" \/><\/p>\n<p>Misal, kita punya beberapa file foto, saya khusus beri nama <em>Foto0.JPG<\/em> sampai dengan <em>Foto5.JPG<\/em>. Tidak perlu tahu berapa dimensi masing-masing gambar di atas. Misalkan kita akan mengubah file <em>Foto5.JPG<\/em> menjadi berukuran 500 pixel, tinggal ketikkan<\/p>\n<blockquote><p><span style=\"color: #ff0000;\"><em><strong>convert -resize 500 Foto5.JPG Foto5-kecil.JPG<\/strong><\/em><\/span><\/p><\/blockquote>\n<p>Maka, otomatis akan dibuat file baru dengan nama <em>Foto5-kecil.JPG<\/em> dengan ukuran 500 pixel.<\/p>\n<p>Sementara, jika kita akan mengubah dimensi gambar beberapa file sekaligus menjadi berukuran 250 pixel tinggal ketikkan<\/p>\n<blockquote><p><span style=\"color: #ff0000;\"><em><strong>convert -resize 250 Foto0.JPG Foto1.JPG Foto2.JPG Foto3.JPG Foto-kecil.JPG<\/strong><\/em><\/span><\/p><\/blockquote>\n<p>Maka, akan terbuat beberapa file baru <em>Foto-kecil-0.JPG<\/em>, <em>Foto-kecil-1.JPG<\/em>, <em>Foto-kecil-2.JPG<\/em>, dan <em>Foto-kecil-3.JPG<\/em>. Mudah sekali bukan, silakan dicoba!<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Nah, ini yang saya bilang luarbiasanya Terminal di Ubuntu. Hanya dengan menggunakan text command, kita bisa mengubah ukuran satu atau lebih file gambar. Memang sepertinya lebih enak pakai GIMP yang&#8230; <a href=\"https:\/\/martianuswb.com\/?p=5093\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4476,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1406],"tags":[1730,1919],"class_list":["post-5093","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-mengubah-ukuran-gambar","tag-terminal"],"_links":{"self":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/posts\/5093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5093"}],"version-history":[{"count":0,"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/posts\/5093\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/media\/4476"}],"wp:attachment":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}