Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

How to convert .webp image to .png on Ubuntu using ffmpeg and terminal

How to convert .webp image to .png on Ubuntu using ffmpeg and terminal 

How to convert .webp to .png images on Ubuntu via Terminal and ffmpeg coding tutorial

    FFmpeg is a free and open-source software project consisting of a large suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the FFmpeg program itself, designed for command-line-based processing of video and audio files. It is widely used for format transcoding, basic editing (trimming and concatenation), video scaling, video post-production effects and standards compliance (SMPTE, ITU).

    In this tutorial we will convert .webp images to .png using ffmpeg and Ubuntu's terminal.

Solving :

Watch on YouTube

Install ffmpeg on Ubuntu

First of all we need to install ffmpeg on Ubuntu ( if it's not installed ). We need to make this step only once.

1. Open Ubuntu Terminal

Open Ubuntu terminal by clicking Terminal icon on your desktop

click on icon to open ubuntu terminal

2. Update Ubuntu package list in Terminal

Type sudo apt update and press Enter, type your password and press Enter one more time.

Type sudo apt update and press Enter on Ubuntu Terminal

type your password and press enter in ubuntu terminal

ubuntu paclage list updated

3. Install FFMPEG on Ubuntu via Terminal

Type sudo apt install ffmpeg and press Enter, type your password and press Enter one more time.

type sudo apt intall ffmpeg and press enter in ubuntu terminal

ffmpeg already installed on ubuntu

4. Check FFMPEG version

Simply type ffmpeg -version and press Enter

check ffmpeg version in ubuntu terminal

check ubuntu ffmpeg version in terminal

Convert .webp to .png image using Ubuntu Terminal

1. Open folder with .webp images

Find and open folder with .webp images we need to convert

find folder with webp images on ubuntu linux

find folder with .webp images on ubuntu linux

2. Open Ubuntu terminal in folder with .webp images

Right mouse button click and select "Open in Terminal" menu item

select open in terminal menu item in ubuntu linux

open ubuntu terminal in folder

3. Execute .webp to .png terminal command

Type following command and press Enter button

for file in *.webp; do ffmpeg -i "$file" "$file".png; done

type command and press enter to convert webp to png in terminal


Script explanation

for file in *.webp; do ffmpeg -i "$file" "$file".png; done

for file in *.webp; - select all files in current folder  with extension .webp

        do ffmpeg -i "$file" "$file".png; - foreach file ($file) execute command ffmpeg -i "$file" "$file".png

done

BONUS convert .jpeg to .png

Convert .jpg to .png

for file in *.jpg; do ffmpeg -i "$file" "$file".png; done

Convert .jpeg to .png

for file in *.jpeg; do ffmpeg -i "$file" "$file".png; done

Convert .png to .jpg

for file in *.png; do ffmpeg -i "$file" "$file".jpg; done

Ubuntu 20.04 LTS partial screenshot ( prints screen ) to clipboard

Ubuntu 20.04 LTS partial screenshot ( print screen ) to clipboard 

Ubuntu 20.04 LTS partial screenshot ( prints screen ) to clipboard tutorial

In this tutorial we will show how to make partial screenshot in Ubuntu linux. By default when we press printscreen button on keyboard Ubuntu creates whole screenshot image in Pictures folder.

Solution :

 

Watch on YouTube

Steps : 

1. Press CTRL + SHIFT + PrtScr buttons

Ubuntu partial screenshot to clipboard keyboard shortcut

2. Select screen area

select screen are in ubuntu screenshot

3. Open image editor ( we used GIMP editor in video )

open GIMP image editor in Ubuntu linux to paste screenshot

4. Paste partial screenshot from Ubuntu clipboard

Create image from clipboard in GIMP image editor on ubuntu

ubuntu printscreen to clipboard result




How to install Ubuntu Budgie 17.04 x64 via VirtualBox on Windows 7

Trabla: How to install Ubuntu Budgie 17.04 x64 via VirtualBox on Windows 7

How to install Ubuntu Budgie 17.04 x64 via VirtualBox on Windows 7


Ubuntu Budgie (formerly Budgie-Remix) is an official community flavor of Ubuntu featuring the Budgie desktop. It combines the stable and thoroughly-tested Ubuntu core with a modern, lightweight and traditional-looking desktop developed by the Solus project.

Ubuntu Budgie Official Site - https://ubuntubudgie.org/


Solving:




How to install Ubuntu MATE 16.04 x64 on Windows 7 via VirtualBox

Trabla: How to install Ubuntu MATE 16.04 x64 on Windows 7 via VirtualBox


How to install Ubuntu MATE 16.04 x64 on Windows 7 via VirtualBox





Ubuntu MATE is a free and open-source Linux distribution and an official derivative of Ubuntu. Its main differentiation from Ubuntu is that Ubuntu MATE uses the MATE desktop environment as its default user interface, based on GNOME 2 which was used for Ubuntu versions prior to 11.04, instead of the Unity graphical shell that is the default user interface for the Ubuntu desktop.[

Ubuntu MATE aims to bring the simplicity and elegance of the Ubuntu operating system through a classic, traditional desktop environment - the MATE desktop. The project began its life as an Ubuntu "remix", but starting with version 15.04, Ubuntu MATE was formally accepted as an official member of the Ubuntu family of Linux distributions.

Ubuntu MATE official website - https://ubuntu-mate.org/
Oracle VirtualBox Official Site - https://www.virtualbox.org/


SOLVING

How to Install Java JRE,JDK on Ubuntu 16.04

Trabla: How to Install Java JRE,JDK on Ubuntu 16.04 Xenial Xerus


How to Install Java JRE,JDK on Ubuntu 16.04


Ubuntu  is a Debian-based Linux operating system for personal computers, tablets and smartphones, where Ubuntu Touch edition is used; and also runs network servers, usually with the Ubuntu Server edition, either on physical or virtual servers (such as on mainframes) or with containers, that is with enterprise-class features; Ubuntu runs on the most popular architectures, including server-class ARM-based.

Ubuntu Official Site - http://www.ubuntu.com/


Solving: