In my experience, most images (depending on their complexity) get reduced to around 70% percent of their original file size, and in some instances this drops to 50% or even 40% of the original size. I find 80 to be a good compromise between quality and file size, but your mileage may vary. -quality 80 sets the compression quality (with 0 being maximally compressed and 100 having near lossless compression).-format webp is the output format of the images (you can also change this to -format jpg for example to convert this back to JPEG).This is running on ImageMagick and is structured as follows: Unfortunately, my photo editing software of choice (Adobe Lightroom) does not natively support exporting to WebP, so here's a short line of code that you can enter in your terminal to convert all JPEG images in a folder to WebP: This is actually fairly easy, but unfortunately this blows up the bandwidth needed to load my site.Įnter WebP! This image format is not that new anymore, but in the last couple of years browser support became high enough to make this a sensible default for most scenarios. -f: Here, we provide the output file name of the GIF.I'm in the process of converting all (or at least most) images on my website to look nicer (meaning: sharper with 2x their resolution) on modern high resolution screens.-i: Here, we provide the video file name we want to convert to GIF.Therefore, out of the 61.0 seconds, FFmpeg will only take the first 4.5 seconds of the video and use it to create a GIF. -t 4.5: Here, we specify the length of our GIF video.-ss 61.0: Here, we tell FFmpeg to get/ seek 61.0 seconds into the provided video file.Let’s take a look at the parameters used in this command. Sudo ffmpeg -ss 61.0 -t 2.5 -i videoTwo.mp4 -f gif exampleTwo.gif sudo ffmpeg -ss 61.0 -t 2.5 -i -f gif e.g. Use the syntax below to convert a video to GIF. It’s a command-line tool and comes with many options and parameters that you can use t manipulate your video and audio files. To get started, install Peek with the command below. Unlike the previous tool – Byzanz, Peek allows you to graphically select the area on your screen that you ish to record and use to create a GIF. It’s a lightweight screen recorder that supports several file formats, including MP4, WebM, and GIF. Peek is another fantastic utility that you can use to create animated GIFs on Linux. For this tutorial, we will save it as example.gif.Īfter successful execution, you should find your animated GIF in the specified directory. Finally, the last argument tells the shell where to save the created GIF and the name of the GIF.The x and y coordinates dictate how large our GIF should be.Therefore, Byzanz will record our screen for 20seconds before saving the GIF. –duration: This argument specifies the length (duration) of the GIF.byzanz-record – Here, we are calling the Byanz tool to start recording.Let’s look at all the arguments used in the command above. Recall that in Linux, no news is good news, meaning that a successful command does not display any message on the terminal. SimpleNote keeps your notes synced across Linux, Android, iOS, and Windowsīyzanz-record -duration=10 -x=0 -y=0 -width=800 -height=800 /home/johndoe/Desktop/example.gif.LibreOffice 6.3 released, here are the new features.Top 10 Free Proxy Servers for Anonymous Web Browsing.Remember that we are running these commands as the superuser or the root. To get started, we install the Byzanz tool by running the following command sudo apt-get install byzanz It doesn’t offer any graphical utility to specify an exact area on your screen. One of the significant drawbacks with Byzanz is that you need to specify everything (including the areas to record) on the Terminal. It is part of the GNOME project, and it’s available in the Ubuntu repositories. Let’s fire up our terminal and run the following command in our terminal: sudo apt-get updateīyzanz is a command-line utility that you can use to create GIFs from your Terminal. Before installing any programs or tools on any Linux distribution, it’s our tradition to update our system first. Surprisingly enough, you can also use LibreOffice in Ubuntu to make GIFs. We will give you a step-by-step guide on using all the tools listed above. You can use various tools to create animated GIFs on Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |