Sunday, April 23, 2023

Convert .HEIC for .JPG files of the IPhone in Ubuntu

 

 It's been a while since I used my laptop where Ubuntu is installed, and I bought an OTP mainly to back up photos and videos from my Iphones.

 https://en.wikipedia.org/wiki/USB_On-The-Go

 

So I downloaded the packages and made a script to convert several files. 

https://ubuntuhandbook.org/index.php/2021/06/open-heic-convert-jpg-png-ubuntu-20-04/

=========================================== 

#!/bin/sh
for file in ~/heic *; do
    echo $file
    heif-convert -q 85 $file $file.JPG; done
rm -r *urn*
mkdir ~/heiConvertedFiles
mv *JPG ~/heiConvertedFiles
mv ~/heic ~/heiConvertedFiles/heicBKP
rm -r ~/heic/*.HEIC
rm -r ~/heic/*.heic   

# chmod +x HEICconvertJPG1.0final.sh
# heif-convert -q 85 input.HEIC output.JPG

#Before I used the script by krita but it gave some errors
# krita $file --export --export-filename $file.jpg; done
===========================================

https://www.icloud.com/ 

But I think that if you can download it through Icloud it is the best option.






No comments:

Post a Comment

How to Create GEOMETRIC FIGURES in Gimp

How to Create GEOMETRIC FIGURES in Gimp Go to: Filters - render - Gfig https://youtu.be/oS8mCRe9dnM?si=vuf62mQEnmOyP851