RSS/Atom feed Twitter
Site is read-only, email is disabled

batch convert jpeg to heif, warning message

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

batch convert jpeg to heif, warning message chucklee0103 23 Feb 04:18
  batch convert jpeg to heif, warning message chucklee0103 23 Feb 04:32
2021-02-23 04:18:13 UTC (about 3 years ago)
postings
2

batch convert jpeg to heif, warning message

Dear all,
I have used heif-enc to convert my jpg files. Very few of them just turn out totally black. Therefore, gimp becomes the alternative one. The OS is ubuntu 18.04 and gimp 2.10 is installed from the ubuntu software as default. The small shell program follows:
============================================== #!/bin/bash
# quality level
ql=0; while [[ ! $ql =~ [[:digit:]] || $ql -lt 50 || $ql -gt 100 ]] ; \ do read -e -p "Enter quality 50-100 : " ql; ql=${ql/.*} ;done for f in $(find . -iname "*.jpg" -type f 2> /dev/null) do
infile=${f%.*}.jpg
outfile=${f%.*}.heic
gscript="(let* ((image (car (file-jpeg-load 1 \"$infile\" \"$infile\"))) (drawable (car (gimp-image-active-drawable image))) )
(file-heif-save 1 image drawable \"$outfile\" \"$outfile\" $ql 0) )"
# ; 50 quality (int32 0
================================================= Thanks,
Chuck

2021-02-23 04:32:52 UTC (about 3 years ago)
postings
2

batch convert jpeg to heif, warning message

Dear all,
I have used heif-enc to convert my jpg files. Very few of them just turn out totally black. Therefore, gimp becomes the alternative one. The OS is ubuntu 18.04 and gimp 2.10 is installed from the ubuntu software as default.
The small shell program follows:
============================================== #!/bin/bash
# quality level
ql=0; while [[ ! $ql =~ [[:digit:]] || $ql -lt 50 || $ql -gt 100 ]] ; \
do read -e -p "Enter quality 50-100 : " ql; ql=${ql/.*} ;done for f in $(find . -iname "*.jpg" -type f 2> /dev/null) do
infile=${f%.*}.jpg
outfile=${f%.*}.heic
gscript="(let* ((image (car (file-jpeg-load 1 \"$infile\" \"$infile\")))
(drawable (car (gimp-image-active-drawable image))) )
(file-heif-save 1 image drawable \"$outfile\" \"$outfile\" $ql 0)
)"
# ; 50 quality (int32 0
================================================= Thanks,
Chuck

  • full message not shown in Body text
    t1.txt (1.73 KB)