La Vue d’Ignace

Accueil

Créer des images WEBP depuis le logiciel ART

Détails
Catégorie : blogue
Publié le : 28 Août 2021
Clics : 7
  • blogue
  • Tutoriel
  • GNU/Linux
  • ART (Another RawTherapee)

Le logiciel ART (another rawtherapee) ne crée pas d’images WEBP par défaut, mais rien n’est perdu, avec un petit script.

Vous devez créer un répertoire .config/ART/imageio/

Dedans, vous créé trois fichiers un exr.txt, un imagick-io.sh (que vous rendez exécutable) et un fichier webp.txt.

Dans le fichier exr.txt, vous mettez le code suivant :

[ART ImageIO]
Extension=exr
ReadCommand=./magick-io.sh load
WriteCommand=./magick-io.sh save
Label=EXR (via ImageMagick)

Dans le fichier magick-io.sh, vous mettez le code suivant :

#!/bin/bash

mode=$1
shift

if [ "$mode" = "load" ]; then
    # loading: convert from the input to a floating-point tiff file
    # resize if hints are given
    sz=""
    if [ "$4" != "" -a "$3" != "0" -a "$4" != "0" ]; then
        sz="-thumbnail $3x$4"
    fi

    magick convert "$1" $sz -colorspace sRGB -depth 32 -compress none "$2"
    test -f "$2"
elif [ "$mode" = "save" ]; then
    # saving: convert from floating-point tiff to the output
    magick convert "$1" "$2"
    if [ -f "$2" ]; then
        # copy also the metadata with exiv2
        exiv2 -ea- "$1" | exiv2 -ia- "$2"
    fi
    test -f "$2"
else 
    # unknown operating mode, exit with error
    echo "Unknown operating mode \"$mode\"!"
    exit 1
fi

Ce code permet de conserver les EXIFs de la photo.

Et dans le fichier webp.txt, vous mettez le code suivant :

[ART ImageIO]
Extension=webp
ReadCommand=./magick-io.sh load
WriteCommand=./magick-io.sh save
Label=WebP (via ImageMagick)

Voilà, vous pouvez choisir dans ART dans type de format, le WEBP.

linux
linux

Linux a 30 ans.

Détails
Catégorie : blogue
Publié le : 25 Août 2021
Clics : 8
  • blogue

Et oui, ça fait 30 ans, que le temps passe vite. Donc, il y a 30 ans, Linus Torvalds lançait sur la toile un petit logiciel qui ne fonctionnait que sur sa machine. Attention, j’ai dit Linux, pas GNU/Linux. Linux c’est le noyau des distributions GNU/Linux, c’est ce qui permet d’interfacer le matériel avec les logiciels. Linux a bien évolué depuis ses débuts, il est maintenant disponible pour PC 32 et 64 bits, Arnel, Arnbf, Mips64el, Mipsel, PPC64el et s390x.

Malia J - Smells Like Teen Spirit (Black Widow Soundtrack)

Détails
Catégorie : blogue
Publié le : 25 Août 2021
Clics : 6
  • blogue
https://youtu.be/aa2AB12WuwM

A Dog's Journey Trailer Song (Phillip Phillips - Gone Gone Gone)

Détails
Catégorie : blogue
Publié le : 20 Août 2021
Clics : 6
  • blogue
https://youtu.be/IFlYfYXx66w

Page 55 sur 99

  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59