Convert avif images to png

Posted by MD     Category: Informatica

 

I happened to want to save an image from a website with avif format (android 12 technology), but then not be able to view it with default image reader. So I created a Nautilus script to convert it to png

 

The only dependency you need is Davif which you can download here:

 

https://github.com/link-u/davif/releases/download/v0.1.0-20200331/davif_0.1.0-20200331_amd64.deb

 

Now download my script here:

 

https://www.dropbox.com/s/bu77yrq0h2kv8ik/Avif-to-png.sh?dl=0

 

Now just move it to your home, full path:

 

/home/USER/.local/share/nautilus/scripts

 

Where instead of USER you will put the login name

 

Then give it execution permissions (right click > properties > permissions > allow execution)

 

I hope it can be useful to you

 

Bye

Video conversion MB output size

Posted by MD     Category: Informatica



Hi, I found a very handy script to convert videos and choose the final weight in MB, useful for example to reduce and insert movies in social media.

The original script is used from terminal, while I modified it and it integrates with the Nautilus file manager on Gnu/Linux distros based on Gnome

The script has the following dependencies: ffmpeg for the video and zenity for the graphical interface (so you can set the MB you want to have as endings)

On distros based on the package manager apt give:

sudo apt-get install ffmpeg zenity

You can download it from here: videoMBdimensione.sh

Then put it in the folder

/home/USER/.local/share/nautilus/scripts

Changing obviously USER with login user name

Then right click on the file , Properties , enable “allow file to run”

Well now just right click on any mp4 video, choose scripts and you will see videoMB size.sh, click on it and it will ask you the number of MB of compression, then it will start the conversion

I hope you like it!

Convert HEIC iphone mac photos to JPG with Ubuntu

Posted by MD     Category: Informatica



Hi, I ran into a friend of mine who has iphone with the problem of opening with Ubuntu his photos which however are in HEIC format.

I found an easy solution:

open a terminal and type in

sudo apt-get install libheif-examples

give enter and type in your password to install this dependency,

After that create a text file and call it whatever you like, I put “convert_HEIC_in_JPG.sh”

give it execution permissions (right click properties > permissions > execution)

then open it up and write in it:

#!/bin/bash
for f in *.HEIC
do
echo “I am converting the file $f”
heif-convert $f $f.jpg
done

Now save and move the file to

/home/USER/.local/share/nautilus/scripts

(instead of USER put your user name)

now when you go to a folder with photos in HEIC just select everything,

right click > script > convert_HEIC_in_JPG.sh

will now start the conversion by itself, the wait will depend on the number of photos selected!!

I hope it can be of help to you

Bye

Rename PDF based on the title tag data

Posted by MD     Category: Informatica



Hello,
after several attempts I present a new script for Nautilus (file manager present in most linux distributions): allows you to rename all the PDF files, within the same folder, according to the internal tag of the title (for instance right click, property, document, title); very useful in various cases !!!
first of all download this file:

move the file to
/home/YourName/.local/share/nautilus/scripts/
then by right clicking on the file
go to property > permissions
and put the check mark on “Allow file execution as a program”
Now just select the file or pdf files that interest you and right click
script > renam-Port-title-tag-in-name.sh
NB: ATTENTION the script renames all the PDFs contained in that folder
NB: ATTENTION If the PDF file has no title tag the PDF will be deleted
I hope you come back useful !!!

Compress pdf script with Nautilus

Posted by MD     Category: Informatica

After doing a search on the net I found that pdf file compression is quite dark!

To make life easier I created a script Nautilus (tested on version 10.04 and 11.04 of ubuntu 64bit, but working with all of them)

The script compresses the pdf looking for in the can to maintain good visual quality.

First you need to install a dependency, open the terminal and write

sudo apt-get install ghostscript

Now download the script created by me

Once you have downloaded the script must be placed in

/home/vostronome/.gnome2/nautilus-scripts

then right-clicking on the file

go to properties> permissions

and put the check “Allow executing file as program”

Now just you select the PDF file you need, and right-click

script> Compress-PDF

now wait patiently (depends on the weight of the file)

I hope you might come in handy!

 

if you want to leave me: comments, report errors, constructive criticism! write here

Add links to the applet indicator (envelope) of gnome

Posted by MD     Category: Informatica





# # Last update: January 15, 2011 # #

You know those icon Envelope right of the panel gnome ubuntu?

gnome-indicator

Well you can add the link to the drop-down menu to open several programs

here’s how you would have after adding your favorite programs:

gnome-indicator-final

For the occasion, I created a script for the most popular programs:

aMsn

Skype

Thunderbird

amule

Firefox

Rhythmbox

Once you have downloaded the execute permissions with

right click

> properties> permissions> (tick) consetire executing file as program

To run the script you have to click

alt + F2

and write gksudo

then given a space and drag the script then press enter
[es: gksudo /home/Vostronome/Add-INDICATOR-Zenity.sh]

if you want to leave me: comments, report errors, constructive criticism! write here