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

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

Convert directly from a link in firefox PDF

Posted by MD     Category: Informatica





Hi today I’ll show you how covertire a page you are viewing in firefox pdf, unlike the virtual printers will have a true conversion, that we will find a pdf editable, with lots of opportunity to make a copy and paste of texts written in it.
First you need to download my script from here:Download
Then move the file to where it suits you better (no longer have to delete it) and give it execute permissions (right-click> properties> permissions)!
Now go back to firefox and download the plugin that will allow you to call my script if necessary: :
Download version 5.4 (tested on firefox 29) alternativ:
Download latest version from the official site and install it.
Also in firefox go to: Tools> Add-ons> Open With; click Preferences, once open, click on add (bottom right), now a window will open dovre’re going to choose my script “convert-html-to-pdf” that you downloaded before!
Then close the add-ons and if there is no appearance this icon Icona estensione Open With right-click on the top bar of firefox (the one containing the address bar www) and click on customize: move the icon to where we please!
To create the pdf, page (site) you are viewing, just click the icon and click “convert-html-to-pdf” and your desktop trovere pdf 😉
This system is very useful and in addition to being able to copy text from the created PDF file generated weighs very little (based on pages that will save it is still lighter than pages printed from other programs to the virtual press)

Have a nice day and the next guide;)

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