Advanced macOS Tricks and Utilities Using Terminal!

Snazzy Labs
18 May 201913:29

Summary

TLDRDans cette vidéo avancée de la série de conseils pour Mac, l'hôte introduit le concept de la ligne de commande et des outils Homebrew, principalement destinés aux développeurs mais également très utiles pour les utilisateurs avancés. Il explique comment installer Homebrew et des outils tels que Cask pour gérer les applications en dehors du Mac App Store, Htop pour surveiller les ressources système, Speedtest-CLI pour mesurer la vitesse Internet, youtube-dl pour télécharger des vidéos YouTube, et ImageMagick pour modifier des images. Le but est de présenter des alternatives puissantes et efficaces aux interfaces graphiques habituelles.

Takeaways

  • 😀 L'épisode traite de l'utilisation avancée de la ligne de commande et de Homebrew, principalement destinés aux développeurs mais aussi utiles pour les utilisateurs de Mac.
  • 🛠️ L'installation de Homebrew nécessite préalablement l'installation des outils Xcode, qui peuvent être obtenus via la commande 'xcode-select --install'.
  • 📦 Homebrew est installé via une commande spécifique, qui demande confirmation et nécessite le mot de passe administrateur de Mac.
  • 📝 L'utilitaire 'cask' de Homebrew permet de gérer les applications en dehors de l'App Store, y compris le téléchargement, l'installation, la mise à jour et la désinstallation.
  • 🔍 'brew search casks' permet de rechercher des applications dans le catalogue de cask, tandis que 'brew cask install <nom>' installe une application spécifique.
  • 🔄 'brew cask upgrade' met à jour toutes les applications installées via cask.
  • 📊 L'application 'htop' offre une alternative graphique à Activity Monitor pour surveiller l'utilisation des ressources système et gérer les processus.
  • 🌐 'speedtest-cli' permet de réaliser des tests de vitesse Internet directement depuis la ligne de commande, sans passer par un navigateur web.
  • 📹 'youtube-dl' est un outil puissant pour télécharger des vidéos YouTube, y compris en haute résolution en utilisant 'ffmpeg'.
  • 🖼️ 'imagemagick' est un outil polyvalent pour la manipulation d'images, permettant de changer de format, d'ajouter des effets et de redimensionner des fichiers graphiques.
  • 🔧 L'utilisation de 'imagemagick' inclut des commandes pour redimensionner des images, ajouter des bordures, et même traiter plusieurs fichiers à la fois.

Q & A

  • Qu'est-ce que la ligne de commande et comment est-elle utilisée dans le script ?

    -La ligne de commande, ou terminal, est un outil permettant d'interagir directement avec le système d'exploitation en utilisant des commandes textuelles. Dans le script, elle est utilisée pour installer et gérer des outils et des applications via Homebrew.

  • Pourquoi Homebrew est-il nécessaire avant de commencer avec les outils mentionnés ?

    -Homebrew est un gestionnaire de paquets pour macOS qui facilite l'installation, la mise à jour, la maintenance et la désinstallation des applications et des outils. Il est nécessaire car les outils et les utilitaires mentionnés sont gérés via Homebrew.

  • Quel est le premier utilitaire mentionné dans le script et à quoi sert-il ?

    -Le premier utilitaire mentionné est 'cask'. Il permet de télécharger, d'installer, de maintenir, de mettre à jour et de désinstaller des applications qui ne sont pas disponibles dans l'App Store de Mac.

  • Comment installer un paquet avec Homebrew ?

    -Pour installer un paquet avec Homebrew, il suffit de taper la commande 'brew install' suivi du nom du paquet ou de l'utilitaire que l'on souhaite installer.

  • Quel est l'utilitaire 'htop' et comment l'utiliser ?

    -Htop est un utilitaire alternatif à l'Activity Monitor de Mac qui affiche de manière graphique l'utilisation des ressources système, comme la charge du processeur et la mémoire. Il est utilisé en tapant 'htop' après l'avoir installé avec Homebrew.

  • Comment effectuer un test de vitesse Internet à partir de la ligne de commande ?

    -Pour effectuer un test de vitesse Internet à partir de la ligne de commande, il faut d'abord installer l'utilitaire 'speedtest-cli' avec Homebrew, puis exécuter la commande 'speedtest-cli'.

  • Quel est l'utilitaire 'youtube-dl' et comment fonctionne-t-il ?

    -Youtube-dl est un utilitaire permettant de télécharger des vidéos YouTube. Il peut être installé avec Homebrew et permet de télécharger des vidéos en utilisant des commandes spécifiques qui incluent l'URL de la vidéo et les options de qualité souhaitées.

  • Quel est l'utilitaire 'imagemagick' et quels types de transformations il peut effectuer sur des images ?

    -Imagemagick est un utilitaire puissant pour manipuler des images. Il peut changer la résolution, ajouter des bordures, modifier les formats de fichiers et effectuer d'autres transformations basées sur les commandes fournies par l'utilisateur.

  • Comment la commande 'convert' dans ImageMagick permet-elle de modifier la taille et le format d'une image ?

    -La commande 'convert' dans ImageMagick permet de spécifier l'entrée et la sortie de l'image, ainsi que les options de transformation comme le redimensionnement et le changement de format. Par exemple, 'convert input.jpg -resize 1920x1080 output.tiff' redimensionnera l'image en 1920x1080 et la sauvera au format tiff.

  • Quels sont les avantages de l'utilisation de Homebrew pour gérer les applications et les outils sur macOS ?

    -Les avantages de l'utilisation de Homebrew incluent une installation plus rapide et plus simple des applications et des outils, la facilité de mise à jour et de désinstallation, et l'accès à une grande variété d'applications et d'outils qui ne sont pas disponibles dans l'App Store de Mac.

  • Comment le script recommande-t-il de trouver de l'aide pour les commandes Homebrew et les paquets ?

    -Le script recommande d'utiliser la commande 'brew help' suivie du nom du paquet ou de l'utilitaire pour obtenir une liste des commandes disponibles et de leurs descriptions, offrant ainsi une aide pour l'utilisation de Homebrew et de ses paquets.

Outlines

00:00

😎 Introduction à la ligne de commande et Homebrew

Le script introduit la ligne de commande et les outils Homebrew, principalement destinés aux développeurs mais aussi utiles pour les utilisateurs avancés. Il explique comment installer Homebrew et les outils Xcode si ce n'est pas déjà fait, en donnant les commandes nécessaires à copier et coller directement dans le terminal. L'auteur assure que les liens vers ces commandes sont fournis en-dessous de la vidéo pour faciliter leur utilisation. Il insiste sur la puissance de Homebrew pour installer et maintenir des applications en dehors de l'App Store Mac.

05:01

🛠️ Utilisation de Cask et d'autres outils Homebrew

Le script présente Cask, un outil Homebrew qui permet de gérer les applications en dehors de l'App Store Mac, y compris le téléchargement, l'installation, la mise à jour et la désinstallation. Il montre comment rechercher et installer des applications telles que Discord en utilisant Cask. Ensuite, il introduit H top, un alternative graphique à Activity Monitor pour surveiller et gérer les ressources système, ainsi que speedtest-cli, un outil pour effectuer des tests de vitesse Internet à partir de la ligne de commande. Il mentionne également youtube-dl pour le téléchargement de vidéos YouTube et ffmpeg pour la conversion de vidéos.

10:04

🖼️ Manipulation d'images avec ImageMagick

Le dernier paragraphe du script se concentre sur ImageMagick, un outil puissant pour la manipulation d'images. Il explique comment utiliser ImageMagick pour appliquer des effets, redimensionner et changer le format des images. Des exemples de commandes sont donnés, montrant comment ajouter un bord à une image, la redimensionner et l'enregistrer dans un nouveau format. L'auteur démontre également comment utiliser ImageMagick pour traiter plusieurs fichiers à la fois, en changeant leur résolution et en préfixant leur nom avec 'small-' pour indiquer qu'ils sont plus petits que l'original.

Mindmap

Keywords

💡Command line

La ligne de commande est un interface utilisateur qui permet à un utilisateur de communiquer avec un ordinateur en entrant des commandes texte. Dans la vidéo, la ligne de commande est introduite comme un outil avancé pour les utilisateurs de Mac, servant à exécuter des tâches telles que l'installation de Homebrew et d'autres utilitaires.

💡Homebrew

Homebrew est un gestionnaire de paquets pour macOS qui facilite l'installation et la gestion d'applications et d'outils en ligne de commande. Le script mentionne Homebrew comme un outil principal pour les développeurs, mais aussi utile pour les utilisateurs avancés avec de nombreuses options et utilitaires.

💡Xcode

Xcode est un ensemble d'outils de développement fourni par Apple pour créer des applications iOS, macOS, watchOS et tvOS. Dans le script, Xcode est mentionné comme prérequis pour l'installation de Homebrew, indiquant que les outils de développement de Xcode sont nécessaires pour cette procédure.

💡Cask

Cask est un outil de Homebrew qui permet d'installer, de mettre à jour, de maintenir et de désinstaller des applications qui ne sont pas disponibles dans l'App Store de Mac. Le script présente Cask comme un moyen puissant de gérer les applications tierces.

💡Terminal

Le terminal est une application sur macOS qui fournit un environnement de ligne de commande. Dans le script, le terminal est l'endroit où les utilisateurs peuvent entrer des commandes pour utiliser Homebrew et d'autres outils de ligne de commande.

💡Installer

L'installation est le processus de configuration et de préparation d'un logiciel pour qu'il fonctionne sur un ordinateur. Le script explique comment installer Homebrew, Cask et d'autres utilitaires à l'aide de la ligne de commande.

💡Utilitaire

Un utilitaire est un programme servant à effectuer des tâches spécifiques, souvent utiles pour les utilisateurs ou les développeurs. Le script présente plusieurs utilitaires, tels que Cask, H top, speedtest-cli, youtube-dl et ImageMagick, qui sont installés et utilisés via Homebrew.

💡ImageMagick

ImageMagick est un ensemble d'outils de traitement d'images qui permet de convertir, d'éditer, de combiner et d'appliquer des effets à des images. Dans le script, ImageMagick est utilisé pour modifier la résolution et l'encadrement des images, illustrant sa puissance et sa flexibilité.

💡youtube-dl

youtube-dl est un utilitaire en ligne de commande qui permet de télécharger des vidéos à partir de YouTube et d'autres sites de partage de vidéos. Le script montre comment l'utiliser pour télécharger des vidéos en haute résolution sans passer par l'interface graphique utilisateur.

💡H top

H top est un utilitaire en ligne de commande qui fournit une vue en temps réel de l'utilisation des ressources système, semblable à l'Activity Monitor de Mac mais avec une interface plus claire et des fonctionnalités améliorées. Le script mentionne H top comme un outil pour surveiller et gérer les processus qui utilisent des ressources système.

Highlights

Introduction to the command line and Homebrew, tools primarily for developers with cool options for Mac users.

How to install Homebrew and Xcode tools using the command line.

Cask, a utility for managing non-Mac App Store applications, including installation and updates.

Using 'brew search casks' to find and install Mac applications not available on the Mac App Store.

Installing and using Discord via Homebrew Cask for a streamlined installation process.

Updating all applications installed with Cask using 'brew cask upgrade'.

Introduction to 'htop', an alternative to Activity Monitor for system resource monitoring.

Installing and using 'htop' for a graphical representation of CPU and memory usage.

Using the command line for speed tests with 'speedtest-cli', an alternative to the web-based version.

Installing and using 'youtube-dl' for downloading videos from YouTube and other platforms.

Combining 'youtube-dl' with 'ffmpeg' for downloading videos in higher resolutions.

ImageMagick, a powerful tool for image manipulation with various effects and format conversions.

Demonstration of resizing and adding borders to images using ImageMagick.

Batch processing images with ImageMagick to resize and rename them efficiently.

The versatility of ImageMagick for changing image formats and applying effects.

Encouragement to consult ImageMagick's help documentation for its full capabilities.

A call to action for viewers to like, subscribe, and stay updated with tech videos.

Transcripts

play00:00

this episode of our Mac tip series is a

play00:02

little bit more advanced but fear not

play00:03

because I'm here to help you through it

play00:05

I'm introducing you to the command line

play00:07

and homebrew tools designed primarily

play00:09

for developers but with a few really

play00:12

cool options and utilities for Mojo's

play00:14

like you and I let's get started

play00:16

everything we're going to be doing today

play00:18

takes place inside of the command line

play00:20

or terminal if you never use terminal

play00:22

before you can navigate to applications

play00:24

and then the utilities subfolder and

play00:26

you'll find it inside or you can search

play00:29

it via a spotlight once you open

play00:31

terminal you'll find a window that looks

play00:33

something like this now before we can do

play00:35

anything with homebrew we actually need

play00:37

to install it and so if you've installed

play00:40

the Xcode tools before you will be able

play00:43

to skip this step if you haven't you'll

play00:45

most likely haven't type the following

play00:47

command Xcode - select space - - install

play00:54

by the way for the record if you miss

play00:56

one of these commands and you probably

play00:58

will they're all linked down below in

play01:00

raw text so you can actually copy and

play01:03

paste them into the terminal window

play01:04

really easily so I get an error because

play01:07

my command-line tools have already been

play01:08

installed if you haven't installed them

play01:10

yet you'll be prompted to do so and that

play01:12

takes a couple of minutes once we've

play01:14

installed those tools we can actually

play01:16

install homebrew now this is a long

play01:18

command so I would recommend copying and

play01:19

pasting but once you paste it it's going

play01:22

to ask you if you want to continue by

play01:23

pressing return we will say yes we'll

play01:26

need to give it our admin password on

play01:28

our Mac and then it's gonna go to town

play01:30

this also takes a couple of minutes once

play01:34

we have the Xcode select tools and

play01:35

homebrew installed it's ready to get

play01:38

messing around with some cool utilities

play01:39

so let's start it off the first utility

play01:41

we're going to talk about is called cask

play01:43

cask is incredibly powerful it allows

play01:45

you to download install maintain updates

play01:48

and uninstall non Mac App Store

play01:51

applications there's a lot of apps for

play01:53

Mac and a lot of them are not on the Mac

play01:54

App Store this utility cask allows you

play01:57

to basically maintain them without

play01:59

having to go online and Google the file

play02:00

and download the file and then install

play02:03

it through the installer and then make

play02:04

sure it stays updated and get babar no

play02:06

no cask does all of that for you it's

play02:09

one of my favorite utilities and it's

play02:10

super super powerful to install it you

play02:13

just type

play02:13

install cask and homebrew will fetch the

play02:17

package file and install it for you it

play02:19

can take a couple of seconds now that

play02:21

cask is installed we can start working

play02:23

with it

play02:23

now I should know that all of these

play02:25

utilities are insanely powerful and I

play02:27

couldn't possibly talk about everything

play02:28

they're capable of in this video so if

play02:30

you ever want to know what they can do

play02:32

or if you ever get stuck type brew for

play02:34

homebrew then the name of the package or

play02:36

utility you're trying to use so in this

play02:38

case cask and then type help and a list

play02:41

of commands along with descriptions on

play02:43

what those commands do will pop up and

play02:46

show you basically how to use it so

play02:48

first of all let's do brew search casks

play02:53

this will show us the entire catalog or

play02:55

list of hundreds of casks that are

play02:58

available to us so you can see just how

play02:59

insanely I mean there are tons and tons

play03:03

of Mac apps that are listed in this

play03:05

section that you can install using cask

play03:06

now this isn't very helpful sorting

play03:09

through this big massive list so there's

play03:11

a built-in search functionality from

play03:13

within cask you can type brew search and

play03:15

then the name of an app so let's say I

play03:17

don't know discord we type enter cask

play03:21

we'll try and locate that package and if

play03:23

it returns a result you can see there

play03:25

you go there's the discord app that we

play03:27

need to install so if we want to

play03:28

actually install discord we can type

play03:30

brew cask install and discord and it

play03:35

will download that package and install

play03:37

it for us really pretty awesome so it's

play03:39

downloading it right now it will install

play03:41

it without ever you popping up an

play03:43

installer file so once we get to the end

play03:45

no installation it does it all

play03:47

automatically and then if we open

play03:49

spotlight and type discord there it is

play03:51

that's pretty awesome isn't it now if

play03:54

you want to update stuff I can type brew

play03:56

cask and then upgrade and that will

play03:59

upgrade every single application that is

play04:01

installed using cask on my Mac and you

play04:04

can see because I've only installed

play04:05

discord and it's already up to date

play04:07

there's no casks to upgrade but this is

play04:09

a super amazing option if you ever have

play04:11

a lot of apps that are always bomb

play04:13

barring you for updates especially the

play04:14

crappy apps that take you back to Safari

play04:16

to redownload the app and it's built

play04:18

it's awful just use cask ii utility is

play04:21

kind of a strange one but it's a really

play04:23

cool one it's called each top so you've

play04:25

probably used Activity Monitor before

play04:27

and if you haven't well this is activity

play04:29

monitor if your computer is slowing down

play04:31

or whatever you can kind of see what the

play04:33

different processes are and kill them

play04:35

directly from this application it also

play04:37

shows you your cpu load how much memory

play04:40

you're using stuff like that but this

play04:41

application I don't know I've never

play04:43

found it to be well laid out and it

play04:45

doesn't show you graphically how much

play04:47

resources you're using and so H top is a

play04:50

really really great alternative you can

play04:51

install it by typing brew install H top

play04:55

and it will download and install it once

play04:59

it's installed we can type sudo H top

play05:01

now we need to use super user privileges

play05:03

it's gonna ask for our password because

play05:05

we are actually monitoring the hardware

play05:07

on the Mac which Mac OS requires

play05:09

hardware level permissions for so once

play05:11

we enter that it will show us this very

play05:13

cool representation of how our system

play05:15

resources are being used you can

play05:17

actually see the per thread usage on my

play05:20

8 core 16 thread CPU you can see a

play05:23

graphical representation of how much

play05:24

memory is being used you know so see

play05:27

your uptime the number of tasks and you

play05:29

can manage filter search and kill tasks

play05:31

all from this window using the function

play05:34

keys it's really really powerful and

play05:36

really awesome if you're trying to seed

play05:39

out or find some little spooky

play05:41

application that's consuming more

play05:42

resources than it should each top is

play05:44

pretty slick next speedtest.net

play05:46

sometimes you need to run a speed test

play05:48

but going to speedtest.net is a real

play05:50

nightmare they have a crappy website it

play05:52

uses tons of resources it's just bad

play05:54

well you can do that from the command

play05:55

line if you type through install speed

play05:59

test - CLI for command-line interface it

play06:02

will install and once it's installed we

play06:05

can enter speed test CLI and it will

play06:08

actually run a speedtest.net speed test

play06:10

without having to navigate to the web

play06:12

browser you don't have to load the

play06:13

massive webpage and have the ads on the

play06:15

side it's all done directly through the

play06:17

command line which is pretty slick so

play06:19

right now it's testing my download speed

play06:20

that has finished it will test my upload

play06:23

speed and it will tell me the results

play06:25

yes my office Internet is pretty crappy

play06:27

are these getting a bit too out into the

play06:30

woods for you alright let's take it back

play06:31

to an easy one this is youtube-dl

play06:34

it's pretty simple youtube download

play06:37

that's right you can install it by

play06:38

typing brew install you too

play06:41

- do you're also going to need to

play06:43

install ffmpeg if you want to download

play06:45

videos in a resolution above 720p which

play06:48

you probably do so type brew install

play06:50

youtube - dl and then ffmpeg press enter

play06:56

and it goes to town YouTube DL is one of

play06:59

those utilities that is hyper powerful

play07:01

so to really get a full scope of what

play07:02

it's capable of you should consult the

play07:04

help documentation but the formula that

play07:07

I most frequently use to download the

play07:09

highest resolution video available is

play07:11

the following first of all we're going

play07:13

to need to copy the URL of the video

play07:14

we'd like to download to our clipboard

play07:16

so go to Safari find a video you'd like

play07:18

copy and then type the following command

play07:21

youtube - DL - F best video so we're

play07:25

requesting the highest resolution

play07:26

available + best audio and again you can

play07:30

define these manually you can define the

play07:32

exact resolution that you want to

play07:34

download it to if you'd like but these

play07:35

are the defaults and then you type the

play07:36

URL youtube-dl goes out fetches the

play07:40

video and then shows you the download

play07:42

progress on the five hundred eighty

play07:44

three point three three megabyte file

play07:46

now it's saving in a dot WebM dot WebM

play07:49

is not natively supported inside of Mac

play07:51

OS 10 so it's actually going to download

play07:53

the file first and then it converts it

play07:55

using ffmpeg to an mp4 by default but

play07:59

you can leave it as a WebM if you'd like

play08:00

or to change it to any file format you

play08:02

can desire using one of YouTube's deals

play08:05

very very powerful utilities just be

play08:07

sure to read through this help

play08:08

documentation because it can do a lot

play08:10

and it's slicker than a GUI based

play08:13

YouTube downloader okay you know what

play08:14

they say the best for first and last

play08:16

I don't admittedly use homebrew all that

play08:18

often I do use cask almost on the daily

play08:20

and this is the other application that I

play08:22

use all the time it's called image magic

play08:25

you can install it by typing brew

play08:26

install and then image magic image magic

play08:31

is really powerful

play08:32

basically you provide an input file a

play08:34

photo of any resolution size shape

play08:36

what-have-you you can define some

play08:38

effects that you'd like to apply if

play08:40

desired and then you can choose an

play08:42

export resolution a different file

play08:44

formats different sizes doesn't matter

play08:46

image magic will handle everything let

play08:48

me show you some of the commands that I

play08:49

use with frequency so you do need to

play08:52

manually define your

play08:54

input and output files I could do that

play08:56

by just dragging this field dot jpg file

play08:58

directly into the finder that shows the

play09:01

path but I also need to provide an

play09:03

output path which I have yet to do by

play09:05

default it saves into the route of your

play09:07

home folder but what I would recommend

play09:09

is just defining the folder manually

play09:11

before you start working with the the

play09:14

utility so I type cd' desktop for

play09:16

example to set my main directory as the

play09:19

desktop so any file name that I type is

play09:21

going to be assumed that it's on this

play09:23

folder and when I choose my output file

play09:24

I can just type the name of the file and

play09:26

it will assume the same path to the

play09:28

desktop so let's show you an example of

play09:31

something that I do actually pretty

play09:32

frequently let's do convert we need to

play09:35

provide our input file now so let's do

play09:37

the field dot jpg photo that field dot

play09:39

jpg ok and then we need to I don't know

play09:43

let's say let's add a border we can type

play09:46

border we can then type what resolution

play09:48

or what size we want our border to be

play09:51

let's do it let's do a big one let's do

play09:52

30 pixels by 30 pixels and then we need

play09:55

to define the border color let's make

play09:58

that white and then we need to output

play10:00

our file so we'll call this bordered dot

play10:04

let's do PNG ok so we're gonna change

play10:07

the file format if I press Enter

play10:09

there you go I have a new folder a new

play10:12

file called border dot PNG not only did

play10:14

it change the file format from jpg to

play10:17

PNG but surely enough it added a 25 or

play10:20

was it 30 a 30 pixel border around our

play10:23

image pretty cool ok so what else can I

play10:25

do

play10:26

let's try a different command something

play10:27

I would try frequently so let's do

play10:29

convert let's do this same field dot jpg

play10:32

folder or file and let's say it's too

play10:35

big that did take a while it's clearly a

play10:37

large file so let's see what resolution

play10:38

are we working with here 3840 by 2160 if

play10:42

we zoom up on screen you can see that it

play10:44

is quite massive yeah that's definitely

play10:46

beyond 1080p so let's go back to our

play10:48

terminal window let's change the

play10:51

resolution of this file so we are going

play10:53

to type resize and then you can type the

play10:58

length resolution that you like so we

play11:00

could do like 1920 if we wanted to do

play11:02

1920 by 1080 you can do any arbitrary

play11:04

number you want and it will resize will

play11:07

maintain the aspect ratio and

play11:08

sighs so I could do like 1654 if I

play11:10

wanted to and it will resize it properly

play11:13

maintaining at sixteen by nine format

play11:15

now if you wanted to find the other the

play11:18

other lengths so instead of doing 1920

play11:22

instead of doing the the long length if

play11:24

we wanted to do the short length of the

play11:25

photo we could do X 1080 and that will

play11:30

still provide us a 1920 by 1080 format

play11:32

or you can define the exact resolution

play11:35

you want to export to if you know and it

play11:37

will conform regardless so let's just do

play11:40

1920 okay so we're going to resize it to

play11:42

that and then we're going to change it

play11:44

back to let's change it to a tiff file

play11:48

for example so we're gonna call it

play11:49

export dot T iff we press enter and

play11:52

surely enough it pops up there it is

play11:57

ready for viewing in a much smaller much

play11:59

more digestible resolution to give you

play12:01

an example of how truly powerful image

play12:03

magic is let me show you a power user

play12:05

demonstration so we're gonna say for

play12:07

files that end in dot jpg so any file on

play12:11

the desktop ending in dot jpg so that's

play12:13

gonna be these two files obviously let's

play12:16

well let's do convert them keeping their

play12:19

original file name attacked and convert

play12:22

sorry well let's change the resolution

play12:26

first so we are going to say resize and

play12:29

rather than manually defining a

play12:30

resolution I could do that if I wanted

play12:32

but these are different size files so

play12:33

let's resize them to fifty percent of

play12:36

their original size and then we are

play12:38

going to change the name of the export

play12:40

file to not just the same name but we're

play12:42

going to change it to small - and then

play12:46

use the original file name so now what's

play12:48

going to happen if we press Enter

play12:51

is it is going to export two photos it

play12:54

has the same names they had before but

play12:56

adds small as a prefix because that's

play12:58

one of the things we requested and if we

play13:00

note the resolution let's look at this

play13:02

one so command I we can see that this

play13:04

one is 500 by 478 pixels if we go to

play13:08

this one will see that it is 250 by 239

play13:12

pixels it's exactly the same image just

play13:14

a little bit smaller image magic is

play13:16

crazy powerful well folks if you enjoyed

play13:19

this video please give it a like if you

play13:20

didn't well that other button

play13:22

seems to work okay to get subscribed for

play13:24

more awesome tech videos like these but

play13:25

most importantly and as always stay

play13:28

snazzy

Rate This

5.0 / 5 (0 votes)

Related Tags
TerminalHomebrewDéveloppeursUtilitairesMacOSCaskHtopSpeedtestYoutube-dlImageMagickProductivité
Do you need a summary in English?